Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/shared/live-agent-reattach-title-signal.ts (1)
5-12: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCondense the new TypeScript comments. Keep only the non-obvious rationale; the current multi-line walkthroughs are more detailed than needed.
src/shared/live-agent-reattach-title-signal.ts#L5-L12: reduce to a brief statusless-title rationale.src/shared/live-agent-reattach-title-signal.ts#L17-L24: keep only the status-injection contract.src/shared/live-agent-reattach-title-signal.test.ts#L13-L14: reduce to one concise test rationale.src/shared/live-agent-reattach-title-signal.test.ts#L49-L50: reduce to one concise false-positive rationale.src/renderer/src/components/terminal-pane/pty-connection.ts#L1743-L1746: retain one sentence explaining statusless OSC titles.src/renderer/src/components/terminal-pane/pty-connection.test.ts#L7759-L7761: retain one concise regression rationale.src/renderer/src/components/terminal-pane/pty-connection.test.ts#L7767-L7768: remove or shorten the implementation walkthrough.src/renderer/src/components/terminal-pane/pty-connection.test.ts#L7804-L7804: keep as a short rationale if retained.As per coding guidelines, comments must be concise, limited to non-obvious information, and preferably one line.
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: a227bc6d-0662-41af-b760-ab347a7a70d7
📥 Commits
Reviewing files that changed from the base of the PR and between 0404f27 and 1e858b47e983a9ef5c0f554dad3f798d8522155c.
📒 Files selected for processing (4)
src/renderer/src/components/terminal-pane/pty-connection.test.tssrc/renderer/src/components/terminal-pane/pty-connection.tssrc/shared/live-agent-reattach-title-signal.test.tssrc/shared/live-agent-reattach-title-signal.ts
1e858b4 to
89b55a6
Compare
Sync update (
|
|
Noting that #11123 was closed as a duplicate of #8563. This PR stays scoped to the restore path: after Orca restart, an adopted OpenCode pane no longer has mouse reporting, so the wheel becomes history arrows. It does not attempt the broader normal-buffer wheel-to-arrow case in #8563. Happy to retarget |
89b55a6 to
f45465b
Compare
|
Note The previously reviewed commits are no longer reachable (likely due to a force-push or rebase), so CodeRabbit is performing a full review instead of an incremental one. This review may take a little longer. |
f45465b to
f1b8bf3
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. |
Greptile SummaryThis PR restores mouse-wheel scrolling for reattached OpenCode terminal sessions by recognizing native status-less
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| src/shared/live-agent-reattach-title-signal.ts | Introduces a pure helper that combines explicit agent status with exact Cursor and OpenCode native-title recognition. |
| src/renderer/src/components/terminal-pane/pty-connection/shell-command-inference.ts | Applies the shared title signal when deciding whether reattach should preserve live-agent mouse and focus modes. |
| src/shared/live-agent-reattach-title-signal.test.ts | Covers accepted native titles, status-based signals, and rejected shell or lookalike titles. |
| src/renderer/src/components/terminal-pane/pty-connection-reattach-mode-reset.test.ts | Verifies restored OpenCode sessions retain mouse and focus modes without receiving the shell reset. |
Reviews (2): Last reviewed commit: "test(terminal): align OpenCode reattach ..." | Re-trigger Greptile
f1b8bf3 to
36b25fb
Compare
Sync update (
|
|
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. |
Re-establish the TUI mouse/focus state on reattach so wheel scrolls session history again instead of shell prompt history. Fixes stablyai#11123
isOpenCodeNativeTitle requires a spaced `OC |` marker. Compact `OC|x` titles belong to other tools and must not preserve mouse modes on reattach.
The reattach gate now uses titleSignalsLiveAgentReattach, so an OC | title keeps mouse modes and a compact OC| title still does not.
36b25fb to
e6ad897
Compare
|
Thank you for this PR and for the repeated rebases. The same fix, recognizing OpenCode's native OC | titles as a live agent on reattach, landed in #13957, so we're closing this as superseded. Appreciate the clear diagnosis of the restore path. |
Description
After Orca restart/session restore, OpenCode tabs keep live-agent reattach mode (mouse tracking preserved) so the wheel scrolls session history again instead of shell prompt history.
Focused fix
OC | …) as live-agent reattach signals (alongside Cursor); pure helper + pty-connection testsPreserves
Evidence
live-agent-reattach-title-signal+ pty-connection reattach cases + related replay suites greenUser-regression-tradeoffs
OC |pattern is treated as OpenCode live agent for reattach mode selectionFixes #11123