Repository navigation
Conversation
Reuse durable leaf identity and the existing GUI title setter and persisted layout. Keep terminal rename tab-scoped and preserve parked-pane updates. Co-authored-by: stevelliu <[email protected]>
|
Pullfrog stalled The agent stopped emitting events for 125s and was killed by the activity-timeout watchdog. The model produced no output at all before the stall — the request was sent but nothing came back. This is usually transient; re-running often succeeds.
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (40)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe change adds Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The pane-title change is mergeable after normal checks; no material unresolved issue was identified. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The inspected changes are limited to pane labels, with checks intended to prevent updates to the wrong pane. No concrete security defect was established. Successful delivery does not establish that a label was applied or saved before a reload or interruption. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 12.50% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 16 functions across 37 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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.
✅ No new issues found.
Reviewed changes
Re-reviewed PR #24755 after 701a482e45 ("Resolve current CLI specs and reject failed pane title notifications"), which merged main 752871bd and added the delivery-receipt fix on top of 4a6adc388b.
- Split terminal command specs into their own module — moved the inline terminal specs out of
src/cli/specs/core.tsintosrc/cli/specs/terminal.tsto keep the file under its size limit; every prior spec is preserved in order, withset-pane-titleadded. - Made pane-title delivery report failure —
RuntimeNotifier.setPaneTitlenow returns a boolean andOrcaRuntime.setPaneTitlethrowsruntime_unavailablewhen the desktop refuses or drops the notification, instead of returning a success result for a title that never reached the renderer. - Added receipt and mapping tests — new tests cover the main-window sender's true/false receipts (including the disposed-frame latch) and the RPC dispatcher mapping the thrown error to the
runtime_unavailablefailure code. - Synced bundled and source skill guides —
skill-guides/orca-cli.mdand the generatedsrc/cli/bundled-skill-guides.tsboth carry theset-pane-titleentry.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
|
Superseded by #30485. This branch was about 2,400 commits behind main and conflicted in 16 files, so the same change was rebuilt on a fresh branch. The contributor co-author credit is kept. |
* feat(cli): set the title of one terminal pane Adds `orca terminal set-pane-title --terminal <handle> --title <text>`; `--title ""` clears it. The runtime resolves the live handle to its saved leaf and asks the desktop window to name that pane through a new optional notifier hook (`ui:setPaneTitle`). Mounted panes apply it through the same local setter the GUI uses; parked panes get it in the saved layout their next mount reads. The tab's own name is never touched. Rebuilt on current main from #24755. Co-authored-by: stevelliu <[email protected]> * fix(renderer): a main-owned layout takes a CLI pane title before the window shows it * fix(renderer): a CLI pane title reaches a never-mounted tab with a rootless layout --------- Co-authored-by: stevelliu <[email protected]>

ELI5
A split terminal can now keep its own label, such as REVIEWER, using the CLI. Naming one pane leaves the other panes and the tab name alone.
What Changed
Adds
orca terminal set-pane-title --terminal <handle> --title "REVIEWER";--title ""clears that pane back to its automatic title. Before, the CLI rejected this command andterminal renameonly named the whole tab. That existing rename behavior stays the same.The runtime checks the live handle and sends the pane's saved leaf ID to the desktop. Mounted panes use the same setter as the GUI's Set Title action; parked panes update the same
titlesByLeafIdlayout so their next mount sees the title. Stale handles and leaves are rejected without changing a sibling. The preload hook is optional and an older host's unknown-method error is returned safely.Why
Agents can label side-by-side roles without waiting for GUI input or relying on an agent's changing status title. Reusing the saved pane identity and layout keeps GUI and CLI titles consistent across reloads; a second title store or tab rename would not meet that contract. Terminal command specs move unchanged into their own module to keep the existing file-size limit.
Linked Issue
Fixes #22750
Local CLI/RPC/preload/event plumbing is adapted from @CodeHourra's #22751, authored by stevelliu (
[email protected]) and credited in the commit. That contributor PR is untouched. Its headless and remote resolution are excluded from this focused local change.Visual Proof
Before invoking the command: the sibling already has DEVELOPER and the target uses its automatic title. The baseline CLI's separate command capture returns
Unknown command: terminal set-pane-title.After invoking it on the target handle: only that pane becomes REVIEWER.
Testing
Real hidden Electron on macOS with a disposable home/profile and repository: split a tab, title one handle, title its sibling, clear the target, set it again, switch workspaces, reload, and verify each saved title stays with its own pane. Also set/clear with the target pane unmounted through the existing manual parking flow, restore it, and reload after clearing; DEVELOPER remains and the cleared title stays absent. A handle from the previous runtime returns
terminal_handle_stalewith the layout unchanged. Realterminal renamechanges only the tab name.Reproduce:
terminal split --terminal <handle> --direction horizontal --json, thenterminal set-pane-title --terminal <split.handle> --title REVIEWER --json; clear with--title ""and reload. All apps/tests useORCA_BACKGROUND_LAUNCH=1; no desktop windows were shown or focused.70 scoped tests pass, covering CLI parsing and old-host refusal, runtime stale handles and unchanged rename, renderer leaf checks and cleanup, parked layouts, RPC manifest and IPC lifecycle.
pnpm tc, changed-file oxlint, formatting, changed-code-quality, generated RPC catalog and bundled guide checks pass. The CLI and hidden Electron development build pass. Linux/Windows rendered acceptance and SSH execution were not run locally; current-head CI is reported separately.Fresh final-source macOS verification at
0068986694642a752446f2f03a6a92eea60766d0: the actual built CLI targeted a fresh hidden Electron instance, with each command checking the owned app PID. One test passed with no skips or retries. It verifies mounted title normalization/rendering, an untouched sibling and whole-tab title, a genuinely parked pane update, committed database readback, remount, clean owned app quit/relaunch, and empty-title clearing of only the addressed pane. Four raw renderer screenshots were inspected. All 41 feature files, generated output and sampled native dependencies stayed unchanged; owned apps exited and the isolated profile was removed. This closes the normal macOS application/persistence gap. It does not claim a cold terminal-daemon restart, Windows/Linux flow, renderer-reload races or persistence-write failures.The success receipt still acknowledges desktop IPC emission, without a renderer or durable-persistence acknowledgment. A stale layout/leaf can be discarded by the renderer. The passing flow does not turn that receipt into a stronger guarantee.
Review
Independent read-only review found a lost update when the initial event-only implementation targeted an unmounted pane. A parked-layout test failed before the fix; the revised existing-layout write and mounted setter passed re-review and all scoped tests. Review covered identity reuse, persistence, sibling isolation, old-runtime/preload compatibility, cleanup, unchanged rename, performance and basic security. No agent-specific behavior, UI styles, process execution or remote routing changed.
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
Merge risk is low–moderate after actual CLI, renderer, parked-pane, persistence and clean app-restart verification on macOS. Success still acknowledges IPC emission; a renderer/layout race or persistence failure is not reported back to the CLI. A bounded renderer acknowledgment would be needed for a stronger success guarantee. The shared additions are optional; this adds no stream opcode or SSH repair and uses the existing layout authority. Negative user-facing tradeoffs for existing flows: none identified. The new command requires a running supported desktop; headless/remote title setting is outside this PR. Titles are trimmed, matching the GUI. The CLI's terminal list title remains the automatic terminal title, as it does for GUI custom pane labels.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)