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.
Shared Web and Desktop design implementation
Issue map (created before implementation)
The owner requested 3–4 clear, independently reviewable GitHub issues. The following four issues are the implementation boundaries; no implementation has started from them:
- #2010 — Shared first-use Welcome and assistant setup
- #2011 — Shared backend connection and setup readiness
- #2012 — Shared Workbench shell and General Settings
- #2013 — Desktop integration and native Settings menu
Issues #2010–#2012 are shared React/Python Web/Desktop work and can be accepted one at a time. Issue #2013 starts only after the first three accepted results are in the shared master path and targets the long-lived desktop branch. Each issue body records its reuse points, acceptance criteria, and out-of-scope boundary. The issue comments record the dependency order.
Current status: #2011 and #2012 active
#2010 and its fidelity repair #2017 are merged through PRs #2015 and #2028.
The owner authorized #2011 implementation on 2026-09-18 and #2012 in parallel
at 02:36 Asia/Shanghai. Each uses a separate worktree from master 4019b704c,
with one product writer. #2013 remains deferred. The active #2011 contract is
2026-09-18-shared-backend-connection.md; its owner amendments supersede earlier
no-logo/centered-Welcome statements and sequential dispatch restrictions here.
Owner decisions and delivery boundary
- Implement the common React/Python application from latest
origin/masterfirst. - Then bring the shared work into the existing
desktopintegration branch and implement native-only behavior there. The existing Tauri shell is the host; native menus/window controls are not HTML product UI. - One installed assistant with one successfully applied subscription or API-key connection is sufficient to enter the workspace. Existing valid connections count. The user explicitly clicks Enter workspace; successful authorization alone never completes setup.
- Reuse Settings -> Backends authorization and save semantics. Reuse the existing AgentRoutePicker and DirectoryBrowser interactions.
- Keep existing product logo assets. Logo exploration boards are out of scope.
- The design is shared by Web and Desktop. The owner approved the complete design set on 2026-09-17; implementation must align both themes and languages together, preserve System mode, and use existing i18n ownership.
- Current authorization covers #2011 and #2012 in parallel. Shared master work precedes desktop-specific integration; merging, releasing, or changing the local running service requires separate authorization.
Planning source snapshot: 7c028d74ebc4eb82b39a09991fcb09c8400253b0.
Design source: /Users/max/workspace/ai/avibe/avibe-docs/design_desktop.pen.
Read design via native Pencil MCP (the document is already open); never edit/save the owner's working design. Use shared design.pen for referenced existing pickers.
Related handoff: /Users/max/workspace/ai/avibe/avibe-docs/docs/plans/2026-09-15-desktop-first-task-design.md. Latest owner decisions and latest Dark root annotations supersede older conflicting onboarding notes.
User outcome and acceptance invariants
- A new user reaches a usable workspace through Welcome -> three fixed assistant rows -> Enter workspace, without configuring IM first. Settings remains the optional destination for platform setup.
- Readiness is based on installed executable plus effective applied authentication, never executable presence, a selected radio, a rendered device code, or a locally optimistic success flag. Preserve existing valid native authentication and all saved product state. One incomplete backend cannot block another ready backend.
- Every connection stays targeted to its originating backend. OpenCode provider selection uses the installed runtime provider-auth catalog. Active flows lock method changes. Close/Escape/cancel share cancellation and preserve previously saved credentials. Errors preserve editable input. Save success refreshes effective state before rendering connected.
- Config mutation is narrow and concurrent-safe; setup completion retains the existing
setup_completedownership and controller reconciliation. Neither render nor detection writes credentials, enables remote access, or marks setup complete. No second service restart after accepted backend reconciliation. - Existing installations, Members, remote sessions, and recovery routes retain their current authorization and setup access rules. Setup is a one-time completion gate, not a new continuing requirement that locks existing users out after credential expiry.
- Task suggestions populate an editable draft and focus it. Agent and directory selection preserve draft and existing session semantics. No selection sends a message. Directory belongs to the current instance and respects permissions; existing project find-or-create behavior owns directory identity.
- Ordinary Settings entry opens General; explicit backend/platform/remote links retain destinations. Leaving Settings restores the underlying conversation/project, draft, and selection.
- Shared UI remains usable at mobile widths and with keyboard/reduced-motion, and in English/Chinese and existing light/dark/system modes. 1200x800 is the desktop design reference, not a fixed browser viewport.
- Existing project/session/inbox data, authorization gates, Apps, Memory, and permissions remain reachable. Mock-only example data and omitted settings are not product migrations.
Draft cross-lane contracts for final design reconciliation
Existing routes and config
Wizardremains exported fromui/src/components/Wizard.tsxand mounted at/setup; it keeps owning setup orchestration. Shared shell lane does not change AuthGuard logic without an agreed contract amendment.- Setup producer writes the existing
setup_completedthrough current narrow config mutation APIs only on the explicit completion action. The existing AuthGuard is the consumer. Preserve mode/platform migration semantics. - On successful setup completion, navigate to
/with React Router state{ onboardingCompleted: true }. This field means only that this navigation followed completed setup. It never authorizes access or fabricates backend availability. - Workbench consumes
onboardingCompletedfor the one-time dismissible readiness banner. Its Agent label comes from actual currently available Agent/default resolution. Ordinary returning-user navigation has no banner. Do not add a global event bus or persistent onboarding database. - Ordinary settings landing:
/settings/general. Explicit destinations:/settings/backends,/settings/platforms,/settings/remote-access; backend management/settings/backends/claude,/settings/backends/codex,/settings/backends/opencode(verify existing route spellings before use; a mismatch is an amendment request). - Existing auth API types and methods in ApiContext remain canonical. No speculative API or persistence schema is preallocated. Onboarding lane owns any necessary additive Python/API field work and reports the exact change before a consumer is added outside its lane.
Styling and localization
- Reuse existing theme variables. Shell lane owns
ui/src/index.cssand primitives; onboarding lane owns its component-scoped styles and uses existing variables so each lane builds independently. - No new package dependency is expected; existing framer-motion, Radix, Lucide and React are sufficient.
- Shared i18n JSON files are divided by key ownership: onboarding owns only new
onboarding.*subtree and necessary existingwelcome.*/wizard/auth keys; shell owns only newsharedWorkspace.*andsettings.general.*plus necessary workbench/navigation keys. Do not reformat whole JSON or modify sibling keys. These two files are the only permitted file overlap, with disjoint key edits; orchestrator verifies integration by key, not by trusting text merge. - Existing brand logos remain unchanged. No new generated brand assets.
Proposed implementation lanes and exclusive file ownership
O: onboarding and authentication (Codex)
Owns ui/src/components/Wizard.tsx, steps/Welcome.tsx, steps/AgentDetection.tsx, setup-only step/support files, a new components/onboarding/ subtree, settings/BackendOAuthPanel.tsx, settings/oauth/, settings/providers/, settings/shared/ auth/runtime helpers, settings/BackendLifecycleChip.tsx, context/ApiContext.tsx only if necessary, lib/wizardConfigMutations*, and directly related tests. Owns necessary minimal Python changes in vibe/api.py, vibe/ui_server.py, config/v2_config.py, existing backend auth/setup owners, focused Python tests and tests/scenarios/auth_setup/. Scope expansions are reported before editing.
No-touch: shell lane files, global CSS, App routing/AuthGuard, Workbench/Composer/pickers, native desktop tree, all Model Hub implementation under settings/models/, brand assets, sibling i18n keys. Reuse Model Hub icons/utilities read-only only when semantics match, never divert Backends auth into hub storage.
Deliver fixed-order Claude Code/Codex/OpenCode cards with independent install/error/retry states, compact auth dialog family and existing management for connected controls. OpenCode execution-permission policy stays owned by its existing path and may not turn an unrelated backend into a global setup blocker; if this conflicts with the approved enter criterion, report with a smallest scoped recommendation.
S: shared shell, homepage, General and tokens (Claude)
Owns ui/src/index.css, relevant existing primitive/visual presentation except brand assets, components/AppShell.tsx, components/Workbench.tsx, components/workbench/WorkbenchSidebar.tsx, Composer.tsx, the existing project/folder presentation glue and lib/useNewSession.ts only as needed; new shared-home components; App.tsx General route ONLY; settings/SettingsLayout*, SettingsOverlay*, SettingsPageShell*, new General page, LanguageSwitcher*, ThemeProvider/presentation helpers, lib/adminNavigation*, lib/settingsRoutes*, lib/settingsOverlay*, relevant keyboard/geometry helpers and directly related tests. Preserve existing picker internals unless a bounded trigger customization is required.
No-touch: onboarding lane files and Python, auth/provider/runtime helpers, ApiContext, Wizard/steps, Model Hub implementation, native desktop tree, brand assets, sibling i18n keys. Report geometry changes needed outside this scope before editing.
Deliver sidebar248 with header search/inbox and actual count; fixed navigation group; bottom Apps/Settings. Workbench has three draft-seeding cards, shared Composer with existing AgentRoutePicker and DirectoryBrowser, real one-time readiness banner, mobile continuation /settings/remote-access and messaging /settings/platforms. General uses existing theme/language ownership and explicit three-choice theme cards. Preserve non-owner language behavior and existing authorization rules.
Design inventory and implementation guidance
- Welcome
bi8Au: width1200x800 reference, no fake native titlebar in Web. Content max880; heading and three240x228 collaboration cards. Shared8.9s animation: PM0-1.5, handoff1.5-2.25, Codex2.25-3.75, handoff3.75-4.5, tests4.5-6, return6-7, PM summary7-8.9. Reduced motion shows completed. Six equal access tiles in two rows are descriptive; icon hover/focus1.18/180ms, idle emphasis every2s pauses during interaction/reduced motion. Start performs/reuses detection. - Setup
i3vw9,mK2JX,ICidc,I9Q8VD,F8RLgR: content max880, fixed three rows88px, radius12, logo well44, actions34. Hover changes border/glow only. Upgrade availability stays usable and is not completion gate. Compare live annotation before assigning any experimental per-frame color; shared semantic tokens remain default. - Auth boards
V0zHJ,OHULW,MvT2k,oLe1U,FwRTK,laAX1,MtOWg,KWKHX,JtVGU,r2y97O,D6uRiy,MGCD0: common568px dialog family, backend-specific fields. Settings->Backends auth/save semantics outrank old Model Hub reuse annotations. Claude auth token supported, Codex device flow, OpenCode device/browser/manual callback only when provider runtime requests that specific mode. - Workspace
n0PzOn: sidebar248, desktop padding28/48, heading30/600, task cards Explore project/Research question/Make plan. Composer radius16/padding18; inputs remain editable. Selector referenceuifbMis reuse guidance, not a new page. - Sidebar
DkNTK: icon buttons32, navigation40 with2px gap, selected mint/border/glow, gray hover. Keep authorization-aware visibility. No collapsed capability group on desktop. - General
r6G6P: settings sidebar196, main padding30/40, heading27/600, language select190x40, System/Light/Dark previews, autosave, return to prior surface. oc7yBnative application-menu behavior belongs to desktop follow-on only. Handoff boards are references; logo boards are excluded.
Verification and delivery gates
Each issue uses an isolated worktree and a real non-draft PR targeting master, never merges without authorization. Delivery follows the owner-authorized #2011/#2012 parallel division in the active contracts. Both begin from master; do not stack product PRs. Integrate #2011 before verifying the dependent #2012 completion banner.
Load pr-delivery-loop and background-watch-hook; use exact-head Codex bot pass, zero unresolved threads across all heads, and all expected CI successful. One forever combined PR/CI watch per lane with timeout0; notify orchestrator at first PR creation so it arms its independent gate watch before subsequent pushes. Inventory findings by reviewed head and root-cause class before fixing; repeated class on two reviewed heads or three findings heads after model rewrite stops patching for orchestrator diagnosis.
Run focused behavior tests, auth_setup scenario cases when auth changes, required UI build and theme/i18n validation, and Ruff on changed Python before push. Test state must be isolated from real HOME/config/keychains/services. Never restart local Avibe. For #2010 PM authorized fully API-mocked isolated browser checks; do not use the Incus runner, which writes primary-checkout metadata. At final integration check both actual boundaries together, including non-ASCII draft/directory and Settings return, and record visual evidence against exported Dark frames. Unit/mock success is not a live OAuth/network claim.
Follow-on and pending inputs
- #2010/#2017 are merged; #2011/#2012 are active and #2013 remains queued. The native desktop slice follows shared integration.
- Stage2 native desktop: after shared work is integrated, update from the shared master result and implement system Settings/menu/window specifics in desktop-based task worktrees. Preserve loopback/capability boundaries and existing lifecycle. No desktop->master wholesale merge is implied.
- Master merge and release: wait for explicit owner instruction after concrete PR gates and acceptance evidence.
Earlier pause verification
On 2026-09-17, two implementation runs had been dispatched before the owner clarified the design-completion gate. Both were canceled and their session queues were verified empty. Both isolated implementation worktrees remained clean at the contract-only commit ee14c1ad9; neither had product-code changes or later implementation commits. The scheduled implementation liveness task was removed and no implementation watch remained armed. These earlier sessions remain canceled. The owner-authorized #2011 and #2012 lanes now supersede that historical pause in separate worktrees.
- Onboarding: session
sestvg9hbksrs, canceled run2c40a884e87f, branchfeat/shared-onboarding. - Shared shell/home/General: session
seshdfv3uqjxj, canceled run54372ae4d030, branchfeat/shared-workspace-ui. - Historical contract baseline: branch
feat/shared-web-design-contract. Its historical pause is superseded by the active issue-specific contracts for #2011 and #2012; #2013 remains deferred.