openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Slack shows long-startup error after reopening the app

Open Al629176 opened this issue 6 months ago • 1 comments

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:

  1. Open the OpenHuman staging build on macOS.
  2. Open or sign into the Slack embedded tab.
  3. Close and reopen the app.
  4. Navigate back to the Slack tab.
  5. Observe that Slack shows the taking longer than expected message 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

Al629176 avatar May 08 '26 13:05 Al629176

Verified fixed in main by PR #1536 (fix(accounts): reset transient webview status on rehydrate).

Smoked locally on debug build of upstream/main e7c2eb7c:

  1. Login to staging, connect Slack via embedded OAuth, confirm tab loads
  2. Cmd+Q to fully quit OpenHuman
  3. Reopen .app
  4. Navigate to Slack tab — loads normally, no "taking longer than expected" overlay

Closing as fixed.

oxoxDev avatar May 15 '26 13:05 oxoxDev