Skip to content

fix(activity): open the browser alternative in the Slack web client - #462

Open
makeitfutureDev wants to merge 1 commit into
betafrom
fix/activity-browser-thread-link
Open

makeitfutureDev wants to merge 1 commit into
betafrom
fix/activity-browser-thread-link

Conversation

@makeitfutureDev

Copy link
Copy Markdown
Owner

What

Ctrl/⌘-click on Open in Slack in the personal Activity dashboard (GET /activity/<id>/open/<channel>/<ts>?browser=1) redirected to the workspace permalink (https://<ws>.slack.com/archives/…). Slack serves that as a "Redirecting… / Launching" page with one more "open this link in your browser" step (QA ACTIVITY-WEB-11, fire156 evidence defect-ACTIVITY-WEB-11-Independent.md).

browser=1 now redirects to the Slack web client's own thread route:
https://app.slack.com/client/<teamId>/<channelId>/thread/<channelId>-<threadTs>.

  • Built by the new slackWebThreadUrl() from shape-checked ids (team T/E…, channel C/D/G…, Slack ts); anything else → 403, no redirect.
  • Every existing check is kept and still runs first: participant check, root-owner match, live latest-reply lookup, permalink validation, and the final participant recheck.
  • The plain-click slack://channel app target is unchanged.

Other browser links checked: the channel heading (activity-page.js, data-web) and the automation board already use app.slack.com/client/…. The Calls history "Threads visited" link (/calls/<id>/thread/<n>) still redirects to the workspace permalink; it is a primary link (not the Ctrl-click alternative), so it is left unchanged here and noted for a separate decision.

Tests

  • node scripts/run-tests.mjs test/activity.test.js → 88 pass, 0 fail (updated "Open thread targets Slack app…" browser assertions; new "slackWebThreadUrl builds only the web client thread route from shape-checked ids").
  • npm run check:static → passed.

Docs: FEATURES.md (Activity Open in Slack paragraph), TEST-PLAN.md (Activity compact monitor + 2026-11-12 section note), CHANGELOG.md.

Live acceptance (unexecuted, engine-independent UI): ACTIVITY-WEB-11 — Ctrl-click the Slack icon on an owned native root in chrome-apps; pass = the new tab lands on app.slack.com/client/T…/C…/thread/C…-<root ts> with the thread pane open, no "Redirecting… / Launching" page.

Not merged or deployed (QA campaign overnight-20261125, fire157 WE-FIX157).

🤖 Generated with Claude Code

Ctrl/Cmd-click on Open in Slack redirected to the workspace permalink,
which Slack serves as a "Redirecting... / Launching" page with an extra
"open this link in your browser" step. Redirect browser=1 to the web
client's thread route (app.slack.com/client/<team>/<channel>/thread/
<channel>-<root ts>) instead, built from shape-checked ids after the same
participant, root-owner and permalink checks. The slack:// app target is
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tiberiu Socaci <tsocaci@makeitfuture.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants