Repository navigation
fix(sidebar): keep launched Cursor agents visible under conversation titles - #15336
apple-ouyang wants to merge 1 commit into
Conversation
…titles cursor-agent replaces its native "Cursor Agent" OSC title with an arbitrary conversation name. Title-derived sidebar rows then had no provider token and dropped the pane, unlike Grok whose session titles still contain "grok". A Cursor-owned pane now keeps its sidebar row for any non-shell title; zsh / default Terminal titles still mean the agent exited. Co-authored-by: Cursor <[email protected]>
📝 WalkthroughWalkthroughThe sidebar title-derived row logic now detects shell and default terminal titles separately from agent labels. Owner-known Cursor panes with arbitrary non-shell titles produce idle Cursor rows and preserve the title. Agent identity and row labels can now come from the pane owner when the title has no recognized agent label. Tests cover arbitrary titles, shell-title suppression, and missing launch identity. Merge Risk: ⚪ Minimal · up to This localized sidebar classification change keeps launched Cursor sessions visible without changing other providers or runtime behavior; no actionable merge-blocking risk remains beyond normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/renderer/src/components/sidebar/worktree-title-derived-agent-rows.ts (1)
157-161: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueReduce the added title rationale.
Keep one short production comment for the non-obvious Cursor owner fallback. Remove the test comment because the test name states the behavior.
src/renderer/src/components/sidebar/worktree-title-derived-agent-rows.ts#L157-L161: replace the multi-line comparison with one sentence that explains why Cursor uses the known pane owner.src/renderer/src/components/sidebar/worktree-title-derived-agent-rows.test.ts#L307-L309: remove the comment.As per coding guidelines, comments must be concise, non-obvious, and brief; prefer one line.
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: d4db01fe-f09a-4b3e-a1bd-727b5828adad
📒 Files selected for processing (2)
src/renderer/src/components/sidebar/worktree-title-derived-agent-rows.test.tssrc/renderer/src/components/sidebar/worktree-title-derived-agent-rows.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review.
|
Superseded by #15665. Your keep/retire split (conversation title stays visible; Co-authored-by credit is on 15665. |
|
Closing as superseded by #15665, which carries the product rule and the co-author credit. |
ELI5
If you start Cursor from Orca, the session is running, but it disappears from the left-hand Agents list as soon as Cursor names the chat. Orca now keeps that row for the whole session, and only hides it when the terminal is back at a shell prompt.
What Changed
zsh,bash, …) and the tab's default Terminal title still mean the agent exited, matchinguse-tab-agent.launchAgent: cursorstays visible;zshhides the row; the same title without launch identity does not invent a Cursor row.Why
#10258 kept panes whose title was the native
Cursor Agentliteral. cursor-agent then replaces that literal with a generated conversation name that has no provider token. Grok session titles still containgrok, so they stay classified; Cursor titles do not. Parsing one Cursor title format is the wrong fix — the conversation name is arbitrary.Linked Issue
Fixes #15335
Visual Proof
N/A — sidebar row appears from existing title-derived classification. No new chrome. A launched Cursor pane whose title is an arbitrary conversation name now gets a Cursor row; previously that title classified as nothing.
Testing
Focused:
worktree-title-derived-agent-rows.test.ts,worktree-status.test.ts,worktree-status-spinner-launch-agent.test.ts(56 tests passed).Platforms: classification is on the OSC title string plus
launchAgent(macOS / Linux / Windows / SSH identical). No desktop UI run of this checkout; live app is still installed 1.4.184.AI Disclosure
Implementation and write-up by Grok 4.6 (xAI) in a local coding-agent session.
Review
Agent code-review summary
launchAgent; no path or shortcut changes.isShellProcesscheck on an existing title-derived path.Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)Focused unit tests passed locally. Full lint/typecheck/build not run on this checkout.
Author
Made with Cursor