Skip to content

Stream the assistant's replies through Gecko Suite - #55

Merged
davior merged 1 commit into
mainfrom
claude/happy-gates-m3p10w
Nov 12, 2026
Merged

davior merged 1 commit into
mainfrom
claude/happy-gates-m3p10w

Conversation

@davior

@davior davior commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Summary

With AI_BACKEND=suite, every assistant reply was a blocking request, which the suite gives up on after 5 minutes upstream. With a high Max tokens (davior/gecko-suite#23), a long reply such as a whole article turned into a video outlasts that, and the turn failed partway.

  • Streaming: assistant turns now stream through the suite (run_agent(on_delta=…)). A reply only has to keep arriving, and the suite sends keep-alives while a model writes a large tool call (the companion PR in davior/gecko-suite).
  • Progress: the turn's detail shows the characters written so far, as "Working: writing (12,345 characters)". It is written to the turn at most once a second (STREAM_WRITE_SECONDS).
  • Unchanged: GVC's own providers (AI_BACKEND=local), which take no on_delta, and the clip picker, whose replies are short.

Test plan

  • cd backend && pytest -q: 838 passed.
    • The fake suite now answers streamed requests with the gateway's own frames (deltas, a keep-alive comment, then final), so every existing suite-mode turn test runs over the streamed path.
    • A new test checks that every request streams and that progress is reported.
  • Frontend untouched. It already shows the turn's detail.

Deployment

  • Before pulling: deploy the gecko-suite keep-alive PR first.
  • Services rebuilt: backend only.
    git pull origin main
    docker compose up --build -d
  • Verify: start a long assistant turn. The panel shows "Working: writing (… characters)" climbing, and the turn finishes past 5 minutes.
  • Roll back: redeploy the previous commit.

Generated by Claude Code

Through the suite every assistant reply was a blocking request, which the suite gives up
on after five minutes upstream. With a high Max tokens a long reply (a whole article
turned into a video) outlasts that and the turn failed partway. Streamed, a reply only
has to keep arriving, and the suite now sends keepalives while a model writes a large
tool call (davior/gecko-suite, "Keep a chat stream alive").

The turn's detail shows the characters written so far ("Working: writing (12,345
characters)"), written at most once a second. GVC's own providers are unchanged: they
take no on_delta, so it is passed only with AI_BACKEND=suite. The clip picker stays
blocking; its replies are short.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V1geD42yhCTe2Fzr6GJnPT
@davior
davior marked this pull request as ready for review November 12, 2026 08:29
@davior
davior merged commit 71b535c into main Nov 12, 2026
3 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.

2 participants