Repository navigation
Conversation
|
Caution Review failedAn error occurred during the review process. Please try again later. 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.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 5dd1874b-99d3-4632-a62c-c54284e0d8e7
📒 Files selected for processing (3)
src/renderer/src/components/sidebar/worktree-title-derived-agent-rows.test.tssrc/renderer/src/components/sidebar/worktree-title-derived-agent-rows.tssrc/renderer/src/lib/use-tab-agent.test.ts
|
Taking a look! |
|
Closing as superseded by merged #12466. That PR fixes #8940 in the same title-resolution and sidebar-row paths by making OpenCode’s known owner outrank incidental Claude text, and includes regression coverage for provider-neutral/OpenCode status frames mentioning Claude. The current main tests keep OpenCode identity across those status frames, so this branch no longer carries unique work. |
Summary
OC | ..., synthetic, bare task, and idle title frames.Fixes #8940.
ELI5
OpenCode can publish a spinner title that says what it is doing without saying "OpenCode." The sidebar used to treat that title shape as Claude activity and forget the pane's known owner. It now keeps the known single-pane owner while still using the title for working/idle state.
User Regression Tradeoffs
Screenshots
No visual change.
Testing
pnpm lint- full lint reaches two pre-existing switch-exhaustiveness errors onupstream/maininnative-chat-session-option-labels.ts:47andskill-freshness-group.tsx:101; changed-fileoxlintandoxfmtpass.pnpm typecheckpnpm test- the full Windows run completed with 2,879 files / 30,670 tests passing, then reported 44 files / 135 tests failing in unrelated Windows/POSIX path, symlink, shell, WSL, PTY, and source-newline suites. Focused identity coverage passes: 7 files / 113 tests.pnpm buildFocused command:
AI Review Report
The change was independently reviewed after implementation for identity precedence, stale-owner clearing, split-pane leakage, cross-platform behavior, remote behavior, and regressions across supported agents.
CodeRabbit found one owner-aware fallback call site that had not received the new owner argument. Commit
67c4f0714corrected it and added direct regression coverage for owner-present, owner-absent, and explicit-Claude cases.Security Audit
No input execution, command construction, filesystem path handling, IPC, authentication, secret, dependency, or network surface is introduced. Terminal titles remain untrusted display/status input and are only mapped to an existing enum; the change does not execute or persist title content beyond the existing row model.
Notes
OC | ...titles; this PR covers later provider-neutral frames without weakening global Claude heuristics.