Skip to content

feat(mobile): pull request and thread links in an Inbox ask open in the app - #1224

Open
Jacksondr5 wants to merge 3 commits into
j5/mainfrom
j5code/mobile-inbox-links-1179
Open

Jacksondr5 wants to merge 3 commits into
j5/mainfrom
j5code/mobile-inbox-links-1179

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Problem

On mobile, an Inbox ask renders through WorkspaceMarkdown, not the thread feed's link handling. So a pull request link opened the system browser where a thread pushes the in-app PullRequest screen, and a thread link left the app where a thread opens it in place. Closes #1179.

What changed

  • SenderMarkdown, which renders an ask in the Inbox and on a Captain's pinned ask, now opens two link kinds as a thread does:
    • A thread link (t3-thread://…, or a hosted J5 thread URL) opens the thread through upstream's useOpenLinkedThread, resolved as ThreadFeed resolves one. A v1 link that names no environment is read in the ask's own.
    • A web link goes through upstream's useOpenPullRequest, given the ask's own environment and project, because the Inbox route has no project params. A known project's pull request opens the PullRequest screen; any other web link still opens the browser, as in a thread.
  • WorkspaceMarkdown gains an optional openLink, tried just before its system-browser fallback. Only SenderMarkdown passes it, so the artifact viewer's links are unchanged.
  • Everything else in an ask behaves as before. The rest stays shelved for mobile, per the design.
  • All of it is in J5 files (apps/mobile/src/j5/…). Upstream's hooks are imported, not edited.

Tests: askLinks.logic.test.ts is one table: v2, v1 and hosted thread links, a pull request link, another web link, and a mailto: left to the caller.

UI changes

iOS: not captured. Pairing failed on base aabc4a14c2 with undefined is not a function, before the Inbox could be opened. No before/after screenshots or interaction video were captured.

Live testing

iOS: not captured. The isolated base server (aabc4a14c2) ran and a real Haiku Captain with a one-seat Crew created an ask containing PR, thread, web and artifact links. The iOS Add environment flow failed with TypeError: undefined is not a function (mobile:connection:connect-pairing-url defected) using a fresh credential, so none of the requested Inbox, pinned-ask or artifact-viewer link paths was exercised live.

The client came from the Mac's own cached fingerprint 2f4989b3, with the normal expected-fingerprint guard passing and the installer reporting compatible. Mac and openclaw computed different fingerprints (2f4989b3 versus dc969feb); the unexplained discrepancy and pairing failure were handed to the Simulator Orchestrator. No native rebuild was performed. Device panel, Simulator, Metro, tunnel and isolated server were released after the attempt. Android remains out: its pool is quarantined until #1218 is on the developer's install.

Checklist

Built by Claude Opus 5.5 in Claude Code (J5 Code crew seat).

🤖 Generated with Claude Code

…he app

On mobile, an ask's links all left for the system browser. A pull
request link for a known project now opens the PullRequest screen and a
thread link opens the thread, as they do in a thread, in the Inbox and
on a Captain's pinned ask. The artifact viewer's links are unchanged.

Closes #1179

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

vercel Bot commented Nov 24, 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 24, 2026 2:12am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 7 billable files and costs up to $1.75.

  • 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 52 minutes for your next included review.

Check out review usage here.

View limit details

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

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between aabc4a1 and f11e487.

Files selected for processing: 7

  • apps/mobile/src/j5/a2a/CaptainQuestions.tsx
  • apps/mobile/src/j5/artifacts/WorkspaceMarkdown.tsx
  • apps/mobile/src/j5/inbox/InboxScreen.tsx
  • apps/mobile/src/j5/inbox/askLinks.logic.test.ts
  • apps/mobile/src/j5/inbox/askLinks.logic.ts
  • apps/mobile/src/j5/inbox/askLinks.ts
  • docs/j5/product/features/inbox.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s pull request and thread links in the app

File links stay inert there, with nowhere to open them. Also splits the
Inbox definition's mobile sentence.

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

This branch was successfully deployed

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

Labels

size:L 100-499 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile Inbox: PR links open the PR screen and thread links open in the app

1 participant