Files
paseo/packages
Christoph Leiter 003b6139f0 fix(app): don't steal focus when workspace creation finishes late
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.
2026-09-09 18:35:07 +02:00
..
2026-09-08 10:19:53 +02:00
2026-09-08 10:19:53 +02:00