GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(opencode): answer subagent permissions in run by opencode-agent[bot] · Pull Request #43675 · anomalyco/opencode

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • track child and nested child sessions created by a non-interactive run
  • auto-approve or auto-reject permission requests only for that run session tree
  • add subprocess coverage for both dangerous auto-approval and default rejection

Validation

  • bun test test/cli/run/run-process.test.ts -t "answers requested permissions from subagents"
  • bun x prettier --check src/cli/cmd/run.ts test/cli/run/run-process.test.ts
  • git diff --check

Requested by: @rekram1-node (Aiden via Slack)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Abioy reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@rekram1-node
fix(opencode): answer subagent permissions in run
838c68e
@opencode-agent opencode-agent Bot assigned rekram1-node Aug 20, 2026
@github-actions github-actions Bot added the contributor label Aug 20, 2026
@rekram1-node
rekram1-node merged commit 08faeb3 into dev Aug 21, 2026
10 of 11 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
rekram1-node deleted the subagent-permissions branch August 21, 2026 00:29
@Abioy

Abioy commented Aug 21, 2026

Copy link
Copy Markdown

@rekram1-node thx for the fix, this resolves the hang for subagents created during the current run.

One remaining corner case: a subagent resumed via the task tool's task_id in a new run was created in a previous process, so no session.created fires and its session is never added to the tracked set(sessions), its permission.asked gets silently dropped and the run hangs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Aug 24, 2026
Informe upstream (semanal) jaminsmoke/Jarvis#52
Open
1056674754 added a commit to 1056674754/opencode that referenced this pull request Aug 31, 2026
@1056674754
chore: merge OpenCode v1.18.20-sscity
e0f1b97
Upstream v1.18.19 (2b72179) -> v1.18.20 (7248bc1), 23 commits.

Functional changes:
- fix(opencode): surface resumable subagent errors (anomalyco#43657)
- fix(opencode): answer subagent permissions in run (anomalyco#43675)
- fix(opencode): preserve Cerebras completion limit (anomalyco#43736)
- fix(opencode): retry xAI capacity stream errors (anomalyco#43640)
- fix(opencode): retry network error variants (anomalyco#43806)
- fix(opencode): retry raw network finish errors (anomalyco#43813)
- fix(opencode): surface subagent tool errors (anomalyco#43821)
- test(opencode): remove flaky subagent test (anomalyco#43819)
- feat(go): add Ox Alpha to usage graph (anomalyco#43809); docs + i18n updates

Conflicts resolved: 29 package.json version bumps (rebranded 1.18.20-sscity),
bun.lock (took upstream, rebranded workspace entries via bun install).
session/llm/ai-sdk.ts finish-step reconciled by hand: upstream
rawFinishReason network_error check runs first (provider-declared failure,
specific message), then the fork empty-finish retry heuristic inside the
generator; duplicate ProviderError import from both sides deduplicated.
retry.ts auto-merged: upstream network[-_\s]error and at-capacity patterns
adopted; fork content-policy maxAttempts cap and 5xx-always-retryable logic
untouched. task.ts, cerebras.ts, plugin/index.ts, and run.ts auto-merged
cleanly: upstream resumable subagent task_id error surfacing, subagent
permission session tracking, and Cerebras maxOutputTokens guard adopted
alongside. Tests from both sides kept: upstream network_error finish-reason
processor/llm tests plus fork overload-retry, empty-stream, content-policy,
and single-flight regressions all pass.
@chernistry chernistry mentioned this pull request Sep 2, 2026
opencode run exits 0 with empty stdout when a tool call is auto-rejected and the model produces no final message #36413
Closed
This was referenced Sep 9, 2026
Auto-approve permissions (--auto) do not cascade down to subagents after running 'opencode run --auto' #41730
Closed
opencode run --format json emits auto-compaction internals as ordinary text events #42238
Closed
fix(opencode): cascade auto permissions to subagent sessions #42310
Closed
fix(opencode): filter compaction events from jsonl output #42316
Closed
rldona pushed a commit to plazoleta-dev/FlupCode that referenced this pull request Sep 24, 2026
@opencode-agent @rekram1-node
fix(opencode): answer subagent permissions in run (anomalyco#43675)
d860cd1
Co-authored-by: rekram1-node <[email protected]>
Ichinose-Kazuki pushed a commit to Ichinose-Kazuki/opencode that referenced this pull request Oct 7, 2026
@opencode-agent @rekram1-node
fix(opencode): answer subagent permissions in run (anomalyco#43675)
0ea1c3b
Co-authored-by: rekram1-node <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@rekram1-node rekram1-node

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Abioy @rekram1-node
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.