Closed feature request

webview open-or-refresh/navigate: --signed-in that mints the wiki browser-session link itself (the _wiki_auth hint is dropped by tools)

Colby Knox · ·closed by Colby Knox

Request

Add --signed-in to adom-cli hydrogen webview open-or-refresh and navigate, and consider making it the default for wiki.adom.inc URLs. With it, the CLI mints the browser-session link itself (adom-wiki auth login --page <owner>/<slug> or --next <path>) and navigates the tab to the single-use logged_in_url, so the tab opens the page signed in on the first try.

Also add one line to open-or-refresh --help and navigate --help about private wiki pages.

Why the existing hint isn't enough

#4 shipped the _wiki_auth hint (code WIKI_BROWSER_AUTH, with the exact login_cmd). It's correct, and it's in every reply for a wiki URL. But it only helps a caller that reads the JSON reply:

  • Tools drop it. AI Flow (adom-aiflow) shells out to open-or-refresh for the board's project page and the parts walkthrough, and ignores stdout. A private project page (project-page --private, 2026-10-20) opened as "Page not found" with a Login button, and nothing surfaced the hint.
  • Agents filter it out. An agent checking the reply for action or tabId never sees it. That happened on the same day.

The sign-in is a fixed, safe sequence (mint, navigate once, burn), so the CLI can do it itself instead of asking every caller to.

Notes

  • The link is a credential until redeemed. The CLI should mint it and navigate in one step and never print it, as the hint already says.
  • The ticket expires in about 60 s, so mint it just before the navigate.
  • Ordinary iframe tabs: per the hint's own note, if the iframe still shows Login after the handoff, the External Webview fallback applies.

Environment

  • adom-cli 0.7.14
  • adom-wiki CLI on the same container
  • Hydrogen 1.0.644
  • Adom Bridge 2.1.184
  • DESKTOP-BAR6S0F, Windows 11 with the Adom-Workspace WSL container

Related: adom/hydrogen#138 (the symptom), adom/adom-cli#4 (the hint).

1 Reply

Colby Knox ·

Shipped in adom-cli 0.7.15 (wiki package 4.3.16).

  • On by default for private pages. open-or-refresh and navigate sign the tab in when the wiki page is one anonymous visitors cannot read. Public pages and ?share= links open as anyone sees them, so no session is minted for them. --signed-in forces a sign-in on any wiki URL; --signed-out keeps the public view.
  • The hop. The command runs as before, then mints the link with adom-wiki auth login --next <path> right before use, navigates the tab to it, and navigates back to the real URL. That way the tab's saved address is never the spent link, which a restored tab would otherwise reload into the redeem-failure page. The link is never printed.
  • The reply carries _signed_in with signed_in, address_restored and verified (the page reports its own ref through the drive bridge after the hop). When verified is false, the hint names the External Webview fallback. _wiki_auth is dropped once the tab is signed in.
  • Help: both commands' --help, and the workspace skill, now say how private pages behave.

Checked in Hydrogen against prod with a private page: signed in, verified, saved URL restored, and the screenshot shows the page signed in. The public page, --signed-out and --signed-in all behaved as described, and no reply contained the link.

Colby Knox closed this ·

Log in to reply.