Repository navigation
feat(subagents): a subagent on another computer runs within the limit that computer set, with no fixed Auto-accept edits cap - #1220
Merged
Conversation
… that computer set, with no fixed Auto-accept edits cap A remote subagent's mode is now the narrowest of the parent thread's mode, the parent's run and the highest permission mode the other computer set for this one. Full access is used there only when both allow it. Run database version 18 lets the stored mode be Full access. Refs #1160 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 tasks done
This was referenced Nov 15, 2026
Merged
bvsr365
added a commit
that referenced
this pull request
Nov 15, 2026
…; run database contract 19
The owner's envelope for an agent on another computer is agentMessage with { computer }, so the
bubble shows only the agent's words for such a message too. Migration 19 (remote_subagents.marked)
follows #1220's 18. The Full access remote subagent test's stand-in returns the run's sequence, as a
real send does, and checks the marked thread is held to Full access, not capped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bvsr365
added a commit
that referenced
this pull request
Nov 15, 2026
…; run database contract 19
The owner's envelope for an agent on another computer is agentMessage with { computer }, so the
bubble shows only the agent's words for such a message too. Migration 19 (remote_subagents.marked)
follows #1220's 18. The Full access remote subagent test's stand-in returns the run's sequence, as a
real send does, and checks the marked thread is held to Full access, not capped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
A subagent an agent starts on another computer (
delegate_taskwithcomputer) never runs above Auto-accept edits, whatever either computer allows. Raising that computer's highest permission mode for this one to Full access changes nothing for the agent's work there.Change
continue_subagent) is no looser than the run that sends it and the mode the subagent started with; a read-only task (workspace: 'shared'or a plan ceiling) is still sent in Plan mode; a chain stays one computer deep; the switch and the computer list are read on every call. The other computer still narrows to its limit before setting the mode and refuses anything above it.remote_subagentsso its mode column accepts Full access. Rows written before keep their mode and order, so a subagent started before this change keeps its old mode on follow-ups.Verification
Tier 5 (permissions and a migration). Run on
9c584c5ee, rebased onmasterat0bfd7f476:npx vitest run tests/run/remoteSubagents.test.ts tests/run/remoteSubagentEngine.test.ts tests/run/profileDatabase.test.ts tests/net/bridge/routed/remoteSubagents.test.ts tests/net/bridge/routed/owner.test.ts tests/net/bridge/routed/composerPermission.test.ts tests/renderer/agentAccessSettingsScreen.test.ts tests/agentAccessSettings.test.ts tests/themeSelectors.test.ts: 9 files, 139 tests passed.npm run typecheck: passed.tests/run/remoteSubagents.test.tsthroughdelegate_taskwith the real orchestrator and engine and a fake far computer. Full access passes through when both allow it, the default or a lower device limit narrows it, a stricter parent narrows it, and a read-only task is sent in Plan mode. A second test shows a follow-up narrows to the run that sends it. With the old cap put back, the Full access, read-only and follow-up cases fail.tests/net/bridge/routed/remoteSubagents.test.tsruns two real daemons over Bridge. Once the owner raises its limit for the caller to Full access, the far thread is set to Full access and the task is sent under a limit of Full access. The existing case still shows a wider mode narrowed to the default limit. The refusal above the limit is already covered inowner.test.ts.Notes
This changes permission rules, so it needs review by the other teammate before merging. The Devices page overlaps with #869, which rewrites that page. This PR changes one line in
DeviceLimitsDialog.tsx, which #869 does not touch. Other PRs of this design that add a run database migration will need to renumber after this one (version 18).Refs #1160
🤖 Generated with Claude Code