Repository navigation
Description
Upstream's prompt links (pingdotgg#18454, in the 2026-10-17 upstream advance) let someone share a prompt that opens as a draft. Upstream's shareable form is https://app.t3.codes/new?prompt=…, which lands on T3's hosted page and offers to open the app, continue in that browser, or download T3 Code.
J5 has no hosted client, so at the advance J5's Copy prompt link copies j5code://new?… (and j5code://threads/<environment>/<thread>?…) instead (Jackson, 2026-10-17). Those open the J5 desktop app, but a j5code:// link is not clickable in many places (some chat apps, GitHub comments render it as plain text) and does nothing for someone without the desktop app.
What to build
A page at https://j5.codes/new (and the thread form) that takes the same query parameters as upstream's (prompt, repo, provider, model, pr) and offers what upstream's landing page offers, in J5's terms:
- Open in the J5 desktop app (hands off to
j5code://). - Get J5 Code (install page).
- Warn when the prompt had hidden characters, as upstream's page does.
Then switch Copy prompt link to the https form.
Open questions
- "Continue here" upstream works because app.t3.codes is a hosted client that knows the browser's machines. J5 has no hosted client; check whether a J5 server's own web app handles
/new?prompt=…at its address, which would let the page offer "open on my server" for browser users. - Mobile: J5 has no mobile app of its own today, so the page has no mobile option yet.
Upstream reference: packages/shared/src/promptLinks.ts, docs/user/prompt-links.md.
Acceptance
- In the packaged J5 desktop app (not a dev server), opening
j5code://new?prompt=…andj5code://threads/<environment>/<thread>?prompt=…from outside the app opens a draft with that prompt and does not send it. This was not exercised at the 2026-10-17 advance (chore(upstream): advance to T3 Code nightly 0.1.1 (3238) for pairing access #634), because only a packaged build registers the scheme with the OS, so this issue owns that check. - The page's "Open in the J5 desktop app" button reaches the same draft.
- Hidden characters are stripped and warned about, on the page and in the app.
Explore: how this relates to links that share access
J5's links that let a person into a server, project or thread (the people-and-access model's "link, for one person or for many"; formerly "share links", FORK cases 70–73) and prompt links both open J5 from a URL, possibly on someone else's machine. Before building the page, explore whether they should be one door:
- Could a prompt link also carry access, so that someone without a device on the server can follow a link to a shared thread and land in its composer with the prompt as a draft? And what does that do to "a link never runs anything" and to the warning about a prompt from someone else?
- Should
j5.codes/newand the access-link landing page be the same page, with the same open-in-app / get-J5 choice, rather than two? - When someone who isn't paired yet opens a prompt link, should it start pairing, or only say that J5 isn't set up?
Bring the answer to Jackson before building; it may change this page's shape.
Activity
Jacksondr5 commentedon Oct 25, 2026
Decided (Jackson, 2026-10-24): build the prompt page now, as its own page. Joining a server and dropping a prompt into a composer are different jobs, so
j5.codes/newdoesn't share a page with the access-link join page, which each server serves at its own address. A combined access-plus-prompt link isn't planned.The open question is answered: every J5 server's web app handles
/new?prompt=…(apps/web/src/routes/_chat.new.tsx), so the page can offer "open on my server" for someone who types their server's address.