Skip to content

fix: correct Pi's Ardia guide where a live test found it wrong - #33

Merged
YishenTu merged 1 commit into
mainfrom
fix/ardia-guide-live-test
Nov 28, 2026
Merged

YishenTu merged 1 commit into
mainfrom
fix/ardia-guide-live-test

Conversation

@YishenTu

Copy link
Copy Markdown
Owner

Summary

Ardi's own agent tested every command class in its instructions against Ardia with CLI 0.7.0 (example.com, a Selenium test form, HN, a JSON API, local test pages). This fixes the guide wherever the report held up. Every claim was checked against the 0.7.0 source or a live run first.

guide.ts

  • Finding a control: find role button --name Save clicks, because click is find's default action. To find a control without acting, the guide now uses snapshot find Save, or find … text / find … is visible (all checked live: no click).
  • Site notes print when a command arrives on a site (an open, or a navigation from another site). snapshot never prints them. New or changed notes carry a "quarantined, unreviewed" label until they've been used in 3 sessions over 2 days or the user approves them. Saved flows print the same way.
  • Dialogs: alert and "leave site?" dialogs are accepted automatically. A confirm or prompt fails the action with dialog_blocked, and every later line, dialog status included, is not run until it's answered. The next call must start with dialog accept [text] or dialog dismiss.
  • Script read: the global read() returns rows (url, finalUrl, title, status, text, plus error on failure), while page.read() returns the tab's text.
  • Background tabs: current Ardia takes input in background tabs; only an older one needs tab --show.
  • --json on an ardia_exec line changes nothing.
  • flow save records the steps after the last open, not the open itself.

references/browse.md: read --fast names its method at the start of the answer.

Left alone: commands the guide doesn't teach, and failures caused by the test machine's environment. Upstream CLI help mismatches, such as wait --download <ms> and notes --help saying "atop snapshot", are for the ardia CLI, not here.

Testing

  • bun run lint, bun test --randomize and bun run build pass.
  • Live, against the installed CLI 0.7.0:
    • Notes appear on open and on navigation between sites, never on snapshot.
    • confirm and prompt block the call; a first-line dialog accept "Zed" answers a prompt.
    • The three non-clicking find forms leave the URL unchanged.
    • Script read() returns rows and page.read() returns a string.
  • Ardi's agent re-verified the finished diff in the browser and asked for the dialog status wording that's included here.

Ardi's agent tested every command class against Ardia and found guide
text that doesn't match CLI 0.7.0. find's default action is click, so
it no longer recommends find for locating a control. Site notes print
when a command arrives on a site, not on snapshot. A confirm or prompt
blocks the call until the next one starts by answering it. Script
read() returns rows while page.read() returns text. Current Ardia takes
input in background tabs, and --json does nothing in ardia_exec lines.
@YishenTu
YishenTu merged commit 50dd170 into main Nov 28, 2026
2 checks passed
@YishenTu
YishenTu deleted the fix/ardia-guide-live-test branch November 28, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant