You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenCode export drops the results of parallel tool calls written one call per message #98
When parallel tool calls are recorded one call per assistant message, with each result in its own later user message, converting to opencode drops the results: every call is written with an empty output.
The OpenCode writer folds a ToolResult into its call's state.output only when the result sits in the message right after the call (src/harness/opencode.rs, assistant_part, messages.get(*idx + 1)). With calls A and B written as separate assistant messages followed by result A and result B, call A's next message is call B, and call B's next message holds only result A, so neither call finds its result.
Expected: each call keeps its own result, wherever it sits in the following user messages of the same turn.
Activity