Repository navigation
cmux NEXT: the chat header's Changes opens the turn's changes on the right outside a repository, not the palette - #31815
Conversation
… changes, not the palette Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-84793fd1ab4c4fef5f37
…right in a folder outside a repository It opened only the folder picker in the command palette there, since the folder's diff tab has nothing to show without a repository. It now toggles the last turn's in-page changes view on the chat's right, as the edited-files card does; in a repository it still opens the diff tab beside the chat. Red on base (headerChangesInPlace missing), 6/6 green on head: bun test test/agent-pane-header-changes-no-repo.test.ts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-84793fd1ab4c4fef5f37
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
Gallery before/after for
States
Pick other states with a Shipped in:
|
|
Review (subagent claude-opus-5-5 medium): SHIP at 6873593 |
Leo-ask: ask-8fd4350f48
Leo (2026-10-28): "this changes button. This doesn't really do anything. All it does is open up the command palette, and it doesn't open up the diff viewer on the right side."
What changed
The chat header's Changes (±) runs the app's
openDiffViewerfor the chat's folder. In a folder outside a git repository that open fails, and the app falls back to the folder picker in the command palette, so the click never shows a diff. Now, when the chat's folder is in no repository, Changes toggles the last turn's in-page changes view, which sits on the chat's right at every width since #29672. The edited-files card already did this. In a repository, nothing changes: the folder's diff tab opens beside the chat, and the earlier right-column work (#29682, #29828, #29861, #30010) still places it.turnChanges/viewChanges.ts:headerChangesInPlace(folder, open, readStatus): true only for a local folder with no repository root while no diff tab from Changes is open.App.tsx: the header'sonChanges(button and "…" row) goes through it.Test
cd webviews && bun test test/agent-pane-header-changes-no-repo.test.tsorigin/feat-cmux-next): fails (headerChangesInPlacenot exported)Observed / Not run
Ran: the test above, red then green;
test/agent-pane-changes-placement.test.tsxgreen;scripts/web-lint.shpassed.Not run: a DEV build click-through.
Changelog
Fixed: the chat header's Changes in a folder outside a git repository shows the turn's changes on the right instead of opening the command palette.
Agent session: agent session
🤖 Generated with Claude Code