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⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 0176f3a5f0a88712381cf1991f64684fa4aa0984 and 5843af1. 📒 Files selected for processing (8)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe runtime terminal-list contract now accepts PTY identifiers and filters results before applying limits. The CLI resolves Priority: ➖ Normal Severity of issue fixed: Medium 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: cd539c4e-5638-451a-9684-49caf41a541f
📥 Commits
Reviewing files that changed from the base of the PR and between 6da7b8e and d6411d36418202026da932a75f4c716ebf7c1bb6.
📒 Files selected for processing (4)
src/cli/help.tssrc/cli/selectors-pty-terminal.test.tssrc/cli/selectors.tssrc/cli/specs/core.ts
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/cli/selectors-pty-terminal.test.ts (1)
53-65: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAssert the actionable truncation details.
The current matcher accepts any message that contains
truncated. A regression can remove the returned-count and total-count details while this test still passes. Assert the diagnostic context that tells users why the PTY ID may be outside the result page.Proposed test update
await expect(resolveTerminalSelector('pty:beyond-page', client)).rejects.toMatchObject({ code: 'terminal_not_found', - message: expect.stringMatching(/truncated/i) + message: expect.stringMatching( + /ptyId beyond-page in the first 1 of 900 terminals \(list truncated\)/i + ) })
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 3c88cd68-2d6f-48a3-a4f7-a70bf7d42e62
📥 Commits
Reviewing files that changed from the base of the PR and between d6411d36418202026da932a75f4c716ebf7c1bb6 and 1f76ccb2f1db6145a73283fe89a9a7304a17fb91.
📒 Files selected for processing (2)
src/cli/selectors-pty-terminal.test.tssrc/cli/selectors.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- src/cli/selectors.ts
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: f741de9a-9ff8-4c09-8541-3a03c7d416e8
📥 Commits
Reviewing files that changed from the base of the PR and between 1f76ccb2f1db6145a73283fe89a9a7304a17fb91 and 21bd788ac604b74f493f687d27c2a73717f754a8.
📒 Files selected for processing (3)
src/cli/handlers/terminal.test.tssrc/cli/help.tssrc/cli/specs/core.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- src/cli/help.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 7 remain after this review.
|
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. |
|
Refreshed onto main@9e3e583a with the transport-safe ptyId filter and stale/disconnected guard. Local verification passed: focused 27/27, CLI 807/807, cross-version wire 5/5, full pnpm test 53,671/53,671, typecheck, lint, and build. Independent final review: APPROVED with no confirmed findings. Please approve and run the workflows for head 61b578bf2eac6f664967c74a34b942a94145f5dd. |
|
@coderabbitai resume |
✅ Action performedReviews resumed. |
|
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. |
1 similar comment
|
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. |
|
Full The fork workflow run on this PR sits at Happy to re-run it after any change you'd like. |
8190c72 to
4713db3
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. |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 52744b9e-e453-419a-9212-8ddac4ba1084
📥 Commits
Reviewing files that changed from the base of the PR and between bba68b1 and 4713db35de7ee61ac8673af32c47eae601bd83d0.
📒 Files selected for processing (16)
src/cli/handlers/terminal.test.tssrc/cli/help.tssrc/cli/root-flag-help.tssrc/cli/root-help-text-secondary.tssrc/cli/selectors-pty-terminal.test.tssrc/cli/selectors.tssrc/cli/specs/core.tssrc/cli/specs/terminal-close.tssrc/cli/specs/terminal-send.tssrc/cli/terminal-command-flag-help.tssrc/cli/terminal-selector.tssrc/main/runtime/orca-runtime-subscribe-to-terminal-resize.tssrc/main/runtime/rpc/methods/terminal/terminal-query-methods.tssrc/main/runtime/rpc/methods/terminal/unary-schemas.tssrc/main/runtime/runtime-rpc-terminal-list.test.tssrc/main/runtime/runtime-terminal-list.ts
🚧 Files skipped from review as they are similar to previous changes (5)
- src/cli/specs/core.ts
- src/main/runtime/runtime-rpc-terminal-list.test.ts
- src/cli/selectors.ts
- src/cli/selectors-pty-terminal.test.ts
- src/cli/terminal-selector.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review.
4713db3 to
bcece41
Compare
|
Rebased onto current |
|
Rebased onto current |
bcece41 to
0176f3a
Compare
Handles rotate across restarts and rehydration; list still exposes a stable ptyId. Resolve --terminal pty:<id> via terminal.list so fleet tooling can address the surviving identity. Closes stablyai#13206
Skip visualLayouts on the resolve list (other programmatic callers already do) and raise the cap; when still truncated and unmatched, error clearly instead of a bare not-found for large fleets (stablyai#13206/stablyai#13219).
Port the published lease selector: target terminal.list by ptyId, require fresh liveness with a cached fallback, and skip disconnected or omitted SSH hosts so large fleets and old hosts still resolve a stable id.
Keep help.ts at the main line budget by moving the pty selector and close --tab copy next to the existing skills flag helper.
help.ts was already at the max-lines cap on main. Moving the generic flag catalog keeps the pty-selector override without a disable.
Terminal verbs already override --terminal help to accept pty:<ptyId>. The shared flag table stays handle-only so orchestration check does not advertise a selector it cannot resolve.
…er max-lines, and satisfy quality gates
0176f3a to
5843af1
Compare
|
Independent Linux run of this PR's current head, for reference. No Windows run is included here. What was tested
This PR's own tests
Tests in the areas the PR touches
Full
Typecheck
Not run: |
|
Thanks @brynnclaw for the independent Linux run. The one failure was the fuzz test timing out under load, and the full-suite failures are in files this PR doesn't touch. |
Canonical terminal commands accept
--terminal pty:<ptyId>and resolve the stable PTY ID to its current live handle. Ordinary handles remain pass-through and orchestration terminal flags retain their existing handle-only contract. Fixes #13206.An optional bounded
terminal.listPTY filter runs before pagination. Older hosts can strip the field and return a capped 200-entry page for client matching; a miss on a truncated response reports recovery guidance. Fresh liveness is preferred, with one cached-state retry when unavailable or when the target SSH/runtime host is explicitly omitted. Visual layouts are omitted. Resolution uses target runtime metadata and has no client-cwd or Git-worktree dependency.The existing RPC listing test seeds a second terminal to prove filtering precedes limit and asserts both entries in order. Existing assertions are preserved. New tests cover disconnected records, old-host responses, unavailable/omitted liveness and the 512-character boundary.
Validation on current head (2026-09-09):
Reviewed commit:
4713db35de7ee61ac8673af32c47eae601bd83d0; base:bba68b1bddf1276c8bd27ad4ca41efcbd4260321. No rendered UI change.