fix(desktop,cli): stop opening a page from routing the desktop to a workspace
What
Opening a page no longer navigates the desktop to a workspace.
- Publish auto-open removed. The first
superset pages publishfrom a workspace openedsuperset://v2-workspace/<id>?pageSlug=…, which routed the desktop to the publishing workspace and split a page pane there. Any agent finishing a report hijacked whatever you were doing. The CLI no longer opens a link after publishing, and the workspace route no longer takespageId/pageSlugsearch params (useConsumePageOpenLink,usePagePaneIntentOpener, and the page-pane intent store are deleted).openNoteleaves the publish result. - Pages grid opens the page, not a workspace. With the default "pane" preference, clicking a page in the grid routed to your last-active workspace. It now opens
/pages/$slug.useOpenPageand thelast-active-v2-workspacestore are deleted (key added toDEAD_KEYS). - Workspace Pages menu opens the pane directly through the route's
openPagePane. This also fixes the "new tab" preference, which used to leave the workspace for the full page view. Cmd-click still forces a pane; "external" goes to the full page view as before.
Why not keep the auto-open
The deep link is the weakest mechanism for it: it goes through the OS URL scheme, is disabled under a sandbox or SSH, and steals window focus. The host-service already broadcasts page-watch:changed to every connected desktop on publish, so if we want agents to push a page at the client later, that bus is the right path (and reaches remote hosts). Today the only moment the pop-open earned its keep was when you were already watching the agent. The Pages menu "New" badge and the printed URL (Cmd-click opens a pane) cover discovery.
Satya will share the rationale; Harshith, your call whether the auto-open is worth keeping in some form.
Testing
bun run typecheckinapps/desktopandpackages/clibun testforpersisted-keys,PagesView,pages/publish(58 pass)biome checkon changed files- Not verified in the running app.
Summary by cubic
Stops opening a page from routing the desktop to a workspace, so an agent finishing a publish no longer hijacks your current session.
Bug Fixes
- The CLI no longer opens a deep link after
pages publish; the workspace route, itspageId/pageSlugsearch params, and the page-open hooks and stores are removed. - The Pages grid opens
/pages/$slugdirectly instead of routing to the last-active workspace. - The workspace Pages menu opens the pane through the route's own opener, which also stops the "new tab" preference from leaving the workspace; Cmd-click still forces a pane and "external" still goes to the full page view.
Summary by CodeRabbit
- Page Navigation
- Opening a page from the pages view now takes you directly to that page.
- In a workspace, opening a page continues to support pane opening based on your preference or keyboard modifiers.
- CLI
- Publishing a page no longer automatically opens it in the desktop app. The publish command can run without a reachable desktop session.