v44.51 — Add Shortcut enhancements (Phase 290 round 2)
Big round of improvements to the LivOS "Add Shortcut" launcher (right-click desktop → Add Shortcut), additive on v44.50.
Fixes & features
- Terminal new-tab bug FIXED — clicking a terminal shortcut now opens a fresh terminal tab and runs the command there, instead of pasting into the current (possibly busy, e.g.
clauderunning) session. Root cause: the command queue fell back to the active tab when no new-tab opener was registered; replaced with a per-tab keyed delivery model. - Per-shortcut working directory (cwd) — pick a folder via a UI folder browser; the command runs
cd <dir> && <command>. - Dialog redesigned — now white, wide, two-column with a live preview; content-rich.
- Custom icon upload in every tab (image → data-URL, 256 KB cap) + paste-URL.
- Icon-rich templates + AI-CLI flag reference — Claude / Codex / OpenCode / Gemini / aider show their flags + descriptions; flags are opt-in "Insert" only (never auto-applied; no dangerous flags pre-filled).
- User-created templates — save your own command presets (new
user_terminal_templatestable). - Native tab — scan apps already installed on the host (
.desktopparse, path-safe) and add them as stream tiles; install from catalog / apt (admin-gated; catalog+apt only). - Web tab — ~55 popular web apps pre-populated as a click-to-add icon grid (no typing); the manual URL form remains.
Verification (self-verified before release)
pnpm --filter ui build exit 0 · livinityd tsc at baseline (305) · schema.sql applied cleanly on real Postgres 16 (new table boot-safe) · terminal-command-queue tests 10/10 (covers the new-tab fix + the Liv-AI CLI-auth bridge) · native-scanner tests 16/16 (Exec realpath + traversal guard). 100% additive — the v44.50 Web/Terminal types, open-mode engine, "Add Web App", and webapps table are untouched.
Box-UAT pending (compile/unit-verified, not yet exercised live)
Terminal new-tab+cwd PTY timing · folder picker reading a real /Home · user_terminal_templates materializing at boot · the apt-install path (uses the v44.49 native sudoers grant, confirmed working this session; the scan+tile path is independent of apt). Existing boxes are unaffected until the operator clicks Update. apt-install result is reported synchronously (no live progress bar — documented simplification).
Plan: .planning/phases/290-add-shortcut-unified-launcher/PLAN-R2.md.
Full Changelog: v44.50...v44.51