Repository navigation
Let a link opt into the in-app preview, independent of "Open links in" #33112
osyrisrblx
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What I want
A way for a specific link to open in T3's preview, even when "Open links in" is set to "Your default browser".
Why
I keep "Open links in" on my default browser, which is right for almost everything. The exception is a local dashboard I run at
http://127.0.0.1:47321. It's a to-do list for agents, and it's meant to live in the T3 sidebar. Agents link to it fromhtml_rendercards, and those links go to Chrome.There's no way around this from the page or the card today:
html_renderframes can only sendhttp(s)URLs throughui/open-link, and the host picks where they open from the global setting. Only ⌘/Ctrl-click is honoured, and it always means the system browser.t3code://covers threads, new threads and pairing, but not "open this URL in the preview".preview_openfor me, but that only helps when the agent is the one acting. It doesn't help when I click a link later.Possible shapes (any one would do)
127.0.0.1:47321,localhost:*". This is the same idea as the existing "Open pull requests in T3 Code" toggle, but for any host.t3code://preview?url=<encoded>opens the URL in the current thread's preview. It could reuse an existing tab with that origin, and accept a&thread=<env>/<thread>target.html_render. Letui/open-linktaketarget: "app" | "system", so the card's author can choose. The user's modifier keys would still win.Option 1 needs nothing from page authors. Option 2 also works from outside T3 (terminal, Slack, other apps).
Related: app links from the preview may prompt every time
From reading the desktop bundle,
t3code://threads/...links clicked inside a preview tab go through the preview session'sopenExternalpermission handler, which shows an "Open this t3code link?" dialog each time. If that's right, it would be nice to skip the prompt for T3's own scheme, or to offer "always allow" for each origin.All reactions