mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-28 20:22:45 +00:00
Creating a workspace blocks on one RPC while the daemon runs `git worktree add` plus branch and forge resolution. If you switch to another workspace during that wait, the response navigates anyway, and `navigateToHostWorkspaceRoute` does a stack pop that yanks you off the workspace you deliberately went to. Auto-navigation now only fires if you are still on the same New workspace screen. Creation itself is untouched: the workspace, the agent, and the terminal are all created either way. `create_agent` is normally issued by the draft tab once it mounts on the destination screen, so suppressing the navigation would also suppress the agent. The suppressed path issues the request itself and writes no pending entry to the draft-submission or create-flow stores, which is what keeps a later visit from creating a second agent — the daemon does not dedupe `create_agent` by `clientMessageId`. The agent and terminal tabs open on their own when the workspace is next visited, since `reconcileTabs` auto-opens agents and standalone terminals. Nothing navigating also means nothing unmounts the screen, so both paths now release `pendingAction` themselves.