Skip to content

fix(server): match OpenCode v2 subagent tool for task lifecycle - #6

Open
gidorah wants to merge 1 commit into
mainfrom
fix/opencode-subagent-tool-name
Open

gidorah wants to merge 1 commit into
mainfrom
fix/opencode-subagent-tool-name

Conversation

@gidorah

@gidorah gidorah commented Sep 24, 2026

Copy link
Copy Markdown
Owner

PR #5 emitted task lifecycle only for the exact tool name task, but OpenCode v2 spawns subagents through the subagent tool. Live thread data proves it: every real spawn carries data.tool subagent, and opencode threads hold zero task activities. The panel stayed empty even on the new build.

Match task and subagent exactly (task_status and similar names stay plain tool rows) and read the role from the subagent input field as well.

Validation: new test fails on the old matcher (waits for task events that never arrive, the exact user symptom) and passes with the fix. Suite 96 passed, lint clean.

Built with Muse Spark 1.3 Contributor via T3 Code (OpenCode harness).

The adapter only recognized the v1 task tool name, but v2 spawns subagents through the subagent tool, so no task events ever reached the Agents panel. Match both names exactly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant