| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Hey! Your PR title Fix readonly subagent restrictions being lost after compaction doesn't follow conventional commit format. Please update it to start with one of:
Where scope is the package name (e.g., app, desktop, opencode). See CONTRIBUTING.md for details. |
Sorry, something went wrong.
|
I checked the Nix side locally and this looks unrelated to the changes in this PR. This PR only touches:
It does not touch flake.nix, flake.lock, nix/*, or any workflow. The CI failure is invalid SRI hash 'TnrYykX8Mf/Ugtkix6V', which matches the prefix of the existing nixpkgs narHash already in flake.lock (sha256-TnrYykX8Mf/Ugtkix6V+PjW7miU2yClA6uqWl/v6KWM=). nix flake metadata still shows the full hash correctly. Also, nix/opencode.nix:28 seems to just be where evaluation forces ${finalAttrs.node_modules} while computing the derivation. That file is not doing any hash parsing or rewriting. So this seems more like a pre-existing Nix/CI hash truncation issue in the evaluation path, rather than something caused by this PR. |
Sorry, something went wrong.
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Sorry, something went wrong.
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Issue for this PR
Closes #18213
Type of change
What does this PR do?
This fixes a case where readonly restrictions on plan-mode subagents could be lost after compaction.
The main issue was that when a child task session was created or resumed, the effective readonly edit restriction from the parent context was not being persisted into the child session. On top of that, the legacy tools path in SessionPrompt.prompt() could replace the existing session permission rules entirely, which removed inherited restrictions.
This PR fixes that by:
I kept the shell-side change narrow to the repro path instead of expanding the general bash permission model.
How did you verify your code works?
I verified the change by:
I also verified this in CI after updating the branch: unit tests, e2e tests, typecheck, and nix-eval are now passing.
Screenshots / recordings
N/A
Checklist