Skip to content

feat(flowchat): improve diagram delivery and itinerary street maps - #4024

Merged
wgqqqqq merged 7 commits into
openBitFun:mainfrom
wgqqqqq:wgq/flowchat-visualize-delivery
Nov 20, 2026
Merged

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

Conversation

@wgqqqqq

@wgqqqqq wgqqqqq commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

When readers ask for a project architecture diagram, FlowChat can render the relationships directly from a Mermaid block. The bundled skill previously also instructed the model to build architecture diagrams with HTML/SVG. This change resolves that conflict and keeps inline HTML available when the reader needs to change an input or explore a spatial view.

  • Render city itineraries against a street basemap. Resolve named stops using their city and available place metadata, report ambiguity, and let a follow-up repair the map. Save the verified geometry with the figure for replay.
  • Update the optional Visualize reference import to 1.0.109. Release embedding excludes the local reference kit even when a developer has imported it.
  • Accept both skill and command when invoking a skill. Hooks, permission evaluation and execution see the same name. FlowChat history and CLI tool cards can display it from either wire format.

Type and areas

FlowChat feature and regression fixes across the built-in skill, figure host, agent tool execution and tool-card presentation. Follow-up to #4002.

Verification

On this branch, based on upstream main:

  • pnpm --dir src/web-ui exec vitest run src/tools/visualize src/flow_chat/grouping/activityGrouping.test.ts src/flow_chat/tool-cards/SkillDisplay.test.tsx passed all 105 tests.
  • pnpm --dir src/web-ui exec tsc --noEmit --pretty false and pnpm run theme:color-audit:all passed.
  • node scripts/verify-visualize-bundle.mjs and node scripts/import-visualize.mjs --check passed. The second command checks a locally installed optional reference kit.
  • node scripts/test-visualize-host.mjs passed in Chromium, including offline regional map rendering, saved bindings, theme changes, calendar interactions and all 13 chart families.

Before moving these six commits onto current main, the same patches also passed 18 Rust skill-tool tests, the hook-input/history regression and the CLI tool-card regression. Local macOS desktop sessions with GPT-6.1 Terra exercised these cases:

Request Observed behavior
Draw this project's architecture FlowChat rendered the two Mermaid diagrams from the first reply. The model read the project documentation and made zero Write calls.
Let me select a desktop or CLI entry point Clicking each of the four controls displayed a distinct execution path.
Draw a QR-login sequence or compare image formats in a table The first request produced a Mermaid sequence. The second produced a Markdown table with zero tool calls.
Let me drag an object in a thin-lens simulation Dragging across the focal point changed the ray diagram, image orientation and magnification together.

Review follow-up

  • Map inspection now uses the originating turn and the individual figure. A schedule can share a reply with a map. Geographic checks recognize named places and leave conceptual maps such as user journeys and microservices alone.
  • Desktop tracks progress for each atlas declaration. The worker shares a deadline across all stop lookups, reserves time for tiles, and returns confirmed coordinates and candidates when lookup times out.
  • Headless and deferred revisions preserve their inspection status in history. Readers can choose to load a missing street basemap and reuse the checked geometry offline on that device. A changed revision needs a fresh check.
  • Cargo excludes the optional reference kit in every profile. The dev launcher and Vite share the kit check. Import upgrades now clean obsolete backups, and Skill execution, hooks, and cards agree on a valid alias when the primary field is blank or null.

The desktop timeout and legacy snapshot round-trip tests passed. Chromium covered mixed deliveries, conceptual maps, icon-bearing stop lists, deferred inspection, consent, offline replay and revision changes using fixture vector tiles. A desktop web build with the optional kit installed confirmed the emitted chunks exclude the kit and local reference cache. Debug and release skill staging produced matching hashes. An isolated import exercised successful upgrade and rollback. These tests simulate deferred producers. Live SSH, relay, peer and detached hosts were not exercised for this follow-up.

Reviewer notes

New street maps of public places require network access for lookup and tile acquisition. Replay uses the captured geometry. Regional maps use the bundled atlas. Remote workspace skill loading has unit coverage. Remote Control, Peer Device and Detached Dispatch have not been tested end to end for this PR.

AI-assisted implementation and verification. Local coverage is targeted; platform builds run in CI.

@wgqqqqq
wgqqqqq merged commit 256255b into openBitFun:main Nov 20, 2026
13 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