Skip to content

feat: visual mode toggle, plan build state sync, and dev toolchain improvements#2

Merged
GCWing merged 5 commits into
GCWing:mainfrom
wsp1911:main
Feb 9, 2026
Merged

feat: visual mode toggle, plan build state sync, and dev toolchain improvements#2
GCWing merged 5 commits into
GCWing:mainfrom
wsp1911:main

Conversation

@wsp1911
Copy link
Copy Markdown
Collaborator

@wsp1911 wsp1911 commented Feb 9, 2026

  • Visual mode for Agentic mode — Add enable_visual_mode config (Rust + TS) with a toggle in AgenticModeConfig. When enabled, injects Mermaid diagram instructions into the system prompt via a new {VISUAL_MODE} placeholder in PromptBuilder.
  • Plan build state sync — Extract shared PlanBuildStateService singleton to centralize build tracking, TodoWrite file sync, and subscriber notifications. Fixes inconsistent build/building/built button states between CreatePlanDisplay and PlanViewer across mount/unmount cycles.
  • Fix GlobalConfigManager reloadreload() now mutates the existing Arc<ConfigService> in-place instead of replacing it, preventing desync between AppState writes and GlobalConfigManager reads.
  • Add Git tool to agentic defaults — Include Git in the default tool list for agentic mode.
  • Switch to pnpm tauri CLI — Replace all cargo tauri commands with pnpm tauri across scripts, config, and docs. Eliminates the need for a global cargo install tauri-cli.
  • Improve dev script error outputrunSilent/runInherit now return structured results with stderr tail, exit codes, and Windows GBK decoding support.
  • Misc cleanup — Unify AIExperienceConfig fields to snake_case, remove unused priority strategy UI, make tool toggles save immediately, and add missing zh-CN translations for plan UI.

Update desktop scripts/config and docs to rely on pnpm tauri.
- Add enable_visual_mode field to AIExperienceConfig (Rust & TS)
- Add VISUAL_MODE placeholder in PromptBuilder to inject Mermaid
  diagram instructions when visual mode is enabled
- Implement visual mode switch in AgenticModeConfig panel with
  immediate persistence via configAPI
- Remove unused priority strategy UI
- Change tool toggles to save immediately instead of requiring
  manual save button click
- Fix GlobalConfigManager::reload Arc divergence causing config
  writes via AppState to desync from reads via GlobalConfigManager
Extract a shared PlanBuildStateService singleton to centralize build
state tracking, TodoWrite file sync, and subscriber notifications.
Both components now use the same service as the single source of truth,
ensuring consistent build/building/built button states regardless of
mount/unmount timing.

Changes:
- Add shared/services/PlanBuildStateService.ts (singleton service)
- Remove duplicated build state, TodoWrite handlers, and file write
  guards from both CreatePlanDisplay and PlanViewer
- Both components subscribe to the service on mount and read initial
  state from it, covering all open/close timing scenarios
@GCWing
Copy link
Copy Markdown
Owner

GCWing commented Feb 9, 2026

lgtm

@GCWing GCWing merged commit 40f694e into GCWing:main Feb 9, 2026
wsp1911 referenced this pull request in wsp1911/BitFun Feb 10, 2026
feat: visual mode toggle, plan build state sync, and dev toolchain improvements
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