Skip to content

fix(cli): ovis add and ovis join say what the person can do, as the signed-list QA found it - #4704

Closed
devswha wants to merge 4 commits into
mainfrom
fix/list-qa-cli-words
Closed

devswha wants to merge 4 commits into
mainfrom
fix/list-qa-cli-words

Conversation

@devswha

@devswha devswha commented Nov 25, 2026

Copy link
Copy Markdown
Owner

What

Four lines the CLI printed that read wrong in the signed-list staging QA, one commit each.

ovis add says what to press only once the PC said how its account adds it

ovis add printed its one-press step as its wait began:

2/2  Press Add on a device of your account
     Open Ovis on your phone or another PC and press Add for Desk.
     Waiting… (up to 10:00, Ctrl+C to stop)

and only once the PC answered its first POST /api/account/list/add did it add "Your account keeps a signed
list of its devices: …". On an account that keeps a signed list, the person read for several seconds a step
that adds nothing (seen in the signed-list staging QA, 7 s and more).

Now the wait begins with the listing and one line that says the command is asking; step 2 comes with the
PC's answer:

     This PC is listed in your account as Desk.
     Asking your account how it adds this PC…

2/2  Compare a number with a device of your account
     Open Ovis on your phone or another PC and choose Add for Desk.
     Your account keeps a signed list of its devices: the device that adds this PC shows a number, and this PC shows it here. They must be the same before you press Add.
     Waiting… (up to 10:00, Ctrl+C to stop)

or the one-press step as before where the account keeps no list. ovis join, which knows its way from its
invite, prints what it printed before.

Why the answer comes late

The first answer of POST /api/account/list/add is ListAdd.start, which waits for the PC's round trips to
the account service one after another: a challenge and /v2/pc/list (whether the account keeps a list), then
a challenge and /v2/pc/list/keys (the card), a challenge and /v2/pc/list/attempt (the device's first
message). From a loaded machine that is seconds. No cached "no list", poll interval or mailbox hint is in the
way: a cached null comes only from a 404, and a no_list answer sends the run to the one-press path for good.
Answering start before the card is posted would bring the list line sooner, but the contract tests and the
PC's own window rely on start posting it, so this PR leaves the server as it is.

ovis add --approve asks about the adding device as that device shows it

ovis add --approve lists the PC and waits for the device that adds it. That device's add screen
(AddPcSheet, "Add this PC") shows an input for the PC's number, not digits of its own: the person reads the
number on the PC and types it there. The PC's terminal then asked:

Ovis app (Android) wants to join your account. Approve it only if its screen shows 941 190. Type 190 to approve

which reads as the opposite direction: that screen shows the number only once it was typed (seen in the
signed-list staging QA).

A request taken under the PC's own add screen carries local_only in GET /api/relay/pairings
(ovis add --approve opens its window local-only). The PC's own window already words such a request as
"{name} wants to add this PC to your account. Type {digits} on {name}, or check that {name} shows the same
number" (RelayPairingPrompt). The terminal now asks the same way:

Ovis app (Android) wants to add this PC to your account. Type 941 190 on that device, or check that it shows the same number, then type 190 here to approve, or press Enter to decline:

Any other request is asked as before. Only the wording changes: the same digits approve, and the same lines
answer nothing. The CLI has no translations; the client's four languages already say it.

ovis join: a revoked invite in words, and no ovis approve on a PC that cannot allow

Two lines of ovis join said what was not so (signed-list staging QA):

  • With an invite that had been revoked, the run ended "The account service did not take this PC
    (invite_not_in_list). This PC was not added." The account service refuses a redeem with
    409 invite_not_in_list when the account's signed list holds no open invite of that key: revoked, used, run
    out, or a line made before the account had its list. That is now invite_invalid (exit 3) with words of its
    own: "This invite does not work: your account's signed list does not hold it as open (it was revoked, used or
    ran out, or made before the account had its list). Ask for a new one."
  • After a join by an invite that names the account's list, the PC said "If your phone asks for six digits when
    you open , run ovis approve on this PC and type them", and at a terminal waited for them. A PC that joined
    the list by an invite signs nobody into it (ovis approve answers "this PC joined your account by an invite,
    and a PC that did lets nobody into your account's list itself"). It now says "If your phone asks to join when
    you open , allow it on another device of your account: this PC joined by an invite, and lets nobody into
    your account's list itself." and watches for no first join. ovis add, and a join by an invite that names no
    list, are as before.

Nothing here changes what a PC lets in: only what the terminal says, and (for a PC that joined the list by an
invite) that it no longer waits at the terminal for six digits it could not use.

Validation

bun run check fast passed on this head (10fc919) through the heavy queue: typecheck, build, the unit suite
(27956 pass, 0 fail), workflow syntax, generated files. Also ran: bun test scripts/plugin-link.test.ts scripts/plugin-join.test.ts scripts/plugin-join.contract.test.ts scripts/plugin-link.contract.test.ts scripts/conventions.test.ts scripts/changelog-fold.test.ts (all pass). Not run: the integration suite and the
browser runs (CI runs them).

🤖 Generated with Claude Code

devswha and others added 4 commits November 25, 2026 16:11
…ccount adds it

ovis add printed its one-press step ("2/2 Press Add on a device of your account / Open Ovis on your
phone or another PC and press Add for <PC>") as its wait began, before the PC's first answer to
POST /api/account/list/add said whether the account keeps a signed list. That answer waits for the
PC's round trips to the account service, one after another (whether the account keeps a list, its
card, the device's first message), so on a list account the person read for seconds a step that
would add nothing, then the list line.

The wait now begins with the listing and "Asking your account how it adds this PC…"; step 2 comes
with the PC's answer: "Compare a number with a device of your account" with the list's reason
where the account keeps a list, the one-press step where it keeps none. ovis join, which knows its
way from its invite, says what it said before.

Co-Authored-By: Claude Opus <[email protected]>
…ice shows it

The device that adds a PC from its add screen (AddPcSheet) shows an input for the PC's number, not
digits of its own, so "Approve it only if its screen shows 941 190" read as the opposite direction.
A request taken under the PC's own add screen (local_only in GET /api/relay/pairings) is now asked
as the PC's own window already asks it: type the number on that device, or check that it shows the
same number, then type its last three here. Other requests are asked as before.

Co-Authored-By: Claude Opus <[email protected]>
…ld its invite

A redeem the account service refuses with 409 invite_not_in_list (the account's signed list holds no
open invite of that key: revoked, used, run out, or a line made before the account had its list)
printed "The account service did not take this PC (invite_not_in_list)". It is now invite_invalid
(exit 3), the error an agent already reads as "ask for a new invite", with words of its own.

Co-Authored-By: Claude Opus <[email protected]>
…approve

After a join by an invite that names the account's list, the PC said "If your phone asks for six
digits when you open <PC>, run ovis approve on this PC", and at a terminal asked for them. Such a PC
signs nobody into the list (ovis approve answers not_signer), so it now says to allow the device on
another device of the account, and watches for no first join (PressWords.allowsNobody, set by
ovis join when the line names the list).

Co-Authored-By: Claude Opus <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used all 8 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b0f20e7 and 10fc919.

Files selected for processing: 10

  • changelog.d/add-list-step-first.md
  • changelog.d/approve-prompt-typed-number.md
  • changelog.d/join-invite-no-approve-hint.md
  • changelog.d/join-invite-not-in-list.md
  • docs/relay.md
  • scripts/plugin-join.contract.test.ts
  • scripts/plugin-join.test.ts
  • scripts/plugin-join.ts
  • scripts/plugin-link.test.ts
  • scripts/plugin-link.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@devswha

devswha commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Review standing in for CodeRabbit (its review was rate limited on this PR)

No CodeRabbit review ran here. I read the diff at the head (scripts/plugin-link.ts, scripts/plugin-join.ts, docs/relay.md, the tests).

  • Words and the order of two lines only. ovis add now says "Asking your account how it adds this PC…" until the PC has answered POST /api/account/list/add, then prints either the compare-a-number step or the one-press step; a run that does not ask the PC (press.take set) keeps the old order, and an account without a list ends with the same one-press text as before.
  • The approval prompt changes only for a request marked local_only (the device that adds this PC from its add screen); every other request keeps its sentence.
  • invite_not_in_list maps to the same exit as an invalid invite, with a sentence of its own.
  • A PC that joined by an invite of its account's list gets no ovis approve hint and no first-join watch at the terminal, which matches what ovis approve answers on such a PC.
  • No route, no admission rule and nothing in server/ changes.

No finding. The staging QA re-checks the four screens after the merge.

@devswha

devswha commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Closed in favour of #4723, which merges this branch together with the other fixes the signed-list staging QA asked for. Nothing of this pull request was dropped: #4723 is main with these branches merged in. The reason is CI capacity: twelve separate runs and twelve merges, each waiting for Fast checks on a new base, had filled the self-hosted runners for every session.

The description, the tests and the review of this change stay here; #4723's table links back to it.

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