Repository navigation
Description
Desktop App: Onboarding and Local Dev Friction Points
Branch: collab/desktop-friction-exploration → PR #5790
Team: ren (live testing + fixes), noa (code analysis + fixes), sora (flow YAMLs + error patterns)
Sessions: 8 completed (2026-03-17 through 2026-03-19)
Process
- Session 1: Initial setup — discovered auth URL hardcoding, onboarding dead-ends
- Session 2: Built local dev environment on Mac Mini — OAuth, backend, app wiring
- Session 3: Explored all Settings sections (9/9 pass), keyboard shortcuts, quick note, apps page
- Session 4: E2E backend wiring test — all core checkpoints passing
- Session 5: Recording (audio) verified e2e, conversation creation fixed (Gemini truncated JSON)
- Session 6: OAuth sign-in fully resolved — Python auth service extracted from prod
- Session 7: TCC Screen Recording fixed, all core features verified working
- Session 8: API key deferral audit — all 9 consumers fixed to wait for APIKeyService
Final Test Matrix (Session 8)
| Feature | Status | Notes |
|---|---|---|
| Google OAuth sign-in | ✅ | 5 root causes found & fixed |
| Dashboard | ✅ | — |
| Sign-out / Re-sign-in | ✅ | — |
| Conversations + Starred | ✅ | — |
| Chat (send) | ✅ | AI response expected fail — no ACP bridge config |
| Recording (audio) | ✅ | DeepGram WSS, nova-3, multichannel |
| Conversation creation | ✅ | Fixed Gemini truncated JSON |
| Screen Recording (TCC) | ✅ | Manual add via file picker |
| Rewind (AI analysis) | ✅ | Screen analysis starts after API keys load |
| API Key Deferral | ✅ | All 9 consumers wait for APIKeyService |
Complete Friction List
Resolved (28 items)
All fixes consolidated in PR #5790 (collab/desktop-friction-exploration → main).
| # | Friction | Fix | Commits |
|---|---|---|---|
| 1 | Auth URL hardcoded in AuthService.swift | OMI_AUTH_URL env var |
in trunk |
| 2 | Tasks onboarding dead-end (no Skip) | Added Skip button | in trunk |
| 3 | "Take me to my tasks" button unresponsive | handleOnboardingComplete() fails silently when services fail |
in trunk |
| 4 | Onboarding Skip doesn't skip all | — | Documented |
| 5 | Sidebar auto-collapses | — | Documented |
| 6 | Firebase project mismatch (prod vs dev tokens) | Python auth service for dev | Auth-Python/ |
| 7 | Safari stays in front after OAuth | — | Documented |
| 8 | Sidebar items lack accessibility roles | .accessibilityLabel + .accessibilityAddTraits |
in trunk |
| 9 | Sidebar nav broken after forced onboarding bypass | — | Documented |
| 10 | Keyboard shortcuts | All 7 verified working | ✅ No fix needed |
| 11 | Tasks empty state misleading | Default filters made hasActiveFilters always true |
73f89df66 |
| 12 | Sidebar label truncation | Long labels clipped in icon-only mode | b4a048086 |
| 13 | Settings layout padding | Section padding inconsistent | 3b881f71d |
| 14 | Window title bar | Missing custom title bar styling | 622e10db5 |
| 15 | Force unwraps (3 locations) | Replaced with safe optional handling | 6f25e56e5, 681a3316a, dc79cddf6 |
| 16 | Deprecated NSApp.activate(ignoringOtherApps:) |
Replaced with NSApp.activate() |
16 commits |
| 17 | Conversation pipeline crash | Memories extraction non-fatal | 60bea1003 |
| 18 | Encrypted message display | Styled placeholder for decryption failures | noa fix |
| 19 | Gemini truncated JSON | Memories extraction non-fatal error handling | 60bea1003 |
| 20 | AI Goal Generation auth error | Lazy GeminiClient init | e9912ed0c |
| 21 | Starred Filter HTTP 500 | Skip default status filter when starred is set | noa fix |
| 22 | API key race condition (9 consumers) | Deferred init + retry on APIKeyService.isLoaded | 9 commits (80860659a through 2ef4daf0c) |
| 23 | ACPBridge stale env snapshot | Use APIKeyService.currentAnthropicKey |
6004e8c7d |
| 24 | Auth service hardcoded port 8080 | Read PORT env var |
Auth-Python/ |
| 25 | run.sh inflexible | Added --help, OMI_SKIP_BACKEND=1 |
noa fix |
| 26 | Port 8080 conflict (Tailscale) | Team-specific redirect URIs (noa:10200, ren:10210) | geni + Auth-Python/ |
| 27 | Auth service not in repo | Python auth service needs docs/integration | Auth-Python/ added |
| 28 | TCC Screen Recording procedure | Manual add via file picker — documented | Documented |
Starred Filter — Firestore Composite Index
Friction #21 required a Firestore composite index that didn't exist. The backend error log:
google.api_core.exceptions.FailedPrecondition: 400 The query requires an index.
Index creation link (based-hardware-dev):
https://console.firebase.google.com/v1/r/project/based-hardware-dev/firestore/indexes?create_composite=Clhwcm9qZWN0cy9iYXNlZC1oYXJkd2FyZS1kZXYvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL2NvbnZlcnNhdGlvbnMvaW5kZXhlcy9fEAEaDQoJZGlzY2FyZGVkEAEaDQoJZm9sZGVyX2lkEAEaCwoHc3RhcnJlZBABGgoKBnN0YXR1cxABGg4KCmNyZWF0ZWRfYXQQAhoMCghfX25hbWVfXxAC
Composite index fields: discarded (ASC), folder_id (ASC), starred (ASC), status (ASC), created_at (DESC), __name__ (DESC).
Workaround applied: noa's fix skips the status IN filter when starred=true is set, avoiding the missing composite index entirely. Manager is creating the index on based-hardware-dev now.
API Key Deferral Audit (Session 8)
AppState.loadEnvironment() now skips API keys from .env — they're only fetched from the backend via APIKeyService.fetchKeys() after Firebase auth. 9 consumers were calling getenv() before keys were available:
| # | File | Fix |
|---|---|---|
| 1 | APIKeyService.swift |
Added nonisolated static helpers (currentGeminiKey, currentDeepgramKey, currentAnthropicKey, keysAvailable) |
| 2 | GeminiClient.swift |
Init uses APIKeyService.currentGeminiKey |
| 3 | TranscriptionService.swift |
Init + batchTranscribe use APIKeyService.currentDeepgramKey |
| 4 | EmbeddingService.swift |
Uses APIKeyService.currentGeminiKey |
| 5 | ACPBridge.swift |
Uses APIKeyService.currentAnthropicKey instead of stale ProcessInfo |
| 6 | GoalsAIService.swift |
Lazy GeminiClient init with retry |
| 7 | TaskDeduplicationService.swift |
Lazy GeminiClient init with retry |
| 8 | TaskPrioritizationService.swift |
Lazy GeminiClient init with retry |
| 9 | DesktopHomeView.swift |
Defer transcription + screen analysis, retry onChange(isLoaded) |
TCC Screen Recording Fix (Mac Mini)
sudo tccutil reset All com.omi.desktop-dev(both root and GUI user)- System Settings → Privacy & Security → Screen & System Audio Recording → click "+" (Add)
- In the file picker, type "omi" to jump to O section, arrow down to "Omi Dev", Enter
- Quit & Reopen when prompted
Key insight: Toggle only appears AFTER manually adding via file picker. tccutil reset removes the entry entirely. App must be launched from /Applications/ (not build dir).
PR Status
PR #5790: collab/desktop-friction-exploration → main
- 88+ commits across ren, noa, sora
- All core features verified e2e on Mac Mini
- All fixes consolidated here (PRs fix: desktop env hardcodes + onboarding tasks dead-end #5783 and Add accessibility labels to sidebar navigation items #5785 closed — their changes are in this trunk PR)
- Ready for review
Activity
beastoin commentedon Mar 18, 2026
Root cause found for Friction #5 (Tasks onboarding dead-end)
Root cause:
handleOnboardingComplete()setshasCompletedOnboarding = trueAFTER starting background services. When services fail (missing API keys, unauthorized), the UI state update is never reached:Fix in PR #5783: Reordered
handleOnboardingComplete()so cleanup +hasCompletedOnboarding = truehappen FIRST, then services start after. Service failures are now non-blocking.Credit: @ren found the root cause via app log analysis.
beastoin commentedon Mar 18, 2026
Additional friction from continued exploration (ren + sora)
FRICTION #6 (CRITICAL): Firebase project mismatch breaks local dev auth
OAuth via Cloud Run issues tokens for
based-hardware(prod), but local Rust backend validates againstbased-hardware-dev. Every authenticated API call returns Unauthorized in a loop.FRICTION #7: Safari stays in front after OAuth callback
After "Authentication Successful" page, the app doesn't refocus. User must manually Cmd-Tab back.
FRICTION #8: Sidebar nav items have no accessibility labels
Not exposed as interactive AX elements. VoiceOver users can't navigate, automated testing (agent-swift) can't target sidebar pages.
FRICTION #9: No keyboard shortcuts for sidebar navigation
No Cmd+1/2/3 to switch between Dashboard/Chat/Memories/Tasks etc.
FRICTION #10: Continuous error spam in logs with no backoff
ChatProvider, Conversations, SettingsSyncManager all log Unauthorized every 5-15 seconds. No exponential backoff. Makes real debugging very difficult in local dev.
Priority assessment
beastoin commentedon Mar 18, 2026
Friction exploration update (2026-03-18)
Trunk branch:
collab/desktop-friction-exploration(PR #5790)Team: ren (live testing + fixes), noa (code analysis + fixes), sora (flow YAMLs + error patterns)
Fixed PRs (all LGTM'd, merged into trunk)
.accessibilityLabel,.accessibilityAddTraits(.isButton),.accessibilityIdentifierto NavItemView, NavItemWithStatusView, BottomNavItemViewAuthBackoffTrackerwith exponential backoff (5s→15s→30s→60s) across 5 polling sitesNSApp.activate(ignoringOtherApps: true)after OAuth callbackNoa's fixes (merged into trunk)
DEEPGRAM_API_URLenv var (removed 3 hardcoded URLs + 3 force unwraps)FIREBASE_API_KEYenv varSora's additions (merged into trunk)
New friction found (live exploration on Mac Mini)
#15: Chat "AI not available" error — When acp-bridge node components aren't installed (common in dev builds without
run.sh), the Chat page shows "AI not available: AI components missing. Please reinstall the app." — the "reinstall" guidance is unhelpful for developers.#16: Tasks page shows blank when API auth fails — Tasks loads 23 items from local SQLite but
TasksViewModel: Loaded 0 filtered tasksshows 0. The empty state message exists but the interaction between local cache and API auth failures causes confusing blank state.#17: Rewind "No Screenshots Yet" doesn't explain permission — After clicking "Get Started", shows "No Screenshots Yet" with no guidance about enabling Screen Recording. The permission prompt only shows when
hasScreenRecordingPermission == false, but the app can think it has permission while Rewind hasn't started capturing.Architectural issues filed
by AI for @beastoin
beastoin commentedon Mar 18, 2026
Friction exploration update #2 (2026-03-18)
Settings page exploration (all 9 sections)
Completed live exploration of all Settings sections on Mac Mini via agent-swift:
Note: Settings page previously crashed the app (session 1). No crash this session — was likely a transient issue.
Fixes pushed to trunk
Tasks empty state fix (
73f89df66):[.todo, .last7Days]madehasActiveFiltersalways returntrueisFilteredEmpty = hasActiveFilters && !tasks.isEmpty— only show filter messaging when tasks exist but are all filtered outNoa's encrypted content fix (
a6514f901):New friction found this session
#18: "[Encrypted message — decryption failed]" in Chat — visible on Chat page as raw message content. Same encryption key mismatch as memories. Noa's fix covers memories; chat messages may need same treatment.
#19: Focus/Memories list shows mixed encrypted + readable content — The Focus/memories list (accessible via gear icon top-right) shows "[Encrypted content — decryption failed]" entries mixed with readable AI insights from the dev session. Creates confusing reading experience.
Remaining exploration areas
by AI for @beastoin
beastoin commentedon Mar 18, 2026
Friction exploration update #3 (2026-03-18)
New fixes pushed to trunk (session 2)
ren's fixes:
73f89df66[.todo, .last7Days]madehasActiveFiltersalways true. Now shows "All Caught Up! / You have no tasks yet" whentasks.isEmptyb4a0480863b881f71dnoa's fixes (session 2):
e01eaa4f7a3b18949920cc360bc0dd3d732c68233cea9f4fad79f7b2db11c3b793410d87c57620a04edec55d04Live exploration completed (Mac Mini)
All core feature areas explored via agent-swift:
Cumulative trunk stats
by AI for @beastoin
beastoin commentedon Mar 18, 2026
Screenshot evidence from Mac Mini live testing (2026-03-18)
Dashboard
Tasks widget, Goals, Conversations list with search/filters — all functional.
Chat (encrypted content friction)
"[Encrypted message — decryption failed]" displayed when dev ENCRYPTION_SECRET doesn't match prod data. Fixed by noa — styled placeholders instead of raw error text.
Tasks (empty state friction)
Shows "No Matching Tasks / Try adjusting your filters" even when user has zero tasks. Fixed by ren — now shows "All Caught Up! / You have no tasks yet" when
tasks.isEmpty.Settings — General
Screen Capture, Audio Recording, Notifications, Ask omi, Font Size — all working.
Settings — Rewind
Storage info (2,007 frames / 1.9 MB), Excluded Apps list.
Settings — Transcription
Language Mode, Custom Vocabulary, Local VAD Gate, Batch Transcription.
Settings — Account
User info, Sign Out, Delete Account & Data.
Settings — About
Version 1.0 (1), Software Updates, Update Channel (Stable), Report an Issue.
Conversation Detail
Summary, metadata (Desktop, 2m 53s, Technology), Try with Apps — all functional.
by AI for @beastoin
beastoin commentedon Mar 18, 2026
Friction Exploration Update — Session 3 (Tier 1 Self-Contained Features)
Explored tier 1 self-contained features per plan with @sora:
✅ #10 Keyboard Shortcuts — PASS
All 7 shortcuts verified: Cmd+1 Dashboard, Cmd+2 Chat, Cmd+3 Memories, Cmd+4 Tasks, Cmd+5 Rewind, Cmd+6 Apps, Cmd+, Settings.
"AI service authentication error. Please update the app to the latest version."— GoalsAI service (Gemini) can't authenticate in dev builds.Failed to load conversations, HTTP error: 500. Backend cannot serve starred conversations filter.New Friction Points Summary
Next
Tier 2 features (requires backend): #1 Transcription flow, #7 Chat with AI.
by AI for @beastoin
beastoin commentedon Mar 18, 2026
Friction Fix Update — FRICTION #20 and #21 Resolved
@noa fixed both dev API frictions:
FRICTION #20: AI Goal Generation Auth Error — FIXED
Root cause:
GoalsAIServicesingleton eagerly initializedGeminiClientininit()beforeAPIKeyService.fetchKeys()had set the API key → auth always failed.Fix: Changed to lazy initialization on first use, ensuring API key is available.
FRICTION #21: Starred Filter HTTP 500 — FIXED
Root cause: Combining Firestore
status IN+starred=true+ORDER BY created_atrequired a composite index that didn't exist → Firestore returned 500.Fix: Skip default status filter when starred is set, avoiding the missing composite index.
Additional fixes pushed to trunk:
based-hardware.env.exampleupdatedAll build-verified on Mac Mini (Swift + Rust).
Open frictions remaining: #15 (system audio dialog persistence), #19 (notes edit/delete not keyboard/a11y accessible)
by AI for @beastoin
beastoin commentedon Mar 18, 2026
Session 4: E2E Dev Backend Wiring Test (2026-03-18)
Summary
Full end-to-end test of desktop app wired to local dev backend on Mac Mini. Rebuilt app + Rust backend from latest trunk code (88+ commits). All core checkpoints passing.
E2E Test Results
AuthState.isSignedIn=true, Firebase auth operationalstarred=truereturns correctly (was HTTP 500 before fix)Friction Points Fixed This Session
auth_isSignedIn=truebut no refresh token → all API calls fail silentlyDev Environment Setup Frictions (documented, not code bugs)
These affect anyone setting up the desktop app for local dev testing:
localhost:8080on Mac Mini — must usePORT=8081cloudflared tunnel runrequires cert not available for all users — workaround: manually setOMI_API_URL=http://localhost:<port>in app bundle.env.build/directories owned by wrong user requirechmodfixescodesign --force --deep --sign -to avoidRBSRequestErrorDomain Code=5Branch Status
collab/desktop-friction-exploration— 88+ commitsbeastoin commentedon Mar 18, 2026
Session 5 Report — Core Feature Testing
Recording (Audio) ✅ Verified E2E
nova-3model, multichannel (mic Ch0 + system audio Ch1), 16kHzConversation Creation ✅ Verified E2E (with fix)
gemini-3-pro-previewreturns truncated JSON for memories extraction ({"memories": []without closing brace), crashing entire pipeline even though title + summary succeeded. Fix pushed (60bea10): memories extraction now non-fatal + JSON repair + max_output_tokens 500→1000.Rewind (Screen) ❌ Blocked by TCC
CGPreflight says no permissionafter 3 retries, even with Apple Development cert signingFresh OAuth Sign-in ❌ Token exchange 400
POST /v1/auth/tokenreturns 400. Auth service likely doesn't whitelistomi-computer-dev://auth/callbackredirect URI (only prodomi-computer://). @noa-fyi investigating.New Frictions Found
run.shCREDS_PATH uses relative$BACKEND_DIRaftercd, causing double-nested pathrun.shsecurity cmsfails silently inlaunchctl asusercontext, preventing signing team mismatch detection → RBSRequestErrorDomain Code=5run.shPORT env var doesn't propagate through sudo/launchctl chainNoa's Commits Verified
76263a779Sign-out FIREBASE_API_KEY preservation ✅ (pulled)87d8668aa44ec901d923104c534Hardcoded URL fallback removal ✅ (pulled)81723ab2cCodemagic OMI_DESKTOP_APP_ENV_V2 ✅ (pulled)b2960da4eStarred filter Rust tests ✅ (pulled)580f8025dOMI_AUTH_URL bootstrap in run.sh ✅ (pulled, verified in app .env)267945d03FIREBASE_AUTH_PROJECT_ID auto-set in run.sh ✅ (pulled, verified in backend logs)App Bundle Security ✅
Verified clean: only
OMI_API_URL,FIREBASE_API_KEY,OMI_AUTH_URLin bundle .env. No DEEPGRAM, GEMINI, ANTHROPIC, or GOOGLE_CALENDAR keys. All fetched at runtime via APIKeyService.beastoin commentedon Mar 18, 2026
Session 6 update — OAuth sign-in and core feature testing
Critical fix: Firebase custom token generation (5f62ae5)
The Rust backend's
generate_custom_token()inroutes/auth.rswas not implemented — it contained a TODO comment and returned an error. This caused the OAuth sign-in flow to complete in the browser (Google consent + Firebase signInWithIdp both succeed) but fail silently on the app side with "Server did not return authentication token" (AuthError.missingCustomToken).Fix: Implemented proper Firebase custom token JWT signing using the service account private key (RS256), equivalent to Python's
firebase_admin.auth.create_custom_token(). Thejsonwebtokencrate was already a dependency.OAuth flow observations
Safari "Allow" dialog blocks the redirect — When the callback page tries to redirect via
omi-computer-dev://auth/callback, Safari shows "Do you want to allow this website to open 'Omi Dev'?" The user must click "Allow" within the app's auth timeout window (~60s). If they don't, the app times out with AuthError.timeout (code=8).Port 8080 conflict with Tailscale — On the Mac Mini, Tailscale's daemon (PID 576) binds to
127.0.0.1:8080. The Google OAuth client is registered forlocalhost:8080redirect URIs. The Rust backend can't bind to 8080, and using a different port causesredirect_uri_mismatch. This needs investigation — either configure Tailscale to release port 8080, usetailscale serveas a reverse proxy, or register additional redirect URIs in the Google OAuth client.Core features tested (sessions 4-5)
CGPreflightsays no permission even with Apple Development cert signing. Dev environment limitation.beastoin commentedon Mar 19, 2026
Session 7 update — Full OAuth sign-in flow working + complete test pass
OAuth Sign-in: RESOLVED ✅
After 3 sessions of debugging, OAuth sign-in is now fully working end-to-end. The fix required multiple layers:
Root causes found:
TODOstub. Solution: noa extracted a Python auth service (Auth-Python/) from the prod container that handles OAuth + Firebase custom token natively.100.125.36.102:10200gotinvalid_request. Google only allowshttp://localhost:*for native app OAuth. Solution: run auth service on Mac Mini locally.redirect_uri_mismatch(not registered in Google OAuth console). Port 8080 was available after Tailscale released it.source .envwithoutset -adidn't export vars — Backend process inherited no env vars. Shell vars ≠ exported env vars.FIREBASE_AUTH_PROJECT_ID=based-hardwarebut custom tokens signed bybased-hardware-devSA produce tokens withiss/aud=based-hardware-dev. Backend rejected withInvalidIssuer. Fixed tobased-hardware-dev.defaults writeas userclaudewas invisible to app running asbeastoinagents. Neededsudo launchctl asuser 501 sudo -u beastoinagents defaults write.Complete Test Results
New Friction Items Documented (PR #5790)
127.0.0.1:8080, same port Google OAuth requiresRemaining work
tccutil reset ScreenCapture+ GUI grant)beastoin commentedon Mar 19, 2026
Session 7 update (addendum) — TCC Screen Recording FIXED
Screen Recording: RESOLVED ✅
After extensive debugging with kai, the TCC Screen Recording permission is now working on the Mac Mini.
What worked (Option 2 — manual add via file picker):
sudo tccutil reset All com.omi.desktop-dev(both root and GUI user)What did NOT work:
tccutil resetalone (clears the entry but doesn't re-grant)CGRequestScreenCaptureAccess()which opens Settings but doesn't add the app)Logs confirm:
Remaining issue: Rewind page shows "AI features are not configured. Please update the app." — this is a Gemini/AI config issue, not a permission issue. Screen capture itself works.
Updated Test Results
beastoin commentedon Mar 19, 2026
Session 7 — Final Status: All Core Features Working ✅
After 7 sessions of exploration, all major desktop app flows are now verified working end-to-end on the Mac Mini dev environment.
Final Test Matrix
Key Learnings (for dev setup documentation)
1. OAuth requires Python auth service (
Auth-Python/)localhost:8080(Google OAuth rejects non-localhost and non-registered ports)firebase-admin,PyJWT,cryptography,fastapi,uvicorn+ credentials2. Firebase project ID mismatch
based-hardware-dev, so custom tokens haveiss/aud=based-hardware-devFIREBASE_AUTH_PROJECT_ID=based-hardware-dev(notbased-hardware)based-hardwarebut that's for the Firebase SDK init, not token validation3. Environment variable gotcha
source .envdoes NOT export vars to child processesset -a; source .env; set +aorexporteach var4. TCC Screen Recording on Tahoe
tccutil resetremoves the app from the list entirelyGEMINI_API_KEYin .env for AI-powered screen analysis5. UserDefaults per-user on macOS
defaults writeas userclaudeis invisible to app running asbeastoinagentssudo launchctl asuser 501 sudo -u beastoinagents defaults writeFriction Items (documented on PR #5790)
Current Dev Environment State
100.125.36.102:10201(clean build, correct FIREBASE_AUTH_PROJECT_ID)localhost:8080, Omi Dev running with Rewind (On)OMI_API_URL,FIREBASE_API_KEY,OMI_AUTH_URL,GEMINI_API_KEYbeastoin commentedon Mar 19, 2026
API Key Deferral Audit — Complete
Problem:
AppState.loadEnvironment()now skips API keys (GEMINI, DEEPGRAM, ANTHROPIC, GOOGLE_CALENDAR) from.env— they're fetched from the backend viaAPIKeyService.fetchKeys()after auth. But several services calledgetenv()or created clients BEFOREfetchKeys()completed, gettingnilkeys.Fix: 9 commits on
collab/desktop-friction-exploration:APIKeyService.swiftnonisolated statichelpers (currentGeminiKey,currentDeepgramKey,currentAnthropicKey,keysAvailable) — thread-safe for use from any actorGeminiClient.swiftAPIKeyService.currentGeminiKeyinstead of baregetenv()TranscriptionService.swiftAPIKeyService.currentDeepgramKeyEmbeddingService.swiftAPIKeyService.currentGeminiKeyACPBridge.swiftANTHROPIC_API_KEYviaAPIKeyService.currentAnthropicKey(not staleProcessInfosnapshot)GoalsAIService.swiftgetGeminiClient()when keys weren't available at first attemptTaskDeduplicationService.swiftTaskPrioritizationService.swiftDesktopHomeView.swiftstartTranscription()andstartMonitoring()until keys load; retries viaonChange(of: apiKeyService.isLoaded)E2E verified on Mac Mini:
All services correctly defer then auto-recover once APIKeyService loads.
beastoin commentedon Mar 19, 2026
Complete Friction List (Sessions 2-8)
Resolved
PORTenv var.tccutil resetremoves entry entirely. Fix: Manual add via file picker ("+") → type "omi" → select → Enter → Quit & Reopen. Only works from/Applications/install.loadEnvironment()skips API keys, services init beforeAPIKeyService.fetchKeys()completes. Fix: 9 commits — nonisolated static accessors, lazy init with retry, DesktopHomeView deferral + onChange retry.main.pyhadport=8080hardcoded. Fix: Now readsPORTenv var (commit 7e3ec0a).pendingToolCalls.first!,screenshots.first!,NSApp.windows.first!. Fix: 3 commits (dc79cdd, 681a331, 6f25e56).NSApp.activate(ignoringOtherApps:)deprecated on Tahoe. Fix: 16 commits replacing withNSApp.activate().Known / Open
/v1/config/api-keyscall, succeeds on retry (1s later). Non-blocking but adds latency.run.sh. Currently manual venv + pip install.run.shstill tries to start local backend. Would benefit fromOMI_SKIP_BACKEND=1.run.shhandles with fallback entitlements but the error is confusing.Add accessibility labels to sidebar navigation items
Activate app after OAuth callback so Safari doesn't stay in front
Add Cmd+1..6 sidebar nav shortcuts and Cmd+, for Settings
Add AuthBackoffTracker for exponential backoff on auth failures
Add accessibility labels to sidebar navigation items
Add AuthBackoffTracker for exponential backoff on auth failures
Activate app after OAuth callback so Safari doesn't stay in front
Add Cmd+1..6 sidebar nav shortcuts and Cmd+, for Settings