fix(workspace): silence nested delegation permission errors - #236
Open
ixjosemi wants to merge 4 commits into
Open
fix(workspace): silence nested delegation permission errors#236ixjosemi wants to merge 4 commits into
ixjosemi wants to merge 4 commits into
Conversation
ixjosemi
force-pushed
the
fix/116-subagent-task-permission-fallback
branch
from
April 4, 2026 19:22
fcd618f to
babea02
Compare
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.
What changed
This fixes issue #116 by treating nested
taskdelegation permission failures as an internal runtime condition instead of a user-visible chat error.Why this happened
A subagent could attempt
taskdelegation to another subagent. When the runtime denied that nested delegation, Arche forwarded the raw permission payload through SSE and the chat UI rendered the internal rules list.Scope of this fix
This PR keeps nested subagent-to-subagent delegation blocked. It only removes the bad UX and information leak:
session.errorin the SSE bridge,tasktool failures before status/error emission,Verification
pnpm exec vitest run src/lib/__tests__/workspace-runtime-errors.test.ts src/lib/opencode/__tests__/transform.test.ts tests/chat-stream-attachments.test.ts src/components/workspace/__tests__/chat-panel.test.tsxpnpm lintNotes
pnpm exec vitest runacross the whole worktree still reports unrelated pre-existing failures under.next/standalonethat are outside the scope of this issue.