Skip to content

Conversation

@imodeveloper
Copy link
Contributor

@imodeveloper imodeveloper commented Jan 31, 2026

Purpose

Enable multiple launch scripts per workspace with per-script icons and terminals, persisted across app restarts.

Changes

  • Add per-script launch buttons with edit/cancel/save/delete flows
  • Add built-in icon picker (common dev icons)
  • Add New button flow (Cancel / New / Save) for creating scripts
  • Run each script in its own terminal session (launch:id)
  • Persist scripts in workspace settings (saved in workspaces.json)
  • Add hook + Rust settings tests for launch scripts

Testing

  • npm run test -- useWorkspaceLaunchScripts

Screenshot

Screenshot 2026-01-31 at 13 13 53

Notes

I have never worked with TypeScript or Tauri, so I am not familiar with how the changes work. I tried to apply the same approach I use in my Xcode projects, so I hope the changes are correct. If not, please let me know what we can improve, and you are free to update improve it as you wish :)

@Dimillian
Copy link
Owner

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 150afb0777

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +293 to +297
pendingRunRef.current = {
workspaceId: activeWorkspace.id,
terminalId,
script: entry.script,
entryId: entry.id,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Track pending launches per terminal to avoid dropped runs

When a user clicks two launch script buttons in quick succession, pendingRunRef.current is overwritten before the first terminal becomes ready, so only the last script ever gets written to its session. This is new behavior specific to the multi-script feature (previously there was only one script), and it breaks the expectation that each script runs in its own terminal session. Consider storing pending launches keyed by terminalId (or queueing per entry) so multiple rapid launches can complete independently.

Useful? React with 👍 / 👎.

@Dimillian Dimillian changed the title Add multi launch scripts with icons feat: add multi launch scripts with icons Feb 1, 2026
@Dimillian Dimillian merged commit 988f3d2 into Dimillian:main Feb 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants