Slack shows long-startup error after reopening the app
Summary
Reopening the app can leave the embedded Slack tab stuck on Slack is taking longer than expected instead of loading normally.
Problem
Slack should reload or resume when the app is reopened. Instead, the Slack tab can show the embedded startup error: Slack is taking longer than expected. The embedded app may still be starting up. Retry to reload it without signing in again.
Impact: users cannot reliably return to Slack after reopening OpenHuman, and they may need to manually retry or recover the embedded Slack session.
Steps to reproduce:
- Open the OpenHuman staging build on macOS.
- Open or sign into the Slack embedded tab.
- Close and reopen the app.
- Navigate back to the Slack tab.
- Observe that Slack shows the
taking longer than expectedmessage instead of loading promptly.
Version / platform: OpenHuman staging build on macOS, observed May 8, 2026 from user screenshot.
Solution (optional)
Investigate Slack embedded app startup/resume behavior after app relaunch. Add bounded retry/recovery behavior and debug logs around Slack WebView restore, session state, startup timeout, and retry handling.
Acceptance criteria
- [ ] Repro gone — Reopening OpenHuman and selecting Slack loads the embedded Slack app normally without getting stuck on the long-startup message.
- [ ] Session recovery — Existing Slack session/auth state is preserved or recovered without requiring unnecessary sign-in.
- [ ] Retry works — If Slack startup times out, the retry action reloads Slack successfully or surfaces a clear next step.
- [ ] Startup diagnostics — Logs capture Slack WebView restore/startup timing and timeout reasons without logging secrets.
- [ ] Per-tab isolation — Slack startup issues do not block other app tabs or global navigation.
- [ ] Regression safety — Unit, integration, or E2E coverage verifies Slack tab restore/retry behavior where testable.
- [ ] Diff coverage ≥ 80% — the fix PR meets the changed-lines coverage gate (Vitest + cargo-llvm-cov, enforced by
.github/workflows/coverage.yml).
Related
- User-provided screenshot from May 8, 2026 showing the embedded Slack
taking longer than expectedstate. - Tab switching lags in the staging build #1377
Verified fixed in main by PR #1536 (fix(accounts): reset transient webview status on rehydrate).
Smoked locally on debug build of upstream/main e7c2eb7c:
- Login to staging, connect Slack via embedded OAuth, confirm tab loads
- Cmd+Q to fully quit OpenHuman
- Reopen .app
- Navigate to Slack tab — loads normally, no "taking longer than expected" overlay
Closing as fixed.