Skip to content

fix(plugins): hide prose before structured stream envelopes - #15533

Merged
lalalune merged 1 commit into
developfrom
fix/15531-streamed-envelope-leak
Jul 8, 2026
Merged

lalalune merged 1 commit into
developfrom
fix/15531-streamed-envelope-leak

Conversation

@lalalune

@lalalune lalalune commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary

  • stop forwarding ordinary text-delta frames from OpenAI streamStructured fullStream into the visible structured stream
  • suppress Eliza Cloud SSE delta.content prose while the structured Stage-1 reply envelope is streamed from tool-call argument deltas
  • add mixed-order regression coverage for both OpenAI and Eliza Cloud so leading prose cannot force plaintext passthrough and expose raw JSON

Verification

  • bun run --cwd plugins/plugin-openai test __tests__/streamstructured-tool-input-delta.shape.test.ts
  • bun run --cwd plugins/plugin-elizacloud test __tests__/text-streaming.test.ts
  • bun run --cwd plugins/plugin-openai typecheck
  • bun run --cwd plugins/plugin-elizacloud typecheck
  • bunx @biomejs/biome check plugins/plugin-openai/models/text.ts plugins/plugin-openai/__tests__/streamstructured-tool-input-delta.shape.test.ts plugins/plugin-elizacloud/src/models/text.ts plugins/plugin-elizacloud/__tests__/text-streaming.test.ts
  • git diff --check

Fixes #15531

  • N/A - provider streaming bug; no UI surface changed directly
  • N/A - provider streaming bug; no UI surface changed directly
  • N/A - no rendered workflow change; deterministic stream tests cover the leak path
  • N/A - provider/backend stream shaping only
  • N/A - no app UI/OCR surface changed

@claude

claude Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


I'll analyze this and get back to you.

@lalalune
lalalune merged commit 8a47121 into develop Jul 8, 2026
20 of 22 checks passed
@lalalune
lalalune deleted the fix/15531-streamed-envelope-leak branch July 8, 2026 22:38
@NubsCarson NubsCarson moved this from In progress to Done in Launch QA — Eliza app + Cloud (#13406) Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

Stage-1 streamed envelope: raw JSON leaks to visible chat when prose precedes tool-input deltas (plugin-openai + plugin-elizacloud)

2 participants