openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Webview: Slack full end-to-end parity with the native app

Open graycyrus opened this issue 7 months ago • 2 comments

Summary

Ensure the Slack webview (https://app.slack.com/client/) works identically to the native Slack desktop app: login, messaging, channels, threads, reactions, Huddles (voice/video), file sharing, native OS notifications, and continuous memory ingestion.

Problem

While Slack is a CDP-migrated provider (Network MITM + IDB + DOM snapshot scanner), there are gaps versus the native app experience: Huddle popup whitelisting needs verification under all edge cases, and end-to-end coverage of all Slack features has not been formally validated.

Solution

Validate and fix every Slack feature path. The scanner (slack_scanner/) uses CDP exclusively (zero JS injection). IDB scan interval is 30s. Messages are grouped by (channel_id, day) and upserted via openhuman.memory_doc_ingest.

Acceptance criteria

  • [ ] Auth — Google SSO, email/password, SAML SSO all complete without manual intervention; session persists across app restarts
  • [ ] Messaging — Send and receive messages in channels, DMs, and group DMs; threads render and are navigable
  • [ ] Reactions & emoji — Emoji picker opens, reactions post correctly
  • [ ] File sharing — Upload and download files; image previews render inline
  • [ ] Huddles — Huddle popup spawns correctly (about:blank → huddle URL whitelisted); audio/video functional; Huddle end cleans up popup
  • [ ] Notifications — Native OS notifications fire for new messages; respect per-channel mute settings; DND honored; notification_settings toggle works
  • [ ] Memory ingestion — IDB scanner extracts messages, users, channels, workspace name; memory_doc_ingest posts land in core; messages grouped by (channel_id, day)
  • [ ] DOM snapshot — dom_snapshot.rs fast-tick captures unread badges and channel list accurately
  • [ ] Multi-workspace — Switching workspaces within the same webview works; scanner tracks correct team_id
  • [ ] Session persistence — Tab switch away and back preserves warm session; no re-auth required
  • [ ] Search — Slack's built-in search functional within the webview
  • [ ] Navigation — External links open in system browser; internal links stay in webview; allowed hosts (slack.com, slack-edge.com, slack-imgs.com, slack-files.com) all resolve

Known issues / limitations

  • Huddle popup handling uses about:blank whitelisting which may break if Slack changes their popup flow
  • Scanner can be force-disabled via OPENHUMAN_DISABLE_SLACK_SCANNER=1 env var (dev escape hatch)
  • IDB scan interval is 30s — messages within that window may be delayed vs native push

Related

  • Scanner: app/src-tauri/src/slack_scanner/ (mod.rs, idb.rs, extract.rs, dom_snapshot.rs)
  • Huddle popup logic: app/src-tauri/src/webview_accounts/mod.rs
  • Manifest: app/src-tauri/recipes/slack/manifest.json

graycyrus avatar Apr 29 '26 12:04 graycyrus

@oxoxDev will close after testing is done

graycyrus avatar Apr 30 '26 06:04 graycyrus

The huddle issue resolved in #1079.

oxoxDev avatar May 05 '26 06:05 oxoxDev