Skip to content

Reuse one chat page across plain chats by default (851-4336) - #1426

Merged
pondorasti merged 1 commit into
mainfrom
alexandru/851-4336-reused-page-default
Nov 19, 2026
Merged

pondorasti merged 1 commit into
mainfrom
alexandru/851-4336-reused-page-default

Conversation

@pondorasti

Copy link
Copy Markdown
Member

Part of 851-4336 (choose how tabs are presented), under 851-4331.

What changed

The reused chat page from #1413 is now on by default. One page is reused for every plain single-chat workspace; anything else (splits, terminals, browser panes, extra tabs, bots, archived) keeps its own kept-alive page as before.

To turn it off: defaults write <bundle id> workspaceDeck.reusedChatPage -bool false and relaunch. Any form of "no" works (NO, 0, false, or the launch argument).

Why now

  • Composer gaps are closed (Keep the composer's state with its chat (851-4335) #1415): per-chat "sending" guard, caret, undo, pickers.
  • Release build, real chats (Alpha 2891 with the switch on, 24 hotkey switches, Time Profiler): median 28 ms of main-thread work per switch including the measuring tool's own accessibility overhead, about 10 ms with that overhead filtered out. Measured the same way, Alpha 2848 was 66 ms and 54 ms.
  • Memory is the same (dev app, 16 chats of 500 turns visited twice): 159 MB with the reused page, 158 MB without. Six more warm transcripts cost about what four fewer kept-alive pages save.
  • Debug bench, same conditions: neighbour step 33-34 ms on vs 33-37 ms off; back to any visited chat about 40 ms on vs about 105 ms off; first visit about 140 ms on vs about 180 ms off.

Tophat (dev app)

Checks: swift:format:check, swift:lint.

🤖 Generated with Claude Code

The reused chat page shipped behind a debug switch in #1413. Measured on a
release build with real chats it costs about the same per switch as a
kept-alive page, it makes going back to any visited chat as fast as a warm
switch, and it uses the same memory, so it is now on unless
workspaceDeck.reusedChatPage is set to false.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@pondorasti
pondorasti merged commit bea99f4 into main Nov 19, 2026
@pondorasti
pondorasti deleted the alexandru/851-4336-reused-page-default branch November 19, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant