Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

docs(plan): refine multi-platform UX scope

cyhhao10cb4fa4fb41
diff --git a/docs/plans/multi-platform-im.md b/docs/plans/multi-platform-im.md
index 14f5374fd..b8d4290d4 100644
--- a/docs/plans/multi-platform-im.md
+++ b/docs/plans/multi-platform-im.md
@@ -57,12 +57,27 @@ Planned behavior:
UX details:
- First selected platform can still be used as the default "primary platform" for UI ordering and backward compatibility.
+- In phase 1, `primary` is an internal compatibility concept and should not be exposed in the UI as a user-facing choice.
- WeChat should keep its current special onboarding behavior:
- auto-generate QR
- skip channel configuration
- default `show_duration=false`
- Summary page should show all enabled platforms and their readiness, not just one.
+Wizard state rules:
+
+- each selected platform config step has explicit state: `not_started`, `in_progress`, `completed`
+- Back from a platform config step returns to the previous selected platform config step; eventually back to platform selection
+- unselecting an already configured platform keeps its credential block in config, but marks it disabled
+- if a user selects a platform in phase 1, they must complete its minimum required auth/config before continuing
+
+Minimum completion rule per platform:
+
+- Slack: valid bot token + app token (or SaaS OAuth completion)
+- Discord: valid bot token
+- Lark: valid app id + app secret
+- WeChat: QR login confirmed and bot token issued
+
### 2. Web UI interactions
Dashboard / settings changes:
@@ -77,6 +92,15 @@ Dashboard / settings changes:
- Lark settings
- WeChat settings
+Dashboard information architecture:
+
+- top summary shows enabled platform count rather than a single platform label
+- each enabled platform gets its own card with status:
+ - connected
+ - auth required
+ - error
+- cards link into platform-specific configuration views for recovery
+
Channel settings:
- Channel management must become platform-scoped.
@@ -84,7 +108,12 @@ Channel settings:
- Slack channels
- Discord guild/channels
- Lark chats
- - WeChat: no channel page
+- WeChat: no channel page
+
+Recommended phase-1 UX:
+
+- Wizard channel configuration is shown as one step per channel-capable platform
+- Dashboard channel management uses platform tabs rather than mixing all channels in one list
Operational feedback:
@@ -100,6 +129,15 @@ Operational feedback:
- Interactive platforms still show platform-appropriate buttons.
- If future product wants platform-specific menus, keep message generation platform-aware but share one command handler.
+### 4. Identity and binding rules
+
+- Bind code remains global, but bound identities remain platform-scoped
+- User identity is always modeled as `platform::user_id`
+- No cross-platform user merge in phase 1
+- Admin status remains effectively per-platform because settings keys remain platform-scoped
+
+This rule should be reflected in both code and user documentation to avoid ambiguity.
+
## Technical Plan
### 1. Config model evolution
@@ -130,6 +168,7 @@ Rules:
- New source of truth becomes:
- `platforms.enabled`
- `platforms.primary`
+- `platforms.primary` is used only for compatibility, ordering, and legacy fallbacks in phase 1
- Migration rules:
- if only legacy `platform` exists, transform to `enabled=[platform]`, `primary=platform`
- if `platforms` exists, keep `platform = primary` during serialization for compatibility with old code paths
@@ -204,6 +243,17 @@ Needed changes:
This is the most important architectural change.
+Capability model requirement:
+
+- shared handlers must stop assuming all global settings are supported equally on all platforms
+- phase 1 keeps these settings global: `ack_mode`, `show_duration`, `reply_enhancements`, `language`
+- runtime must apply per-platform capability fallback, for example:
+ - WeChat forces `typing` when `ack_mode=reaction`
+ - WeChat omits quick replies when `reply_enhancements=true`
+ - channel-only settings are ignored for WeChat
+
+Add a capability matrix during implementation and keep the fallback behavior explicit.
+
### 5. Message ingress / egress path
Current path relies heavily on `self.config.platform` checks in shared handlers.
@@ -245,6 +295,7 @@ Needed changes:
- `getConfig` / `saveConfig` should accept `platforms.enabled` and `platforms.primary`
- QR login endpoints stay WeChat-specific but should coexist with other enabled platforms
- UI payloads should stop overwriting unrelated platform config blocks when saving one platform step
+- config save semantics should move toward merge / patch behavior rather than rebuilding unrelated platform blocks from defaults
### 8. Backward compatibility strategy
@@ -278,6 +329,7 @@ This reduces migration risk and lets the feature roll out incrementally.
- add dynamic per-platform steps
- split channel/settings UI by platform
- add per-platform status cards
+- define and implement explicit step-state transitions for back, unselect, and partial completion
### Phase 3 - Product polish
@@ -305,6 +357,10 @@ This reduces migration risk and lets the feature roll out incrementally.
5. **Wizard persistence bugs**
- current setup flow tends to rewrite large config payloads; this can accidentally erase non-current platform state if not refactored
+6. **Product ambiguity around partial completion**
+ - if a selected platform is left unauthenticated, users need a clear visible state and recovery action
+ - this must be defined before implementation to avoid inconsistent UX across wizard and dashboard
+
## Recommended Initial Delivery Scope
For the first implementation, target this smaller but complete slice:
@@ -314,6 +370,7 @@ For the first implementation, target this smaller but complete slice:
- update wizard to multi-select and show one config step per chosen platform
- update summary/dashboard to show all enabled platforms
- keep channel config only for platforms that support it
+- add per-platform status cards with at least `connected / auth required / error`
- postpone deeper product features like per-platform live health dashboards if needed
## Open Questions
@@ -323,6 +380,16 @@ For the first implementation, target this smaller but complete slice:
3. Should onboarding require all selected platforms to finish auth before completion, or allow partial completion with some platforms pending?
4. Should platform enable/disable changes trigger selective restarts, or a full controller restart in phase 1?
+## Product Acceptance Checklist
+
+- Wizard supports selecting 1..N platforms and preserving per-platform in-progress data
+- Saving one platform's credentials does not clear another platform's credentials
+- Slack + Discord can be enabled together and both receive replies in one process
+- One platform auth failure does not break other enabled platforms
+- Dashboard shows all enabled platforms with at least `connected / auth required / error`
+- WeChat remains special-cased correctly: QR auth, no channel setup, no quick replies, duration off by default
+- Single-platform installs remain behavior-compatible with current versions
+
## Recommended Answer for Phase 1
- keep `primary` for compatibility/UI ordering