Skip to content

acp_thread: Stream in agent text in a more continous manner#51499

Merged
Veykril merged 1 commit intomainfrom
push-rorwzvoylrvz
Mar 13, 2026
Merged

acp_thread: Stream in agent text in a more continous manner#51499
Veykril merged 1 commit intomainfrom
push-rorwzvoylrvz

Conversation

@Veykril
Copy link
Copy Markdown
Member

@Veykril Veykril commented Mar 13, 2026

Release Notes:

  • feat: Agent thread text now streams in more fluidly

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 13, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Mar 13, 2026
@Veykril Veykril marked this pull request as ready for review March 13, 2026 21:31
@zed-codeowner-coordinator zed-codeowner-coordinator bot requested review from a team, bennetbo and osyvokon and removed request for a team March 13, 2026 21:32
@Veykril Veykril merged commit a39201a into main Mar 13, 2026
40 checks passed
@Veykril Veykril deleted the push-rorwzvoylrvz branch March 13, 2026 21:32
tommyming pushed a commit to tommyming/zed that referenced this pull request Mar 15, 2026
lukemarsden added a commit to helixml/zed that referenced this pull request Apr 5, 2026
Upstream PR zed-industries#51499 added a StreamingTextBuffer that rate-limits how many
bytes get revealed into the Markdown entity per tick, creating a smooth
typewriter animation. However, content_only(cx) reads markdown.source()
which only returns revealed bytes. This means EntryUpdated -> WebSocket
sync sends incomplete content, causing the Go accumulator's baseline to
drift behind reality. When patches are computed from this stale baseline,
the frontend sees backwards edits that truncate text before tool calls.

Fix: each 16ms timer tick now drains the entire pending buffer instead of
limiting to bytes_to_reveal_per_tick. The timer still batches (avoids
per-character markdown.append calls), but no bytes are withheld. This
ensures content_only(cx) always returns all received content.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Spec-Ref: helix-specs@b244b04d4:001694_during-streaming-i-still
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants