Repository navigation
Replies: 1 comment
|
I built this on my fork as a draft PR: lakardion#1 (compare view: lakardion/ardia@main...add-ardia-tab-link). It is Mac only. The PR body lists the known limits and what is not verified yet. |
0 replies
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.
Problem
An agent can open a tab with
ardia tabs open --activate <url>and name it withardia tabs rename. When the agent then hands the tab off to a person in a chat or terminal message, it has no link that shows that exact tab.Today the agent can only give one of these:
ardia tabs activate <tab id>. The person must copy it and run it, and it does not bring the window to the front.Proposal
A link that shows an existing tab:
When the person clicks it, Ardia shows that tab in its window, brings the window to the front and activates the app. If no tab has that id (closed, archived, or from another device), Ardia shows a short notice and does nothing else.
The link only shows a tab. It never opens, loads, changes or closes anything.
ardia tabs open --jsoncould also return the link (for example alinkfield), so an agent does not have to build it.Use case
ardia tabs open --json --activate <url>.ardia tabs rename <id> "Order form, edit step".Implementation notes
I read the code. Most of the parts are already there:
ardia://is already Ardia's own scheme.app_url_routeandadmit_app_urlalready parse it, and links from other apps already reachopen_url_atthrough thekAEGetURLhandler.ardia://settings/<pane>is a good model: it is handled before the link routing.ardiatoCFBundleURLSchemesincrates/ardia-app/resources/Info.plist, add atabroute inapp_url_route, admit it inadmit_app_url, and inopen_url_atdispatchActivateTabplusFocusWindowand activate the app. Skip Air Traffic Control and the open-link hooks for this route.session.json, so a link stays good across restarts while the tab is open.AppSchemeThrottlecancels everyardia://navigation that does not come from an Ardia page. Pages in other browsers can trigger it only after their own "open Ardia?" prompt, and they must know a tab id. The route only shows a tab, so the impact is small..desktophandler and a registry key). The Mac can ship first.I estimate this as a small change on the Mac.
All reactions