The agent switcher, the Claude | Terminal toggle and the chat view all keyed off
the project's saved preference, not the CLI running in the tab. A Claude-
preferring project with Cursor live labelled the switcher "Claude", offered a
chat view Cursor never writes a transcript for, and treated picking Claude as
"already active" - a no-op. The live CLI now decides; preference only answers
when nothing is running. A failed switch or close is shown instead of swallowed.
The agent tab strip gets what the shell workspace's already had: + starts a
session in place (the existing launcher), double-click or F2 renames (a display
name per builder; the session id never changes), and x closes with an armed
"Close?" second press because it ends a running agent. /api/control/close-tab
now honours the builder being viewed instead of always routing to cloud.
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>