Repository navigation
fix(run): answer permission requests from child sessions in headless runs - #651
Merged
Merged
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Previous Review Summaries (4 snapshots, latest commit 2e6f585)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 2e6f585)Status: No Issues Found | Recommendation: Merge Files Reviewed (1 file)
Previous review (commit 372dd39)Status: No Issues Found | Recommendation: Merge Files Reviewed (1 file)
Previous review (commit d235d66)Status: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Previous review (commit c511f8e)Status: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Reviewed by free · Input: 65.9K · Output: 1.5K · Cached: 280.4K |
…ld ask is answered or rejected
…n the child permission run times 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
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.
Issue for this PR
Fixes #650
Type of change
What does this PR do?
The headless
runpermission handler now answers asks from child sessions of the run's root session, with the same reply the root gets (--yoloonce, otherwise reject). Ownership is checked viabackground.owns, else by walkingparentIDup to the root (depth 16). Nothing else about admission or policy changes.How did you verify your code works?
New test
test/cli/run/child-permission.test.ts: passes with the change, fails (no exit within 20s) withrun.tsreverted. Local Linux, mock provider. Not verified: tsgo locally (timed out at my cap, CI typecheck decides), the widertest/cli/runsuite locally, Windows, real models.Screenshots / recordings
N/A
Checklist