Skip to content

fix: stream OpenCode reasoning updates#661

Merged
tiann merged 1 commit into
tiann:mainfrom
thautwarm:fix/opencode-reasoning-stream
May 22, 2026
Merged

fix: stream OpenCode reasoning updates#661
tiann merged 1 commit into
tiann:mainfrom
thautwarm:fix/opencode-reasoning-stream

Conversation

@thautwarm
Copy link
Copy Markdown
Contributor

Summary

Fixes #608.

  • stream throttled ACP reasoning snapshots with stable stream ids
  • collapse same-stream reasoning snapshots in the web timeline
  • skip live reasoning snapshots in terminal message buffers
  • avoid stale session 404 redirects during refetch

Test

  • bun test cli/src/agent/backends/acp/AcpMessageHandler.test.ts cli/src/agent/messageConverter.test.ts web/src/chat/normalize.test.ts web/src/chat/reducerTimeline.test.ts web/src/hooks/queries/useSession.test.ts
  • bun typecheck

Emit throttled ACP reasoning snapshots with stable stream ids so OpenCode reasoning updates render live without one row per token.

Collapse matching reasoning snapshots in the web timeline and avoid stale session 404 redirects during refetch.

Tests: targeted Vitest suite and bun typecheck.
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Findings

  • No issues found.

Summary

  • Review mode: initial
  • Reviewed the full latest diff for ACP/OpenCode reasoning snapshots, stable reasoning IDs through CLI/web normalization, timeline merging, and session-not-found handling. Residual risk: validation is static because the runner image does not have bun installed.

Testing

  • Not run (automation: bun not found)

HAPI Bot

@tiann tiann merged commit b06251b into tiann:main May 22, 2026
2 checks passed
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.

Reasoning is printed with a newline between each word using OpenCode w Copilot gpt 5.5

2 participants