docs: the F7 save gate and the app-owned chain source
All checks were successful
ci / test (pull_request) Successful in 6m49s
ci / sdk (pull_request) Successful in 1m25s

TUI.md: the `last` line's shape when one half of a save is refused, why an
app-owned source saves with an empty `url` while a typed endpoint with no login
is still refused, and the wording the `chain` row carries in a build without
`cuprate-daemon`.

WALLET.md: the same gate from the node's side, and the start contract — a start
that fails part way stops what it spawned and leaves the chain datadir as the
thing a retry reuses.
This commit is contained in:
agent 2026-09-27 23:16:35 -04:00
commit 1e3eceabcb
No known key found for this signature in database
2 changed files with 41 additions and 6 deletions

View file

@ -212,10 +212,23 @@ last save/test answer. The live row is the node's answer, never the draft above
it, and it is re-read by `Ctrl-R`.
`Enter` saves and answers on the status row: `saved · not dialled yet — ctrl-s
starts it, ctrl-t tests the endpoint`, or the node's own refusal in its own
words. The endpoint is validated by `Node::wallet_save_config` — loopback host,
login required — and a rejected form is rejected **before** it is written:
nothing in the sealed record moves and a running wallet is not re-dialled.
starts it, ctrl-t tests the endpoint`, or, when a half is refused, `not saved ·
wallet config: <why> · chain source: <why>` — one line shape either way round,
and the half that did write says so. Both halves are attempted even when one is
refused: a wallet-RPC refusal must not silently drop a chain source the user
just picked. The endpoint's own validator is `Node::wallet_save_config`
(`Wallet::from_config` behind it) — loopback host, login required — and a
rejected form is rejected **before** it is written: nothing in the sealed record
moves and a running wallet is not re-dialled.
The one exception is an **app-owned** chain source (local `monerod`, in-process
Cuprate) with an empty `url`: the child the app spawns generates its own creds
and picks its own port (`creds()` / `pick_port()`,
`Node::start_wallet_child_with` replaces the stored client after the spawn), so
the `url`/`login` rows describe no endpoint the app dials and an empty pair must
not veto the save. A *typed* endpoint with no login is still refused — that is
the externally run RPC path (`ONIONWIRE_WALLET_RPC`), where the refusal is true.
`Ctrl-T` dials the endpoint and answers with the sanitized `PingResult` line
(never the password). `Ctrl-U` clears the focused field, which is how a hidden
login gets replaced.
@ -233,6 +246,13 @@ so in the same frame — `a daemon you do not run sees this wallet's chain
traffic` — because that is the pick that moves chain trust off this box. The
address must parse as `host:port` first.
A build without `cuprate-daemon` says so on the `chain` row, where the choice is
made, rather than offering it and refusing at start: the in-process wording is
followed by `this build has no in-process chain daemon — rebuild with --features
cuprate-daemon` (`crate::cuprate::NO_FEATURE_MSG`, clamped to the frame width).
The pick is still offered — builds with the feature exist, and a stored
in-process source must still be readable.
Esc is the single exit and wipes the login buffer (`Zeroizing<String>`).
## Wallets & settings (`F9` / `/settings`)