Skip to content

fix(web): web links in Inbox messages open - #1137

Merged
Jacksondr5 merged 2 commits into
j5/mainfrom
j5code/inbox-web-links
Nov 21, 2026
Merged

Jacksondr5 merged 2 commits into
j5/mainfrom
j5code/inbox-web-links

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Problem

Clicking a web link in an Inbox message did nothing. The Inbox renders an agent's message with the sender's thread, so ChatMarkdown sent the link to that thread's right panel, which the Inbox doesn't show. With "Open links in" set to J5 Code, every web link opened in the sender thread's hidden browser panel. With "Open pull request links in the app" on, a pull request link from a known repository opened in that thread's hidden pull request panel. This is the same pattern #1108 fixed for artifact chips. Fixes #1136.

What changed

ChatMarkdown takes an optional noThreadPanel prop, and the Inbox sets it. When it is set, ChatMarkdown opens links the way it does outside a thread:

  • A web link opens in a new tab on web, or the system browser on desktop (Electron's window-open handler already sends _blank there).
  • A pull request link follows "Open pull request links in the app": with it on, the Pull requests page opens; with it off, a new tab.
  • "Open in browser" for an HTML file link is no longer offered in the Inbox.

The sender thread still supplies the working directory, images and "Link to thread", so nothing else in the message changes. Thread links already navigated, and artifact links keep #1108's behaviour.

Mobile is not affected: its Inbox opens web links with the system browser.

UI changes

Before After
Sender thread after clicking both Inbox links Sender thread after clicking both Inbox links, before Sender thread after clicking both Inbox links, after

Before, the two Inbox clicks had left two tabs of the pull request open in the sender thread's browser panel. After, the sender thread has no panel open.

Before: clicking the markdown link and the bare URL in an Inbox ask leaves the Inbox unchanged; the thread chip opens the thread.

inbox-links-before.mp4

After: each web link opens a new browser tab (outside this recording, in the Browser panel's tab list); the thread chip opens the thread.

inbox-links-after.mp4

Live testing

Pass at 86eab1fa5c, run by me with setup-agent-live-test.ts --base origin/j5/main. Head 4803e26 changes only the browser test since then (a typecheck fix), so it was not re-tested.

  • One real Claude Haiku 5.5 turn per server: the agent sent an Inbox ask containing the markdown link to feat(release): promote a tested nightly to stable #1132, the bare URL, and a link to its own thread.
  • "Open links in" was set to J5 Code through the browser's stored client settings, because web disables that setting and it is the setup the report came from (desktop).
  • Base: the markdown link and the bare URL left the Inbox unchanged, and no tab opened. The sender thread then showed both pages open in its browser panel, which reproduces Web links in Inbox messages do nothing when clicked #1136.
  • Head: each link opened a new Browser panel tab on feat(release): promote a tested nightly to stable #1132. The bare URL's click, the one I instrumented, reached the browser unhandled (defaultPrevented: false). The sender thread had no panel open afterwards.
  • Both: the thread chip opened the sender thread.
  • Head: the same link in the thread's own chat still opens in its right-panel browser.

Not exercised live:

  • The desktop app: the harness can't run Electron. Desktop uses the same click path, and its window-open handler sends _blank to the system browser.
  • The Pull requests page path: the test repository has no GitHub remote, so no project matches feat(release): promote a tested nightly to stable #1132. InboxMessage.browser.test.tsx covers it.
  • Mobile: unchanged.

Rows for restarts, migrations, providers and peering did not apply.

Upstream impact

  • apps/web/src/components/ChatMarkdown.tsx: case 33 (new optional noThreadPanel prop). The case text is updated; the file was already in its ledger row.

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior: InboxMessage.browser.test.tsx clicks a web link and a pull request link in an Inbox message, and fails on j5/main (the click goes to the sender thread's browser panel)
  • UI changes: before/after screenshots above, and videos for the interaction
  • Live testing: the section above says what ran live and what did not
  • Upstream-owned files: each one is recorded in FORK.md (case text and file-table row) in this PR
  • Upstream product: any change to what upstream's product does has a human decision linked above and a register entry in docs/j5/product/upstream.md (n/a: J5's Inbox only)
  • Surfaces: web and desktop Inbox fixed; thread views unchanged; mobile Inbox already opens web links. A thread link in a mobile Inbox message may not navigate; I inferred that from the code and did not check it on a device.
  • Docs: no doc describes this

Claude Opus 5.5 in Claude Code (J5 Code).

🤖 Generated with Claude Code

Fixes #1136

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Nov 21, 2026 8:06pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 4 billable files and costs up to $1.00.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 4 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used all 3 included reviews currently available. Your 44 included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between f92322e and aa3df15.

Files selected for processing: 4

  • FORK.md
  • apps/web/src/components/ChatMarkdown.tsx
  • apps/web/src/j5/a2a/HumanInboxPage.tsx
  • apps/web/src/j5/a2a/InboxMessage.browser.test.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Nov 21, 2026
Jacksondr5 added a commit that referenced this pull request Nov 21, 2026
@github-actions github-actions Bot added the size:M 30-99 effective changed lines (test files excluded in mixed PRs). label Nov 21, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added size:S 10-29 effective changed lines (test files excluded in mixed PRs). and removed size:M 30-99 effective changed lines (test files excluded in mixed PRs). labels Nov 21, 2026
@Jacksondr5
Jacksondr5 enabled auto-merge (squash) November 21, 2026 20:14
@Jacksondr5
Jacksondr5 merged commit 4778ae9 into j5/main Nov 21, 2026
33 checks passed
@Jacksondr5
Jacksondr5 deleted the j5code/inbox-web-links branch November 21, 2026 20:21
Jacksondr5 added a commit that referenced this pull request Nov 23, 2026

This branch was successfully deployed

1 active deployment
Preview — aa3df157 Deployed Nov 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 effective changed lines (test files excluded in mixed PRs). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web links in Inbox messages do nothing when clicked

1 participant