feat: add per-workspace launch script with dedicated terminal tab #231
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Description
launchScriptfield on each workspace and mirror it in the Tauri backend types and storage so scripts are saved with workspace metadata (src/types.ts,src-tauri/src/types.rs,src-tauri/src/workspaces.rs).LaunchScriptButton) wired into the main header so the control sits next to the existing Open/In button (src/features/app/components/LaunchScriptButton.tsx,src/features/app/components/MainHeader.tsx,src/styles/main.css).useWorkspaceLaunchScripthook to manage the editor, saving to workspace settings, and orchestrating runs via the app terminal API; it schedules runs and writes the script to a dedicated terminal tab when the session is ready (src/features/app/hooks/useWorkspaceLaunchScript.ts).useTerminalTabs,useTerminalController) and by adding a title-awareensureTerminalWithTitle+restartTerminalSessionflow (src/features/terminal/hooks/*).src/features/layout/hooks/*,src/App.tsx,src/features/terminal/hooks/useTerminalSession.ts).src/features/terminal/hooks/useTerminalTabs.test.tsx,src/features/app/hooks/useWorkspaceLaunchScript.test.tsx).Testing
npm run lintwith no linter errors.npm run testand all automated tests passed, including the new tests (useWorkspaceLaunchScriptanduseTerminalTabs) — full test suite reported success (all tests passed).npm run typecheckand TypeScript checks completed successfully.Codex Task