Repository navigation
Revert "Add workspace pages in the titlebar" - #1040
Conversation
This reverts commit 4de975e.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR removes the entire "pages" feature from the codebase, including CLI commands, UI components, keyboard shortcuts, V2 API handlers, session persistence, and related tests across the workspace management system. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 78cc82ad2d
ℹ️ 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".
| workspaceHandoffGeneration &+= 1 | ||
| let generation = workspaceHandoffGeneration | ||
| hidePortalViewsForWorkspace(staleRetiringWorkspaceId, reason: "superseded") | ||
| retiringWorkspaceId = oldSelectedId | ||
| workspaceHandoffFallbackTask?.cancel() |
There was a problem hiding this comment.
Hide superseded retiring workspace before replacing handoff
When a workspace switch is superseded (for example A→B followed quickly by B→C), this path overwrites retiringWorkspaceId without first hiding portal views for the previously retiring workspace. completeWorkspaceHandoff only hides the workspace currently stored in retiringWorkspaceId, so older retiring workspaces can keep terminal/browser portal-hosted views mounted and visually cover the newly selected workspace. The removed stale-retiring cleanup in startWorkspaceHandoffIfNeeded was preventing this exact overlap case.
Useful? React with 👍 / 👎.
Greptile SummaryThis PR is a clean, comprehensive revert of PR #1030 ("Add workspace pages in the titlebar"), paired with a replacement implementation in PR #1039. It removes the workspace pages feature across all layers of the codebase: CLI commands, socket API methods, UI (titlebar page strip + drag-drop), keyboard shortcuts, command palette entries, session persistence structures, localization strings, and all associated tests. Key changes across the codebase:
Confidence Score: 5/5
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[PR #1030: Add Workspace Pages] -->|Reverting| B[PR #1040: Clean Revert]
B --> C[CLI/cmux.swift\nRemoves: list-pages, new-page,\nduplicate-page, close-page,\nselect-page, rename-page,\nreorder-page, next/prev/last-page]
B --> D[Sources/AppDelegate.swift\nRemoves page shortcut handlers\nand ANSI fallback for option-only keys]
B --> E[Sources/ContentView.swift\nRemoves titlebar page strip UI,\ndrag-drop infrastructure,\ncommand palette page commands]
B --> F[Sources/TerminalController.swift\nRemoves page.* socket API\nmethods and page handle kind]
B --> G[Sources/Workspace.swift\nRemoves WorkspacePage model,\npage management methods,\nstored page state infrastructure]
B --> H[Sources/KeyboardShortcutSettings.swift\nRemoves 14 page-related\nshortcut actions]
B --> I[Sources/SessionPersistence.swift\nRemoves SessionWorkspacePageSnapshot\nand SessionWorkspacePageStateSnapshot]
B --> J[Tests/Docs\nDeletes WorkspacePagesUITests.swift\ntest_page_cli_socket_parity.py\nworkspace-pages-spec.md]
C & D & E & F & G & H & I --> K[Companion PR #1039\nReplacement Implementation]
Last reviewed commit: 78cc82a |
…flow-ai#1040) This reverts commit c56ad88.
Reverts #1030.
This is the clean revert companion to the replacement work in #1039.
Verification:
./scripts/reload.sh --tag revert-pr-1030-workspace-pages-titlebarSummary by cubic
Reverts workspace pages in the titlebar and returns to a single-layout-per-workspace. This removes all page-related UI, shortcuts, CLI/socket APIs, persistence, tests, strings, and docs; see #1039 for the replacement work.
Written for commit 78cc82a. Summary will update on new commits.
Summary by CodeRabbit
Release Notes
Removed Features
Tests
Documentation