How ted-h-com/multi-ai-chat-desktop works
Multi-AI Chat Desktop is a Tauri workflow hub that coordinates real, signed-in provider web sessions. The user submits a question in the workspace; the app runs a selected preset or mode, sends work to assigned providers, gathers responses, and presents the result in the conversation. Native WebViews and injected provider-page automation enable that work. Supporting capabilities include settings and provider selection, snapshots and replay, session checkpoints, diagnostics, and localization. Edges reflect excerpts, SOURCE INDEX references, or README statements; unsampled subsystem links are omitted where their callers are not shown.
Main entry points: App.tsx Workspace UI · index.ts Workflow entry · webviews.rs Provider WebViews · executor.ts Graph executor
Components 20
Workspace
- Workspace UI
src/App.tsx - Conversation continuity
src/ui/conversationContinuity.ts - Localization
src/i18n/t.ts
Workflow orchestration
- Workflow entry
src/workflow/index.ts - Graph executor
src/workflow/graph/executor.ts - Response language
src/workflow/responseLanguage.ts - Workflow checkpoint
src/workflow/checkpoint.ts - Snapshots and replay
src/workflow/snapshot
Provider automation
- Provider web sessions
- Page automation engine
injected/engine.ts - Adapter report digest
injected/reportDigest.ts
Desktop services
- Host bridge API
src/host/index.ts - Provider WebViews
src-tauri/src/webviews.rs - Native bridge
src-tauri/src/bridge.rs - Adapter management
src-tauri/src/adapters.rs - Settings
src-tauri/src/settings.rs
State and diagnostics
- Event log
src/diagnostics/eventLog.ts - Broken adapter reporting
src/ui/reportBroken.ts - Session checkpoint storage
src-tauri/src/session_checkpoint.rs
Other components
- User
Connections 20
- User → Workspace UI: submits question
README.md - Workspace UI → Workflow entry: starts workflow
src/App.tsx - Workflow entry → Graph executor: executes graph
src/workflow/index.ts - Graph executor → Response language: uses policy
src/workflow/graph/executor.ts - Workspace UI → Conversation continuity: loads sessions
src/App.tsx - Workspace UI → Localization: uses translations
src/App.tsx - Workflow entry → Snapshots and replay: persists snapshots
src/workflow/index.ts - Workspace UI → Host bridge API: uses host API
src/App.tsx - Host bridge API → Provider WebViews: invokes commands
src/host/index.ts - Provider WebViews → Adapter management: uses adapters
src-tauri/src/webviews.rs - Provider WebViews → Native bridge: uses bridge
src-tauri/src/webviews.rs - Provider WebViews → Settings: reads settings
src-tauri/src/webviews.rs - Adapter management → Provider web sessions: updates page automation
- Provider web sessions → Page automation engine: runs injected code
- Page automation engine → Adapter report digest: builds report digest
injected/engine.ts - Workspace UI → Event log: records events
src/App.tsx - Workspace UI → Broken adapter reporting: reports adapter issue
src/App.tsx - Workflow entry → Workflow checkpoint: manages checkpoints
- Workflow checkpoint → Session checkpoint storage: saves checkpoint
- User → Provider web sessions: signs in
README.md