Repository navigation
fix(threads): inherit subagent permissions from the active turn - #843
Merged
Merged
Conversation
Preserve explicit per-turn permissions when spawning subagents by recording the thread default at dispatch. Keep later parent changes and worker capability ceilings, with a conservative fallback for turns started before the migration. Fixes: #547
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.
Change
When a thread defaults to Ask first but its current message runs in Full auto or Full access, Same as parent incorrectly starts subagents in Ask first. Subagents now inherit the effective calling-turn mode while later changes to the parent's default, fixed owner settings, and worker capability limits still cap new children.
Migration
0151_turn_thread_permission_moderecords the thread default at dispatch separately from the turn's effective permissions. The snapshot and worker command are written under the same admission lock; model and effort defaults are resolved from that locked thread as well. Turns started before the migration keep the conservative permission ceiling until they finish. Includes Polish documentation and gateway/worker integration regressions.Fixes: #547
Verification
check:tmpruns: 23 schema tests and 33 tests acrosssubagent-permission-inheritance,full-access-mode,thread-permission-mode,agent-bus, andmodels-steer. Temp-directory cleanup passed.git diff --checkpassed.