open-webui-plugins icon indicating copy to clipboard operation
open-webui-plugins copied to clipboard

inline-visualizer-v2 v2.2.1: stream markers and raw source visible in live renders; prose-preceded blocks still fail live like #40; saved renders are always clean

Open silentoplayz opened this issue 3 months ago • 2 comments

Found while filming demo clips of Inline Visualizer v2 for the upcoming community newsletter issue. Three related observations from the live streaming render path, all on v2.2.1, all verified frame by frame from screen recordings. The saved render was clean in every single case, so this is entirely about the live path.

Environment: Open WebUI :dev image built 2026-08-13 (0.11 line), tool + skill v2.2.1 installed from the community listing, iframe Sandbox Allow Same Origin enabled, Qwen3-30B-A3B-Instruct-2507 via Ollama, temperature 0.15.

1. The @@@VIZ marker text leaks into the live render

On first-message renders where the model streams the fenced block directly, the literal @@@VIZ marker text became visible next to or under the iframe in two distinct moments across runs: during the progressive SVG paint in some takes, and at message finalization in others (marker text sits under the completed iframe until the page is reloaded). It cleans up on reload every time.

2. Prose before the block still breaks live conversion, the #40 pattern, on v2.2.1

When the reply begins with a sentence of prose before @@@VIZ-START (in our runs this reliably happened on follow-up messages in the same chat), the entire SVG source streamed into the message body as raw text and the live renderer never converted it. Reload rendered it perfectly. This matches closed issue #40, so either that fix did not cover this variant or it regressed by v2.2.1.

3. A data point that may help localize it

Replies that followed the skill handbook's Chart.js route (where the script executes after the block finishes streaming) never showed marker text in any of our runs. The leaks appeared only on hand-rolled streaming SVG paths. Related generation-side reports: #44.

Happy to share exact prompts, timings, and frame captures if useful. Thanks for the tool, the streaming canvas is a genuinely great idea and it made a strong demo even with these rough edges.

silentoplayz avatar Aug 14 '26 00:08 silentoplayz

thanks, this is a genuinely useful report, the frame-by-frame detail did most of the triage work.

confirmed the streaming leak: the live path can't hide a marker that's still arriving char by char under the fade-in streaming renderer, so the fragment shows briefly on every marker arrival. mechanism is understood and a fix is scoped.

two things your captures would settle that i can't from code alone: for the prose-preceded case, does the iframe stay on the loading dots the whole time, or does it show wrong/partial content? and was the model's reasoning section expanded while it streamed? for the marker sitting under the finished iframe until reload, roughly how long did the message keep streaming after the visualization finished? a chat export of one affected run would help too.

Classic298 avatar Aug 14 '26 16:08 Classic298

fixed in main

Classic298 avatar Aug 14 '26 18:08 Classic298