You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(rpc): a paired client runs commands as you; say so when pairing - #27317
Pairing a browser or another computer with an Orca server lets it open terminals there, so it can already do anything you can do in a shell on that server. This PR writes that down in the code and tells people in the pairing screens, instead of pretending that some settings are a separate safety line.
What Changed
Before: the pairing screens only said "Pair with Orca running on another computer" and "Create a revocable access grant". Nothing told the person that a paired device can run commands as them. The permission list in code did not say what workspace really allows, so audits (Gate privileged RPCs the same way host-only account APIs are gated #18269) read skill installs, launch environment settings and folder browsing as privilege escalations.
After: both pairing screens add one plain sentence:
Add remote server dialog (the device being paired): "This device will be able to run commands as you on this server."
Share this Orca server (the server making the link): "A paired client can run commands as you on this computer."
Translated in all six locales.
Mechanism:rpc-method-permission.ts now documents that workspace equals running commands as the host's user, so browsing directories, installing skills, changing launch env or SSH targets is not a boundary for a workspace caller. Those tiers stay separate only so narrower callers (mobile, an SSH host's orca CLI) can still be refused them. The real boundaries for a paired client are desktop-control (granted per device at pairing) and pairing-admin (never granted to a paired client). No permission, grant or mobile allowlist changes.
Why
A paired client can open a terminal and type any command, so gating skills or launch env for it would be a gate the same client walks around in one step, and it would break existing phone and web features. The owner chose this reading (design D2, decision Q1 = b). Saying it in the pairing UI is what makes the existing power an informed choice.
Linked Issue
Refs #18269 (the skills, launch-env settings and browse bullets are closed as by design after merge; desktop-control stays an explicit grant).
Visual Proof
N/A for screenshots: copy-only change (one muted sentence in each pairing screen, same text-xs text-muted-foreground style as the surrounding help text). No layout or behavior changes.
Testing
pnpm tc, pnpm lint (owner-routing ratchet stays at 0), pnpm run check:code-quality:changed
pnpm test src/renderer/src/i18n config/scripts/verify-localization-catalogs.test.mjs src/main/runtime/rpc/rpc-caller-scope.test.ts
verify:localization-extraction and verify:localization-catalogs pass with the new keys.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
No new tests: no runtime behavior changes. Existing caller-scope tests already pin the grants described in the comment.
Review
P0/P1 review by two independent reviewers; see comments.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Security: no access widened or narrowed. Cross-platform, SSH, mobile: no behavior change.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
📝 Walkthrough
Walkthrough
Permission comments now describe the capabilities of workspace and the boundaries for paired-client desktop control and pairing administration. Remote-host setup and access-link generation display translated notices stating that paired devices can run commands as the user on the relevant computer or server.
Priority: ➖ Normal
Merge Risk:⚪ Minimal · up to c52f9
No actionable merge-blocking risk was identified in this documentation and notice-only change.
Pre-merge checks | 4 | 1
❌ Failed checks (1 warning)
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 4 files. (6 skipped: 6 …
Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name
Status
Explanation
Title check
The title clearly identifies the main change: documenting that paired clients can run commands as the user and communicating this during pairing.
Description check
The description is complete and focused. It explains the user impact, implementation, rationale, linked issue reference, visual proof decision, testing, security considerations, and checklist status.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 4 files. (6 skipped: 6 unsupported.)
Fix all pre-merge checks with AI
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
Commit to this branch
Create a new PR
🛠️ Fix failing CI checks 💡
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Pairing a browser or another computer with an Orca server lets it open terminals there, so it can already do anything you can do in a shell on that server. This PR writes that down in the code and tells people in the pairing screens, instead of pretending that some settings are a separate safety line.
What Changed
Before: the pairing screens only said "Pair with Orca running on another computer" and "Create a revocable access grant". Nothing told the person that a paired device can run commands as them. The permission list in code did not say what
workspacereally allows, so audits (Gate privileged RPCs the same way host-only account APIs are gated #18269) read skill installs, launch environment settings and folder browsing as privilege escalations.After: both pairing screens add one plain sentence:
Translated in all six locales.
Mechanism:
rpc-method-permission.tsnow documents thatworkspaceequals running commands as the host's user, so browsing directories, installing skills, changing launch env or SSH targets is not a boundary for aworkspacecaller. Those tiers stay separate only so narrower callers (mobile, an SSH host'sorcaCLI) can still be refused them. The real boundaries for a paired client aredesktop-control(granted per device at pairing) andpairing-admin(never granted to a paired client). No permission, grant or mobile allowlist changes.Why
A paired client can open a terminal and type any command, so gating skills or launch env for it would be a gate the same client walks around in one step, and it would break existing phone and web features. The owner chose this reading (design D2, decision Q1 = b). Saying it in the pairing UI is what makes the existing power an informed choice.
Linked Issue
Refs #18269 (the skills, launch-env settings and browse bullets are closed as by design after merge;
desktop-controlstays an explicit grant).Visual Proof
N/A for screenshots: copy-only change (one muted sentence in each pairing screen, same
text-xs text-muted-foregroundstyle as the surrounding help text). No layout or behavior changes.Testing
pnpm tc,pnpm lint(owner-routing ratchet stays at 0),pnpm run check:code-quality:changedpnpm test src/renderer/src/i18n config/scripts/verify-localization-catalogs.test.mjs src/main/runtime/rpc/rpc-caller-scope.test.tsverify:localization-extractionandverify:localization-catalogspass with the new keys.I manually tested these changes locally
Automated tests added/updated, or explained why not below
No new tests: no runtime behavior changes. Existing caller-scope tests already pin the grants described in the comment.
Review
P0/P1 review by two independent reviewers; see comments.
Agent skill upstream boundary
Notes
Security: no access widened or narrowed. Cross-platform, SSH, mobile: no behavior change.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)