GeezerVison is showing github.com — chore: merge upstream/dev into the fork by Edo771977 · Pull Request #80 · Edo771977/opencode
Conversation
Summary
Syncs the fork's dev with upstream anomalyco/opencode dev up to 3d308eae2e, 38 upstream commits since #79.
The main change upstream is that subagents now always run in the background (anomalyco#63382). The background flag and the foreground path in SubagentJob are gone (anomalyco#63223), and so is the notify option (anomalyco#63413). The subagent tool returns the child's sessionID right away, and the caller receives a <subagent> message every time the child goes idle.
Conflict resolved: packages/core/src/tool/plugin/subagent.ts
The fork follows upstream's background-only model. It keeps its own prepare / authorize / launch split and its declared output fields.
subagent
launch no longer waits on jobs.block. It calls subagents.start(recovery) and returns upstream's background result.
- The
background and notify inputs, and the notify metadata, are removed as they were upstream.
Declared output fields (kept)
- The child is still told to end with the fields.
- The fields travel in the job's
recovery, and SubagentCompletion.deliver checks them when the answer is delivered.
- When a field is missing, the
<subagent> message arrives with state="error" and quotes what the child said. Before, the tool call itself failed.
subagent_parallel
- It still checks every subtask and asks each permission before starting any, and it still keeps to 2–5 subtasks.
- It now starts them all in the background and returns each one's sessionID with
running, or error when a subtask couldn't be started.
- Each subtask's answer, fields included, arrives as its own
<subagent> message. Before, the tool waited for all of them.
Tests
- Three fork tests in
tool-subagent.test.ts assumed a foreground answer. They now assert on the <subagent> message delivered to the caller, through a small deliveredTo helper:
- left-running work;
- declared fields;
- parallel fan-out.
- To check them, I replaced
declared with a version that never rejects: the field and fan-out tests failed, and passed again once the check was restored.
AGENTS.md
- The rule on reporting what a subagent left running now describes the background-only model.
Fork CI fix
- Upstream moved the macOS legs of
check-process-daemon.yml and release-process-daemon.yml to blacksmith runners, which only exist upstream.
- The fork switches them back to
macos-15, in a separate commit.
- The other upstream workflow changes (
release.yml, deploy*.yml, bot-nix-hashes.yml) only run under github.repository == 'anomalyco/opencode', or only on tags.
Verification
bun turbo typecheck:tsc: 30 of 33 tasks pass. The other three (app, desktop, gui-plugins) fail only because ghostty-web can't be downloaded locally.
bun run lint passes, and check:generated is clean in client and protocol.
bun.lock and package.json differ from upstream only by the fork's own entries.
- Tests, each package run through its own
test script:
- core: 7189 pass. Two failures are the usual sandbox ones (the
flock tests, since the sandbox runs as root). The third is new from upstream: ToolOutput > never splits a character or an emoji at the cut, added in fix(core): show the start of tool output that exceeds the limit anomalyco/opencode#63272. Neither the test nor the code it covers differs from upstream; I expect it comes from the sandbox's Bun 1.4.2, while CI pins 1.4.4. Not confirmed; CI will show.
- tui: 1722 pass.
- cli: 399 pass.
- server: 124 pass. The 3 failures are the usual OAuth-port tests, since the sandbox has no IPv6.
- tool-subagent: 20/20 pass.
Generated by Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…co#63440)
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
…es (anomalyco#63503)
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
# Conflicts:
# packages/core/src/tool/plugin/subagent.ts
|
This PR doesn't fully meet our contributing guidelines and PR template.
What needs to be fixed:
- PR description is missing required template sections. Please use the PR template.
Please edit this PR description to address the above within 72 hours, or it will be automatically closed.
If you believe this was flagged incorrectly, please let a maintainer know.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 13, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
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.
|