Repository navigation
Conversation
…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]>
|
Warning Review limit reachedYou'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. View limit details
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. |
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 (
No finding. The staging QA re-checks the four screens after the merge. |
|
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 The description, the tests and the review of this change stay here; #4723's table links back to it. |
What
Four lines the CLI printed that read wrong in the signed-list staging QA, one commit each.
ovis addsays what to press only once the PC said how its account adds itovis addprinted its one-press step as its wait began:and only once the PC answered its first
POST /api/account/list/adddid it add "Your account keeps a signedlist 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:
or the one-press step as before where the account keeps no list.
ovis join, which knows its way from itsinvite, prints what it printed before.
Why the answer comes late
The first answer of
POST /api/account/list/addisListAdd.start, which waits for the PC's round trips tothe account service one after another: a challenge and
/v2/pc/list(whether the account keeps a list), thena challenge and
/v2/pc/list/keys(the card), a challenge and/v2/pc/list/attempt(the device's firstmessage). 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_listanswer sends the run to the one-press path for good.Answering
startbefore the card is posted would bring the list line sooner, but the contract tests and thePC's own window rely on
startposting it, so this PR leaves the server as it is.ovis add --approveasks about the adding device as that device shows itovis add --approvelists 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:
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_onlyinGET /api/relay/pairings(
ovis add --approveopens 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:
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 noovis approveon a PC that cannot allowTwo lines of
ovis joinsaid what was not so (signed-list staging QA):(invite_not_in_list). This PC was not added." The account service refuses a redeem with
409 invite_not_in_listwhen the account's signed list holds no open invite of that key: revoked, used, runout, or a line made before the account had its list. That is now
invite_invalid(exit 3) with words of itsown: "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."
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 approveanswers "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 nolist, 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 fastpassed 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 thebrowser runs (CI runs them).
🤖 Generated with Claude Code