Repository navigation
fix(tabs): stop Cursor working titles from flickering (#11075) - #11127
Fazalkadivar21 wants to merge 1 commit into
Conversation
…11075) Keep session titles on tabs when auto-generate is on, block Cursor identity/spinner OSC from stomping descriptive titles, and drop live tool:input from compact sidebar rows. Co-authored-by: Cursor <[email protected]>
📝 WalkthroughWalkthroughCompact agent rows now derive primary text from agent entry and state, with revised secondary fallback behavior. Terminal title resolvers have updated generated-title precedence and fallback handling. Terminal tab updates now guard transitions into synthetic Cursor Agent titles based on detected status. Tests cover session-title resolution, empty generated-title results, and precedence over Cursor status titles. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@nwparker @AmethystLiang Could you take a look at this one when you have a moment? I use Cursor CLI agents in Orca heavily, and the flicker from #11075 is a real day-to-day pain: with several Cursor tabs open, every sidebar row keeps swapping names about twice a second. Repro on Orca v1.4.220 is in #11075 (comment). This PR and #14682 both target it. Either one landing would make Cursor in Orca much nicer to use. Thanks! |
Keep Cursor agent tab and sidebar labels stable while a turn is in progress (#11075).
Summary
While a Cursor agent is working, tab titles no longer flicker between
Cursor Agent/ spinner OSC and descriptive working titles. With auto-generate titles on, tabs keep the session/generatedTitleinstead of falling through to live OSC. Compact sidebar agent rows stay on the prompt and drop livetool:inputsecondary text that was rewriting every hook.Screenshots
Before
recording_2026-07-28_09.09.16.mp4
After
recording_2026-07-28_13.32.34.mp4
Testing
pnpm lintpnpm typecheckpnpm testpnpm buildUnit coverage added for session-title precedence in
resolveTerminalTabTitle/resolveUnifiedTabLabel(no live OSC fallthrough when generated titles are enabled; generated titles ahead of Cursor status OSC).AI Review Report
Reviewed the store-guard and title-resolution approach against #11075’s stability goal.
Risks checked
generatedTitlehas not landed yettool:inputupdateTabTitleguard are pure renderer string/status checks. macOS / Linux / Windows behavior is identical for this change.Flags / verification
updateTabTitleonly skips Cursor identity/spinner titles when status is notidle/permission, soCursor readyand action-required labels still apply.tool:inputpath was removed.Security Audit
Low risk, display/store-label overlay only.
Notes
generatedTitle, so tabs are never blank before the first descriptive title.Made with Cursor
ELI5
While Cursor is working, the tab name kept flipping between “Cursor Agent” and a long working title, and the sidebar kept rewriting with whatever tool was running. Tabs now stick to a stable session name when that setting is on, ignore spinner/
Cursor Agentstomps on a real title, and the sidebar sticks to the prompt instead of tool spam.