Skip to content

[BUG] The whole workflow stalls if any sub-agent is aborted. #307

@halabooda

Description

@halabooda

Description

Sometimes (not always, but it happens regularly during frequent use), when sub-agents (ContextScout/ExternalScout) are invoked, they get aborted and the entire process hangs.

Expected Behavior

Restart or abort all workflow

Environment

  • OS: macOS
  • OpenCode CLI version: 1.4.11

Additional Context

Opencode logs



data: {"type":"message.part.updated","properties":{"sessionID":"ses_25a7ed1f8ffe6aNS7c41gaottf","part":{"type":"tool","tool":"task","callID":"call_TbaunlBR9kAIII4ELiRoqNtL","state":{"title":"Find context for config read","metadata":{"sessionId":"ses_25a7eb4adffe2V25GP69p8JQrc","model":{"providerID":"openai","modelID":"gpt-5.4-nano"},"interrupted":true},"status":"error","input":{"description":"Find context for config read","prompt":"User asks to read the local config file ~/.config/opencode/opencode.jsonc. Discover whether any project context files are relevant for this read-only request. Return a short answer with: 1) relevant context files, if any, and 2) whether direct file reading can proceed without additional standards loading.","subagent_type":"ContextScout","task_id":"","command":""},"time":{"start":1776598207327,"end":1776598364494},"error":"Tool execution aborted"},"metadata":{"openai":{"itemId":"fc_01375570559d8c4e0169e4bcbdf5948195871ad68951e04fd9"}},"id":"prt_da5814689001ZRLutE1SW41j95","sessionID":"ses_25a7ed1f8ffe6aNS7c41gaottf","messageID":"msg_da5812e310012slsvoRAU0vK04"},"time":1776598364494}}

data: {"type":"message.updated","properties":{"sessionID":"ses_25a7ed1f8ffe6aNS7c41gaottf","info":{"id":"msg_da5812e310012slsvoRAU0vK04","parentID":"msg_da5812e130014Q1T3V4c2Q8hRP","role":"assistant","mode":"OpenAgent","agent":"OpenAgent","path":{"cwd":"/Users/macbook/project","root":"/Users/macbook/project"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"modelID":"gpt-5.4","providerID":"openai","time":{"created":1776598199857,"completed":1776598364497},"sessionID":"ses_25a7ed1f8ffe6aNS7c41gaottf","error":{"name":"MessageAbortedError","data":{"message":"Aborted"}}}}}

data: {"type":"session.status","properties":{"sessionID":"ses_25a7ed1f8ffe6aNS7c41gaottf","status":{"type":"idle"}}}

data: {"type":"session.idle","properties":{"sessionID":"ses_25a7ed1f8ffe6aNS7c41gaottf"}}

data: {"type":"message.part.updated","properties":{"sessionID":"ses_25a7eb4adffe2V25GP69p8JQrc","part":{"type":"tool","tool":"glob","callID":"call_J7OFhipR5qg4ErawcPxL03YP","state":{"status":"error","input":{"pattern":"/Users/macbook/.opencode/**/paths.json","path":"/Users/macbook"},"raw":"","time":{"start":1776598218335,"end":1776598364536},"error":"Tool execution aborted","metadata":{"interrupted":true}},"metadata":{"openai":{"itemId":"fc_0c8f8a9ac7f9daa50169e4bcca3eac819485324e9bd1462196"}},"id":"prt_da5817658001CFXi8xJ9Q8Nk9B","sessionID":"ses_25a7eb4adffe2V25GP69p8JQrc","messageID":"msg_da5816d67001tlPmhBJA6Xtp4P"},"time":1776598364537}}

data: {"type":"message.part.updated","properties":{"sessionID":"ses_25a7eb4adffe2V25GP69p8JQrc","part":{"type":"tool","tool":"glob","callID":"call_zW0pPQAGa7os3eCLX1fmPiYC","state":{"status":"error","input":{"pattern":"/Users/macbook/.opencode/context/navigation.md","path":"/Users/macbook"},"raw":"","time":{"start":1776598218349,"end":1776598364539},"error":"Tool execution aborted","metadata":{"interrupted":true}},"metadata":{"openai":{"itemId":"fc_0c8f8a9ac7f9daa50169e4bcca3ec48194b2175f5147a2f2f2"}},"id":"prt_da58176620019ltpTe2hkJf29F","sessionID":"ses_25a7eb4adffe2V25GP69p8JQrc","messageID":"msg_da5816d67001tlPmhBJA6Xtp4P"},"time":1776598364543}}

data: {"type":"message.part.updated","properties":{"sessionID":"ses_25a7eb4adffe2V25GP69p8JQrc","part":{"type":"tool","tool":"glob","callID":"call_fh8u8d8licw8L4XPo1Yd0m7s","state":{"status":"error","input":{"pattern":"/Users/macbook/.opencode/context/core/navigation.md","path":"/Users/macbook"},"raw":"","time":{"start":1776598218465,"end":1776598364545},"error":"Tool execution aborted","metadata":{"interrupted":true}},"metadata":{"openai":{"itemId":"fc_0c8f8a9ac7f9daa50169e4bcca3ecc819485f7249a77b2ea36"}},"id":"prt_da581766e0019D7YupllOqpaDN","sessionID":"ses_25a7eb4adffe2V25GP69p8JQrc","messageID":"msg_da5816d67001tlPmhBJA6Xtp4P"},"time":1776598364545}}

data: {"type":"message.updated","properties":{"sessionID":"ses_25a7eb4adffe2V25GP69p8JQrc","info":{"id":"msg_da5816d67001tlPmhBJA6Xtp4P","parentID":"msg_da5814b57001Gt5WdXxBVwjVtK","role":"assistant","mode":"ContextScout","agent":"ContextScout","path":{"cwd":"/Users/macbook/project","root":"/Users/macbook/project"},"cost":0,"tokens":{"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}},"modelID":"gpt-5.4-nano","providerID":"openai","time":{"created":1776598216039,"completed":1776598364545},"sessionID":"ses_25a7eb4adffe2V25GP69p8JQrc","error":{"name":"MessageAbortedError","data":{"message":"Aborted"}}}}}

data: {"type":"session.status","properties":{"sessionID":"ses_25a7eb4adffe2V25GP69p8JQrc","status":{"type":"idle"}}}

data: {"type":"session.idle","properties":{"sessionID":"ses_25a7eb4adffe2V25GP69p8JQrc"}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

data: {"type":"server.heartbeat","properties":{}}

Is it error of Opencode? Or is it possible to resolve in plugin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions