fix(desktop,cli): stop opening a page from routing the desktop to a workspace

Merged
SA
2mo ago
+34-333

What

Opening a page no longer navigates the desktop to a workspace.

  • Publish auto-open removed. The first superset pages publish from a workspace opened superset://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 takes pageId/pageSlug search params (useConsumePageOpenLink, usePagePaneIntentOpener, and the page-pane intent store are deleted). openNote leaves 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. useOpenPage and the last-active-v2-workspace store are deleted (key added to DEAD_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 typecheck in apps/desktop and packages/cli
  • bun test for persisted-keys, PagesView, pages/publish (58 pass)
  • biome check on 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, its pageId/pageSlug search params, and the page-open hooks and stores are removed.
  • The Pages grid opens /pages/$slug directly 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.