Skip to content

Fix run JSON output draining#26955

Merged
kitlangton merged 1 commit into
devfrom
fix/run-json-drain
May 12, 2026
Merged

Fix run JSON output draining#26955
kitlangton merged 1 commit into
devfrom
fix/run-json-drain

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Summary

  • wait for the non-interactive opencode run event subscription to drain before returning
  • preserve existing JSON event formatting while ensuring final text and step-finish events are emitted
  • propagate captured session errors via process exit code after the stream ends

Test Plan

  • bun typecheck
  • bun run dev -- --pure run --dir /var/folders/dd/5fz89drs5p9_r0fk7rwqqnbr0000gn/T/opencode/native-runtime-smoke --model openai/gpt-4o-mini --format json --title dev-json-drain-smoke "Reply with exactly: dev-json-drain-ok"
  • git diff --check

@kitlangton kitlangton merged commit 061efc6 into dev May 12, 2026
12 checks passed
@kitlangton kitlangton deleted the fix/run-json-drain branch May 12, 2026 00:30
leohenon pushed a commit to leohenon/opencode-vim that referenced this pull request May 12, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant