Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds Cline terminal-title detection for supported identity, status, and action-required forms. Integrates Cline recognition into agent labels, agent types, Claude ownership checks, status detection, and sidebar row derivation. Adds tests for decorated titles, incidental mentions, path-like strings, Claude task text, working states, permission states, and idle Cline rows. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 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 |
Live Windows `cline -i` emits the bare OSC title "Cline" while the npm wrapper launches via node, so process recognition alone never marks the pane as an agent. Wire Cline through identity-frame title detection and the worktree title-derived row map so sidebar agent rows appear, without stealing Claude task text that merely mentions cline. Fixes stablyai#13823
dd31d23 to
b0f6bf6
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Putting cline in the global legacy token list made detectAgentStatusFromTitle treat ordinary mentions like "port the cline prompt" as idle agent activity. Route Cline through isClineAgentTitle so only real identity frames produce status, while task-text mentions stay null. Refs stablyai#13823
Summary
Cline terminals launched in Orca did not appear in worktree sidebar agent rows or the agent dashboard because the OSC title path never classified them.
Live Windows repro (
cline -ivia Orca terminal create) sets the pane title to exactlyCline. The npm wrapper launches throughnode, soexpectedProcess: 'cline'process matching is not enough — title detection must fill the gap (same class of bug as Cursor in #12466).Changes
isClineAgentTitleidentity-frame gating (Cursor-style) so free-form task text mentioning "cline" does not steal Claude panes or invent idle activityCline→clineinTITLE_LABEL_TO_AGENTand the worktree title-derived row label mapisClaudeAgent/ spinner ownershipdetectAgentStatusFromTitleto use the closed Cline identity frame (not globalAGENT_NAMES) so titles likeport the cline promptstaynullwhileCline/Cline working/Cline - action requiredkeep correct statusesManaged hooks intentionally out of scope (Cline uses SDK plugins). AI Vault remains #13840.
Test plan
orca terminal create --worktree active --command "cline -i"→orca terminal showreportstitle: "Cline"getAgentLabel('Cline')returnsnullwithout the fixport the cline prompt,ask cline later) returndetectAgentStatusFromTitle(...) === nulloxlinton changed files cleantsc --noEmitweb + node cleangit diff --checkcleanFixes #13823