Skip to content

fix(tabs): stop Cursor working titles from flickering (#11075) - #11127

Open
Fazalkadivar21 wants to merge 1 commit into
stablyai:mainfrom
Fazalkadivar21:11075
Open

Fazalkadivar21 wants to merge 1 commit into
stablyai:mainfrom
Fazalkadivar21:11075

Conversation

@Fazalkadivar21

@Fazalkadivar21 Fazalkadivar21 commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

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/generatedTitle instead of falling through to live OSC. Compact sidebar agent rows stay on the prompt and drop live tool:input secondary 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 lint
  • pnpm typecheck
  • pnpm test
  • pnpm build
  • Added or updated high-quality tests that would catch regressions, or explained why tests were not needed

Unit 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

  • Blocking Cursor idle/permission frames along with working/spinner frames (would leave stale working titles after the turn ends)
  • Blank tabs when auto-generate is on but generatedTitle has not landed yet
  • Sidebar rows losing useful secondary context by dropping tool:input
  • Cross-platform: no new shortcuts, UI accelerator labels, path separators, shell commands, or Electron platform branches; title resolution and the updateTabTitle guard are pure renderer string/status checks. macOS / Linux / Windows behavior is identical for this change.

Flags / verification

  • updateTabTitle only skips Cursor identity/spinner titles when status is not idle/permission, so Cursor ready and action-required labels still apply.
  • With auto-generate on and no stored session title yet, tabs can briefly be blank instead of showing live OSC — intentional to avoid status churn.
  • Sidebar secondary still shows last assistant message / agent type; only the high-churn tool:input path was removed.

Security Audit

Low risk, display/store-label overlay only.

  • Input handling: title strings remain display labels; the new guard is a trim + Cursor-identity/status check before existing tab updates.
  • Command execution / IPC: no new shell, resume argv, or IPC surfaces.
  • Paths: no new filesystem reads/writes.
  • Auth / secrets / deps: none touched.
  • Follow-up: none required for this PR.

Notes

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 Agent stomps on a real title, and the sidebar sticks to the prompt instead of tool spam.

…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]>
@coderabbitai

coderabbitai Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Compact 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)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The changes address #11075 by stabilizing tab titles, blocking Cursor spinner frames, and removing live tool:input churn in sidebar rows.
Out of Scope Changes check ✅ Passed All modified files are directly tied to the flicker fix and regression tests, with no unrelated changes apparent.
Title check ✅ Passed The title is concise and accurately reflects the main change: stabilizing Cursor working tab titles to prevent flicker.
Description check ✅ Passed The description includes all required template sections, clear screenshots, testing, review, security, and notes with relevant detail.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@innocarpe

Copy link
Copy Markdown
Contributor

@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!

This branch has not been deployed

No deployments
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.

3 participants