Skip to content

Bump ZED_COMMIT to restore lost streaming reveal-emit + add Phase 15 e2e test - #2408

Merged
lukemarsden merged 2 commits into
mainfrom
fix/restore-streaming-reveal-emit
May 11, 2026
Merged

lukemarsden merged 2 commits into
mainfrom
fix/restore-streaming-reveal-emit

Conversation

@lukemarsden

Copy link
Copy Markdown
Collaborator

Summary

User report: streaming content appears in real time in Zed's UI but takes a long time to show up in Helix.

Root cause: between the May 6 PR #2296 bump (ZED_COMMIT=edbbb5a5e8, which carried "Emit EntryUpdated after streaming-reveal drain") and the May 8 cancel_current_turn bump (ZED_COMMIT=fe8f4f4e3f), the streaming reveal-emit fix was silently dropped because it lived on an unmerged Zed side branch (origin/feature/001895-i-thought-we-flushed) and never landed on helixml/zed main. The May 11 upstream merge (#2403) didn't pick it back up either.

What this bump pulls in

ZED_COMMIT 8841edb2b141a62b2e612f0acc62d67e909229f788b1e20386 — the head of helixml/zed fix/restore-streaming-reveal-emit (paired Zed PR helixml/zed#55), which:

  1. Cherry-picks edbbb5a5e8 onto current main, restoring the missing cx.emit(AcpThreadEvent::EntryUpdated(entries_len - 1)) after the drain in start_streaming_reveal (crates/acp_thread/src/acp_thread.rs).
  2. Adds e2e Phase 15 (crates/external_websocket_sync/e2e-test/helix-ws-test-server/main.go) which sends a long prose prompt, records every assistant message_added's timestamp + content length, and asserts:
    • >= 40 message_added events arrive (catches the 2× degradation in streaming granularity);
    • longest inter-message gap <= 20s;
    • >= 30% of final content observed by streaming midpoint.

Phase 15 reproducibly fails without the cherry-picked fix (verified locally with two builds — see Zed PR for the with/without table).

Verification

Test plan

  • Drone CI: sandbox-build pipeline zed-e2e-test step passes Phase 15 for both zed-agent and claude agents.
  • Manual: open a real spec task in inner Helix, send a long-form prompt (or follow-up to a streaming task), confirm chat panel renders content live without long pauses.

Merge order (per CLAUDE.md)

Merge helixml/zed#55 first, then this Helix PR.

🤖 Generated with Claude Code

lukemarsden and others added 2 commits May 11, 2026 14:38
User report: streaming content appears in real time in Zed's UI but
takes a couple of minutes to show up in Helix
(#2403 era).

Root cause: between the May 6 PR #2296 bump (ZED_COMMIT=edbbb5a5e8,
which carried "Emit EntryUpdated after streaming-reveal drain") and the
May 8 cancel_current_turn bump (ZED_COMMIT=fe8f4f4e3f, the merge base
for the cancel work), the streaming reveal-emit fix was silently dropped
because it lived on an unmerged side branch
(origin/feature/001895-i-thought-we-flushed) and was never landed on
main. The May 11 upstream merge in PR #2403 also did not pick it back
up. Without it, text drained from streaming_text_buffer.pending into
the markdown entity is invisible to external_websocket_sync until the
next chunk fires push_chunk's EntryUpdated — so the bulk of streamed
content reaches Helix only at the Stopped re-send right before
message_completed.

This bump pulls ZED_COMMIT to the head of helixml/zed
fix/restore-streaming-reveal-emit, which:

  1. Cherry-picks edbbb5a5e8 onto current main, restoring the missing
     `cx.emit(AcpThreadEvent::EntryUpdated(entries_len - 1))` after the
     drain in start_streaming_reveal (acp_thread.rs).
  2. Adds e2e Phase 15 (helix-ws-test-server/main.go) which sends a
     long prose prompt, records every assistant message_added's
     timestamp + content length, and asserts:
       - >= 5 message_added events arrive,
       - longest inter-message gap <= 20s,
       - >= 30% of final content observed by streaming midpoint.
     Phase 15 reproducibly fails without the cherry-picked fix.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Was pointing at the pre-merge branch tip (41a62b2e61). Now that
helixml/zed#55 merged, update to the merge commit on main
(cd4e279d80) so CI builds against helixml/zed/main rather than a
deleted branch ref.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@lukemarsden
lukemarsden merged commit b9dcad6 into main May 11, 2026
1 check was pending
@lukemarsden
lukemarsden deleted the fix/restore-streaming-reveal-emit branch May 11, 2026 13:45
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