Skip to content

Open a pasted session link on an already paired phone - #353

Merged
n0rpan merged 6 commits into
mainfrom
mobile/open-pasted-session-link
Dec 3, 2026
Merged

n0rpan merged 6 commits into
mainfrom
mobile/open-pasted-session-link

Conversation

@n0rpan

@n0rpan n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #95. Builds on the exact invitation flow merged in #350. A person who already paired the phone can use Paste session link in Projects with the link copied from OX Desktop. The app reads the clipboard after the tap, requires the link to match the selected host, and opens only the exact conversation through the signed lookup shared with pairing invitations. A valid link to a different host asks the person to select that host.

Checked against main at 7f33f063d4854c388fa4e0f8a403278a473d528e. The refreshed head passed the three session-link parser tests, five exact invitation lookup tests, formatting, and the diff check. The earlier head also passed mobile test Clippy and built an Android x86_64 APK. Physical clipboard and session routing still need a device run.

Registry invitations may carry #pair=<code>&thread=<id~scope hash>. Parse the fragment strictly in the shared phone_link helper, keep the target out of registration, resolve it from the host's live catalog after pairing, and verify a fresh exact ready snapshot before navigating. Pairing and project fallback survive a failed resolution.
Add a user-triggered Paste session link action on Projects. The
clipboard is read only when the button is tapped, and only a canonical
HTTPS .ts.net origin with exactly one #thread target is accepted. A
link naming another host is reported without switching hosts, so the
person selects that paired host first.

The pasted target reuses the paired invitation's signed resolve,
subscribe and cancellation path. One OPEN SESSION note now carries
both a pairing invitation's unavailable conversation and a pasted
link's failure, replacing the misleading paired-only wording.
@n0rpan n0rpan added the full-ci label Dec 3, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T13:02:11.581588Z 06003b9 Draft marked ready
🔒 Security Review ✅ Completed 2026-12-03T13:03:23.215637Z 06003b9 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Base automatically changed from mobile/open-session-invitation-current to main December 3, 2026 12:44
@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/queue 06003b9

@n0rpan

n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

In line to merge. Commit 06003b9 is reviewed with nothing blocking; it has entered the merge queue.

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

Asked for by the maintainer’s queue request, for commit 06003b9.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 06003b91f4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@n0rpan
n0rpan marked this pull request as draft December 3, 2026 13:00
@n0rpan
n0rpan marked this pull request as ready for review December 3, 2026 13:00
@n0rpan
n0rpan added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit ac8b437 Dec 3, 2026
70 of 72 checks passed
@n0rpan
n0rpan deleted the mobile/open-pasted-session-link branch December 3, 2026 15:04
n0rpan added a commit that referenced this pull request Dec 3, 2026
…warm-launch

Restack the Android warm notification-tap change onto origin/main
9276853. Preserve main's #352 FCM bundle builds, #353 session-link
routing and #372 typed notification capture; the resulting diff against
main is limited to the reviewed #361 warm-tap feature paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant