fix: stream opencode reasoning updates (#661)

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.

Co-authored-by: twshe <twshe@outlook.com>
This commit is contained in:
Taine Zhao
2026-05-22 08:57:50 +08:00
committed by GitHub
co-authored by twshe
parent 5b90a48b33
commit b06251bd53
15 changed files with 369 additions and 32 deletions
@@ -243,6 +243,9 @@ class OpencodeRemoteLauncher extends RemoteLauncherBase {
this.messageBuffer.addMessage(message.text, 'assistant');
break;
case 'reasoning':
if (message.live) {
break;
}
this.messageBuffer.addMessage(`[Thinking] ${message.text.substring(0, 100)}...`, 'system');
break;
case 'tool_call':