Skip to content

fix(server): drop reasoning text from live events - #94

Merged
Tarquinen merged 1 commit into
port-toolboundsfrom
port-reasoning
Nov 16, 2026
Merged

Tarquinen merged 1 commit into
port-toolboundsfrom
port-reasoning

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Based on #89.

Thinking streams for tens of seconds, and its text was decoded, joined and passed through every batch even though nothing shows it: the transcript's reasoning never comes from the live stream, and only the start of reasoning drives "Thinking". Live reasoning events now carry no text, so coalesced deltas no longer join strings. "Thinking" shows as before.

iOS: 72a78460 (reasoning part), 9ff8ee69

Emulator (session-lab, a 20 MB reasoning stream over 6 s): app CPU time dropped from about 1,830 to about 1,200 ticks; retained memory was the same before and after (the text was never kept), and the screen was unchanged.

Verified: scripts/check.sh :server :feature:drawer :feature:session on the VM.

Nothing shows reasoning's streamed text: its events project no transcript rows
and the settled read skips reasoning parts; only ReasoningStarted feeds the
Thinking step. ReasoningDelta and ReasoningEnded now carry just the message and
ordinal, so adjacent reasoning deltas no longer concatenate.

iOS 72a78460 (reasoning part), tests from 72a78460 and 9ff8ee69. Ports
reasoningFramesDecodeWithoutTheirText.

Verified: vm.sh check :server :feature:drawer :feature:session. On the
emulator, a 20 MB reasoning stream used about 1,190 CPU ticks against about
1,830 on the base branch; the screen shows Working either way.
@Tarquinen
Tarquinen merged commit 38498f4 into port-toolbounds Nov 16, 2026
3 checks passed

This branch was previously deployed

1 inactive deployment
release — a11abb50 Deployed Nov 16, 2026 by Tarquinen via check #313
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.

1 participant