Skip to content

feat(flowchat): render verified inline visualizations - #4002

Merged
wgqqqqq merged 13 commits into
openBitFun:mainfrom
wgqqqqq:wgq/flowchat-visualize
Nov 19, 2026
Merged

wgqqqqq merged 13 commits into
openBitFun:mainfrom
wgqqqqq:wgq/flowchat-visualize

Conversation

@wgqqqqq

@wgqqqqq wgqqqqq commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

FlowChat can now show interactive figures directly in an assistant reply. The producing desktop opens a private, sandboxed frame to check the submitted figure. A successful publication seals that revision into the turn so reopening the conversation shows the checked figure. Requests for a standalone webpage still produce a project file.

Regional city maps use a packaged Natural Earth atlas. The model supplies city names or coordinates, and the host produces a self-contained SVG with coastlines, water, boundaries and city markers. Ordinary maps can be published with one figure write. Chat typography and skin changes carry through to the figure.

The change retires the legacy GenerativeUI generation tool and its library picker. Older recorded messages keep their read-only renderer.

Shanghai, Suzhou and Hangzhou in the warm theme

Build and release impact

A standard checkout contains the OpenBitFun authoring skill, sandbox bridge, design controls, Apache ECharts, projection worker and seven regional atlas layers. Desktop and Web CI build these through their ordinary entry points. Every Web build verifies the pinned guest libraries and atlas hashes locally. CI and end users can build and draw standard figures without installing Codex or preparing a runtime cache.

The optional Codex reference kit identifies itself as proprietary. Its distribution and reference guides are available through an explicit local import for compatibility testing. Older figures that import kit-specific hosted widgets may still need those published URLs or a prepared compatibility cache. Maps and the built-in chart path run offline.

Verification

  • Rebuilt the macOS ARM64 app after the streaming-card and reference fixes. Two fresh local FlowChat sessions sent the exact same Chinese map request to the configured DeepSeek-V4.1-Flash-1017 model. Both displayed Shanghai, Suzhou and Hangzhou on the first turn. In the first session, the model corrected a rejected place lookup in the same turn. In the second, the turn took 14.9 seconds and called Skill and one session-scoped Write. A DOM observer recorded zero visible tool cards, no browser panel and no internal figure URI in the reply during generation. The workspace stayed empty. Reopening the session showed one checked map.
  • Replayed the previously observed malformed reference in a separate copy of the recorded turn using that same app. FlowChat rendered one checked figure, preserved the surrounding prose and suppressed the malformed marker and path. Passed 450 focused frontend tests and three Rust session-artifact tests. Packaged end-to-end testing covered the local desktop.
  • The upstream Linux runner passed the full Web UI test suite and the production Web build from a clean checkout. Frontend Build log
  • Cloned the PR branch from GitHub into an empty directory. Installed the frozen pnpm lockfile offline. Built an ARM64 OpenBitFun.app with Xcode 26.3 and pnpm run desktop:build --bundles app -- --profile release-fast --features devtools. The embedded WebDriver was enabled for inspection. Neither the optional kit nor its cache was present, and no Visualize preparation step ran.
  • Launched the executable inside that app in an isolated user home. Verified the installed skill against the tracked source and the loaded frontend revision against the copy inside the app (bundled-0ef875ae036ba521). A loopback model submitted only the city names via the actual Skill and Write tools. FlowChat checked and saved a 23,296-byte SVG, displayed Shanghai, Suzhou and Hangzhou with land, lakes, rivers and boundaries, and showed zero file-tool cards. History replay passed after shutting down the model fixture.
  • Ran the clean guest browser suite with external requests blocked. It exercised new regional maps in China and Japan, land/water placement, map validation failures, state persistence, chart rendering, tabs, and design controls. The optional reference suite is documented separately below.
  • Corrected the visibility suite’s static store double after upstream CI reported a missing subscription method. All 27 tests in that suite passed locally. The fixture change is the only difference from the macOS app build.
  • Ran 543 focused Web UI tests for visualization, history, grouping, and widget projection.
  • Ran cargo test --locked -p openbitfun-core --no-default-features --features agent-runtime,tools-basic,tools-agent-control --lib visual_artifact. All three tests passed, including session-owned local/SSH writes, exact revision sealing, and legacy edit replay.
  • Ran the optional reference-kit browser host suite with external requests blocked in both the regular light viewport and a narrow dark viewport. Covered regional maps in China and Japan, land/water positioning, skin switching, tabs, calendar and trace widgets, and all 13 chart families.
  • Manually exercised fresh desktop conversations for a regional map, a pendulum, and a standalone pendulum webpage. A cold offline replay displayed the saved map with zero external requests. The standalone HTML also opened and animated offline. The model needed a delivery reminder after further styling edits on the standalone case.
  • Generated the protocol types and passed pnpm run check:web, pnpm run capabilities:check, repository hygiene, core boundaries, i18n, and the Git object-size check. Remote control, peer-device operation and detached dispatch were not exercised end to end.

AI-assisted implementation and testing.

@wgqqqqq
wgqqqqq merged commit b60b90e into openBitFun:main Nov 19, 2026
14 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.

1 participant