onionwire/docs/TUI.md

287 lines
13 KiB
Markdown
Raw Normal View History

# OnionWire TUI
Operator map of the Linux terminal UI. Bindings live in `src/tui.rs`
(`function_key_for`, `parse_cmd`, per-screen `match` arms). This is not a
screenshot dump.
Run `onionwire` in a real terminal. `ONIONWIRE_ASCII` or `NO_COLOR` switches
ASCII chrome.
## Screens
`enum Screen` in `src/tui.rs`:
| Screen | How you get there | What it is |
|---|---|---|
| `Main` | boot | Roster, chat, composer |
| `Share` | `F2` | Invite string (`onionwire:v1:…`) |
| `Paste` | `F3` | Paste a friend's invite |
| `Approve` | paste of unknown `k` | `y` accept / `n` reject |
| `Rotate` | `F4` | Type `ROTATE` to change the onion locator |
| `RotatePrekey` | `F8` | Type `ROTATE` to hard-cut the Noise static |
| `Wipe` | `/wipe` or `/wipe-all` | Type `WIPE` or `WIPEALL` |
| `Profile` | `/profile` | Edit name, bio, optional Monero address |
| `ConfirmKeys` / `Passphrase` | `/backup`, `/restore` | Type `BACKUP`/`RESTORE`, then passphrase |
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet The chain source was reachable from three places and configured from none of them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process choice, the `F9` menu showed the state and named keys that edited it, and `Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only way to point the app at a Monero node — had **no TUI caller at all** (Kotlin only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7. F7 (`WalletSetupConfig`) is now the one screen that sets up the node: - The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the path; `set_local_monerod` delegates with the derived default, so an existing install keeps the store it already has. An empty datadir is refused rather than silently replaced — a store that moved unasked looks like a vanished chain and resyncs somewhere the user did not choose. - The `network` row is new: it carries the Cuprate mainnet/testnet choice that `F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet reads `unvalidated` before it is picked. - A `NODE` section shows the live `Node::wallet_child_status` line (state, chain source, `sync h/t`, last error) and the last save/test answer. It is the node's answer, never the draft above it, and `Ctrl-R` re-reads it. - `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child` / `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a wallet with no stored passphrase still reaches the unlock prompt. F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet again (receive, balance, transfers, create/import) — and its footer points at `F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and `F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and the `p` probe handler are deleted rather than left dead. The node's own keys are named in the body, on the section they act on: at 80 columns the footer has room for one group and the status line already spends half the width, which is the same reason the login row names `Ctrl-U`. Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real key path and the real node — the typed datadir reaching `ChainSource::Local`, an empty one being refused with nothing written, the live row on open, `Ctrl-S` saving then reporting the node's own refusal, the in-process network pick reaching the store, and F6 no longer owning keys it does not handle. `tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it asserted before no longer work.
2026-09-27 20:06:51 -04:00
| `Wallet` | `F6` | Receive QR, balance, transfers |
| `WalletSelect` | `F6` `w` | Saved wallets, pick one or create one |
| `WalletSetup` | `F6` `c` / `i`, or `/wallet create` / `import` | Spend warning, seed, optional seed-offset passphrase, import |
| `WalletsSettings` | `F9` or `/settings` | Discovery menu (does not replace F-keys) |
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet The chain source was reachable from three places and configured from none of them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process choice, the `F9` menu showed the state and named keys that edited it, and `Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only way to point the app at a Monero node — had **no TUI caller at all** (Kotlin only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7. F7 (`WalletSetupConfig`) is now the one screen that sets up the node: - The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the path; `set_local_monerod` delegates with the derived default, so an existing install keeps the store it already has. An empty datadir is refused rather than silently replaced — a store that moved unasked looks like a vanished chain and resyncs somewhere the user did not choose. - The `network` row is new: it carries the Cuprate mainnet/testnet choice that `F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet reads `unvalidated` before it is picked. - A `NODE` section shows the live `Node::wallet_child_status` line (state, chain source, `sync h/t`, last error) and the last save/test answer. It is the node's answer, never the draft above it, and `Ctrl-R` re-reads it. - `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child` / `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a wallet with no stored passphrase still reaches the unlock prompt. F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet again (receive, balance, transfers, create/import) — and its footer points at `F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and `F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and the `p` probe handler are deleted rather than left dead. The node's own keys are named in the body, on the section they act on: at 80 columns the footer has room for one group and the status line already spends half the width, which is the same reason the login row names `Ctrl-U`. Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real key path and the real node — the typed datadir reaching `ChainSource::Local`, an empty one being refused with nothing written, the live row on open, `Ctrl-S` saving then reporting the node's own refusal, the in-process network pick reaching the store, and F6 no longer owning keys it does not handle. `tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it asserted before no longer work.
2026-09-27 20:06:51 -04:00
| `WalletSetupConfig` | `F7` | Node & wallet setup: RPC endpoint, chain source, start/stop, live node state |
| `PeerPayments` | F9 then `p` | Peer-scoped `/pay` / `/tip` history |
| `Quit` | `Ctrl-Q` | Type `CLEAR` or `QUIT` |
Help (`?`) is an overlay, not a screen. `/who` / `F5` is an overlay on Main.
Function keys that fire from Main, the settings menu, and
peer-payments are:
| Key | `FunctionKey` | Action |
|---|---|---|
| `F2` | Share | Invite |
| `F3` | Paste | Paste invite |
| `F4` | Rotate | Onion locator |
| `F5` | Who | Selected friend's profile |
| `F6` | Wallet | Wallet screen |
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet The chain source was reachable from three places and configured from none of them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process choice, the `F9` menu showed the state and named keys that edited it, and `Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only way to point the app at a Monero node — had **no TUI caller at all** (Kotlin only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7. F7 (`WalletSetupConfig`) is now the one screen that sets up the node: - The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the path; `set_local_monerod` delegates with the derived default, so an existing install keeps the store it already has. An empty datadir is refused rather than silently replaced — a store that moved unasked looks like a vanished chain and resyncs somewhere the user did not choose. - The `network` row is new: it carries the Cuprate mainnet/testnet choice that `F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet reads `unvalidated` before it is picked. - A `NODE` section shows the live `Node::wallet_child_status` line (state, chain source, `sync h/t`, last error) and the last save/test answer. It is the node's answer, never the draft above it, and `Ctrl-R` re-reads it. - `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child` / `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a wallet with no stored passphrase still reaches the unlock prompt. F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet again (receive, balance, transfers, create/import) — and its footer points at `F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and `F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and the `p` probe handler are deleted rather than left dead. The node's own keys are named in the body, on the section they act on: at 80 columns the footer has room for one group and the status line already spends half the width, which is the same reason the login row names `Ctrl-U`. Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real key path and the real node — the typed datadir reaching `ChainSource::Local`, an empty one being refused with nothing written, the live row on open, `Ctrl-S` saving then reporting the node's own refusal, the in-process network pick reaching the store, and F6 no longer owning keys it does not handle. `tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it asserted before no longer work.
2026-09-27 20:06:51 -04:00
| `F7` | Setup | Node & wallet setup: RPC endpoint, chain source, start/stop |
| `F8` | RotatePrekey | Prekey hard cut |
| `F9` | OpenMenu | Wallets & settings |
`F9` is live on Main, the settings menu, and peer-payments so a printed shortcut
never no-ops there, and `F7` joins it for the same reason: `/settings` points at
the setup screen. Other screens handle their own keys (Esc back, typed
confirms).
## Main
Focus starts on the composer. Footer hints (`main_footer_hints`):
```
Tab F2 F3 F4 F5 F6 F7 F9 ? help Ctrl-Q
```
Pane-specific (`pane_footer_hints`):
| Pane | Hint |
|---|---|
| Roster | `j k F3 add F6 wallet F7 setup F9 ? help` |
| Chat | `j k g G ends F4 rotate F7 setup F9 ? help` |
| Composer | `Enter send / commands F7 setup F9 ? help` |
The status line is drawn from the focused pane's hint, and the compactor drops
tokens from the front until the line fits, so a key that only appears in
`main_footer_hints` never reaches an 80-column terminal. `F7` is therefore named
in both, and the `F9` beside it is left bare so the whole hint still fits at 80.
tui: peer payment history behind the F9 `payments` row (key p) The F9 / `/settings` menu's only payment row showed the wallet's own transfer list (`Node::wallet_recent_transfers`, F6). The signed `/pay` invoices and `/tip` receipts a peer sent live in the `payments` table and had no path from the TUI, so they were invisible. `Node::list_payments` (PR #119) closes that gap; this wires it into a screen. - `Screen::PeerPayments { state }` + `PeerPaymentsState` / `PeerPaymentRow`, built by `PeerPaymentsState::from_payments` from `Node::list_payments`' rows (newest first: the store returns `payments.id` ascending, the screen windows the vector). - Key handler: `p` on the F9 screen opens it (`open_peer_payments`); `up`/`down` (or `k`/`j`) move the selection, `Esc` goes back, `F9` reopens the menu. - Rows carry direction, kind, amount (`pay::atomic_to_xmr_str`, the same piconero formatter the chat lines use), memo (sanitized at draw time) and the receipt's `verified` / `unverified` word; the focused row is marked with `>` and bold. The selected row's txid and address sit under the rows — the address wrapped over two lines rather than clipped. - States: populated, `no payments with {peer}`, `could not read payments`, and a menu row that refuses when no friend is selected. An empty history is a state, never an error. - Menu: the wallet's own list is retitled `transfers` (F6, unchanged), and the new `payments` row (key `p`) names the peer and the count. Two histories, two rows, no ambiguity. - Widths are measured in cells (`Span::width`); trailing columns are dropped before they can wrap, so the body fits 80x24 (20 inner rows of 21) as well as 120x40 and 200x60. Tests: new `tests/tui_payments.rs` (11 tests) dumps and asserts the screen at 80x24, 120x40 and 200x60 including the empty history, asserts a memo carrying ESC/BEL/C1/bidi/newline bytes never reaches the frame buffer, and asserts the window/column invariants for every width from 20 to 200. Also relaxes one width assertion in `tests/tui_spec.rs`: `fit_cells` was asserted to start with `"abcdef"`, which only holds when another test's in-flight `ONIONWIRE_ASCII` mutation is not visible — the suite mutates env vars without a global lock, so that test flaked (it also fails on an unmodified tree, 1 run in 2). It now accepts either chrome's cut point, which is what the comment already claimed. Docs: `docs/TUI.md` gains the screen's section, the retitled/replaced rows and the updated row count; the "peer payment history" gap entry is closed.
2026-09-18 23:53:10 -04:00
| Key | Action |
tui: peer payment history behind the F9 `payments` row (key p) The F9 / `/settings` menu's only payment row showed the wallet's own transfer list (`Node::wallet_recent_transfers`, F6). The signed `/pay` invoices and `/tip` receipts a peer sent live in the `payments` table and had no path from the TUI, so they were invisible. `Node::list_payments` (PR #119) closes that gap; this wires it into a screen. - `Screen::PeerPayments { state }` + `PeerPaymentsState` / `PeerPaymentRow`, built by `PeerPaymentsState::from_payments` from `Node::list_payments`' rows (newest first: the store returns `payments.id` ascending, the screen windows the vector). - Key handler: `p` on the F9 screen opens it (`open_peer_payments`); `up`/`down` (or `k`/`j`) move the selection, `Esc` goes back, `F9` reopens the menu. - Rows carry direction, kind, amount (`pay::atomic_to_xmr_str`, the same piconero formatter the chat lines use), memo (sanitized at draw time) and the receipt's `verified` / `unverified` word; the focused row is marked with `>` and bold. The selected row's txid and address sit under the rows — the address wrapped over two lines rather than clipped. - States: populated, `no payments with {peer}`, `could not read payments`, and a menu row that refuses when no friend is selected. An empty history is a state, never an error. - Menu: the wallet's own list is retitled `transfers` (F6, unchanged), and the new `payments` row (key `p`) names the peer and the count. Two histories, two rows, no ambiguity. - Widths are measured in cells (`Span::width`); trailing columns are dropped before they can wrap, so the body fits 80x24 (20 inner rows of 21) as well as 120x40 and 200x60. Tests: new `tests/tui_payments.rs` (11 tests) dumps and asserts the screen at 80x24, 120x40 and 200x60 including the empty history, asserts a memo carrying ESC/BEL/C1/bidi/newline bytes never reaches the frame buffer, and asserts the window/column invariants for every width from 20 to 200. Also relaxes one width assertion in `tests/tui_spec.rs`: `fit_cells` was asserted to start with `"abcdef"`, which only holds when another test's in-flight `ONIONWIRE_ASCII` mutation is not visible — the suite mutates env vars without a global lock, so that test flaked (it also fails on an unmodified tree, 1 run in 2). It now accepts either chrome's cut point, which is what the comment already claimed. Docs: `docs/TUI.md` gains the screen's section, the retitled/replaced rows and the updated row count; the "peer payment history" gap entry is closed.
2026-09-18 23:53:10 -04:00
|---|---|
| `Tab` / `Shift-Tab` | Cycle roster → chat → composer |
| `1` / `2` / `3` | Focus roster / chat / composer when not typing |
| `j` `k` / arrows | Move or scroll the focused pane |
| `g` / `G` | Top / bottom of the focused pane |
| Enter | Send chat, or run a `/command` |
| `Esc` | Close overlay / clear composer |
| `?` | Help (except on Paste, so `?` can be in a payload) |
| `Ctrl-Q` | Quit prompt |
tui: clean-look chrome redesign (one accent, honest tor phase, real frames) Applies the bitchat-tui clean-look principles to the OnionWire main screen. - Hierarchy: header, roster + one primary chat pane, one status line, one footer hint line. The header gives up the accent (the accent is reserved for focus), so it stops competing with the panes. - Tor phase is a first-class state: Node::tor_state() -> TorPhase (glyph + word, header and footer) so connecting / ready / degraded / off are never colour-only and never implied. No new data field. - Footer changes with the focused pane (pane_footer_hints) and the phase; the main footer drops the redundant onion (the header already prints it) and uses those cells for hints. status_footer keeps its signature and strings. - Empty roster / empty chat / connecting / degraded / off are designed states with their own copy, not blank panes. - draw_main_chrome + MainView: the real main render path is public and Node-free, so tests/tui_frames.rs dumps the actual chrome at 80x24, 120x40 and 200x60 (12 tests, 5 states, real Message/OutboxEntry rows) instead of a reconstructed stand-in. - Widths in cells everywhere touched: status_footer*, alert_line, main_header_line*, draw_text_overlay, roster_row_text. The roster spends its budget name-first, so a 22-cell pane reads `bob-the-sta… stale` instead of `… bbbbbbbb… stale`. - draw_text_overlay is centered with a one-cell side margin and clears underneath; never full-bleed. Also fixes a pre-existing race in tests/tui_spec.rs (the ellipsis-form assertion did not tolerate ONIONWIRE_ASCII being set by a parallel test). Co-Authored-By: Hermes <[email protected]>
2026-09-18 23:13:12 -04:00
## Composer commands
tui: clean-look chrome redesign (one accent, honest tor phase, real frames) Applies the bitchat-tui clean-look principles to the OnionWire main screen. - Hierarchy: header, roster + one primary chat pane, one status line, one footer hint line. The header gives up the accent (the accent is reserved for focus), so it stops competing with the panes. - Tor phase is a first-class state: Node::tor_state() -> TorPhase (glyph + word, header and footer) so connecting / ready / degraded / off are never colour-only and never implied. No new data field. - Footer changes with the focused pane (pane_footer_hints) and the phase; the main footer drops the redundant onion (the header already prints it) and uses those cells for hints. status_footer keeps its signature and strings. - Empty roster / empty chat / connecting / degraded / off are designed states with their own copy, not blank panes. - draw_main_chrome + MainView: the real main render path is public and Node-free, so tests/tui_frames.rs dumps the actual chrome at 80x24, 120x40 and 200x60 (12 tests, 5 states, real Message/OutboxEntry rows) instead of a reconstructed stand-in. - Widths in cells everywhere touched: status_footer*, alert_line, main_header_line*, draw_text_overlay, roster_row_text. The roster spends its budget name-first, so a 22-cell pane reads `bob-the-sta… stale` instead of `… bbbbbbbb… stale`. - draw_text_overlay is centered with a one-cell side margin and clears underneath; never full-bleed. Also fixes a pre-existing race in tests/tui_spec.rs (the ellipsis-form assertion did not tolerate ONIONWIRE_ASCII being set by a parallel test). Co-Authored-By: Hermes <[email protected]>
2026-09-18 23:13:12 -04:00
`parse_cmd` (`src/tui.rs`). Unknown `/foo` is sent as chat if it does not match.
tui: clean-look chrome redesign (one accent, honest tor phase, real frames) Applies the bitchat-tui clean-look principles to the OnionWire main screen. - Hierarchy: header, roster + one primary chat pane, one status line, one footer hint line. The header gives up the accent (the accent is reserved for focus), so it stops competing with the panes. - Tor phase is a first-class state: Node::tor_state() -> TorPhase (glyph + word, header and footer) so connecting / ready / degraded / off are never colour-only and never implied. No new data field. - Footer changes with the focused pane (pane_footer_hints) and the phase; the main footer drops the redundant onion (the header already prints it) and uses those cells for hints. status_footer keeps its signature and strings. - Empty roster / empty chat / connecting / degraded / off are designed states with their own copy, not blank panes. - draw_main_chrome + MainView: the real main render path is public and Node-free, so tests/tui_frames.rs dumps the actual chrome at 80x24, 120x40 and 200x60 (12 tests, 5 states, real Message/OutboxEntry rows) instead of a reconstructed stand-in. - Widths in cells everywhere touched: status_footer*, alert_line, main_header_line*, draw_text_overlay, roster_row_text. The roster spends its budget name-first, so a 22-cell pane reads `bob-the-sta… stale` instead of `… bbbbbbbb… stale`. - draw_text_overlay is centered with a one-cell side margin and clears underneath; never full-bleed. Also fixes a pre-existing race in tests/tui_spec.rs (the ellipsis-form assertion did not tolerate ONIONWIRE_ASCII being set by a parallel test). Co-Authored-By: Hermes <[email protected]>
2026-09-18 23:13:12 -04:00
| Command | Effect |
|---|---|
| `/who` | Same as `F5` |
| `/profile` | Profile editor |
| `/pay <xmr> [memo]` | Invoice (`inv `), one-shot |
| `/tip <xmr> [memo]` | Transfer + `rcp ` + `tip `, one-shot |
| `/file /path` | File send, 1 MiB, one-shot |
| `/wallet create` | Same as `F6` then `c` |
| `/wallet import` | Same as `F6` then `i` |
| `/settings` | Same as `F9` |
| `/backup /path` | Encrypted identity export |
| `/restore /path` | Overwrite self keys |
| `/wipe` | Type `WIPE` — chat/payments/outbox; identity stays |
| `/wipe-all` | Type `WIPEALL` — delete data dir; new person |
tui: clean-look chrome redesign (one accent, honest tor phase, real frames) Applies the bitchat-tui clean-look principles to the OnionWire main screen. - Hierarchy: header, roster + one primary chat pane, one status line, one footer hint line. The header gives up the accent (the accent is reserved for focus), so it stops competing with the panes. - Tor phase is a first-class state: Node::tor_state() -> TorPhase (glyph + word, header and footer) so connecting / ready / degraded / off are never colour-only and never implied. No new data field. - Footer changes with the focused pane (pane_footer_hints) and the phase; the main footer drops the redundant onion (the header already prints it) and uses those cells for hints. status_footer keeps its signature and strings. - Empty roster / empty chat / connecting / degraded / off are designed states with their own copy, not blank panes. - draw_main_chrome + MainView: the real main render path is public and Node-free, so tests/tui_frames.rs dumps the actual chrome at 80x24, 120x40 and 200x60 (12 tests, 5 states, real Message/OutboxEntry rows) instead of a reconstructed stand-in. - Widths in cells everywhere touched: status_footer*, alert_line, main_header_line*, draw_text_overlay, roster_row_text. The roster spends its budget name-first, so a 22-cell pane reads `bob-the-sta… stale` instead of `… bbbbbbbb… stale`. - draw_text_overlay is centered with a one-cell side margin and clears underneath; never full-bleed. Also fixes a pre-existing race in tests/tui_spec.rs (the ellipsis-form assertion did not tolerate ONIONWIRE_ASCII being set by a parallel test). Co-Authored-By: Hermes <[email protected]>
2026-09-18 23:13:12 -04:00
## Share / paste / rotate
tui: clean-look chrome redesign (one accent, honest tor phase, real frames) Applies the bitchat-tui clean-look principles to the OnionWire main screen. - Hierarchy: header, roster + one primary chat pane, one status line, one footer hint line. The header gives up the accent (the accent is reserved for focus), so it stops competing with the panes. - Tor phase is a first-class state: Node::tor_state() -> TorPhase (glyph + word, header and footer) so connecting / ready / degraded / off are never colour-only and never implied. No new data field. - Footer changes with the focused pane (pane_footer_hints) and the phase; the main footer drops the redundant onion (the header already prints it) and uses those cells for hints. status_footer keeps its signature and strings. - Empty roster / empty chat / connecting / degraded / off are designed states with their own copy, not blank panes. - draw_main_chrome + MainView: the real main render path is public and Node-free, so tests/tui_frames.rs dumps the actual chrome at 80x24, 120x40 and 200x60 (12 tests, 5 states, real Message/OutboxEntry rows) instead of a reconstructed stand-in. - Widths in cells everywhere touched: status_footer*, alert_line, main_header_line*, draw_text_overlay, roster_row_text. The roster spends its budget name-first, so a 22-cell pane reads `bob-the-sta… stale` instead of `… bbbbbbbb… stale`. - draw_text_overlay is centered with a one-cell side margin and clears underneath; never full-bleed. Also fixes a pre-existing race in tests/tui_spec.rs (the ellipsis-form assertion did not tolerate ONIONWIRE_ASCII being set by a parallel test). Co-Authored-By: Hermes <[email protected]>
2026-09-18 23:13:12 -04:00
- **F2.** Full invite. `C` copies it (OSC 52). Esc back.
- **F3.** Paste buffer, Enter submits. Unknown `k` → Approve (`y`/`n`). Same `k`
updates locator and prekey only.
- **F4.** Type `ROTATE`. Identity fingerprint unchanged. Online friends get
`loc `; offline friends must F3-paste the new invite.
- **F8.** Type `ROTATE`. Prekey is the Noise static **and** the ratchet bootstrap
seed. Every friend must F3-paste the new invite. Status:
`prekey rotated · friends must F3-paste your new invite`.
tui: clean-look chrome redesign (one accent, honest tor phase, real frames) Applies the bitchat-tui clean-look principles to the OnionWire main screen. - Hierarchy: header, roster + one primary chat pane, one status line, one footer hint line. The header gives up the accent (the accent is reserved for focus), so it stops competing with the panes. - Tor phase is a first-class state: Node::tor_state() -> TorPhase (glyph + word, header and footer) so connecting / ready / degraded / off are never colour-only and never implied. No new data field. - Footer changes with the focused pane (pane_footer_hints) and the phase; the main footer drops the redundant onion (the header already prints it) and uses those cells for hints. status_footer keeps its signature and strings. - Empty roster / empty chat / connecting / degraded / off are designed states with their own copy, not blank panes. - draw_main_chrome + MainView: the real main render path is public and Node-free, so tests/tui_frames.rs dumps the actual chrome at 80x24, 120x40 and 200x60 (12 tests, 5 states, real Message/OutboxEntry rows) instead of a reconstructed stand-in. - Widths in cells everywhere touched: status_footer*, alert_line, main_header_line*, draw_text_overlay, roster_row_text. The roster spends its budget name-first, so a 22-cell pane reads `bob-the-sta… stale` instead of `… bbbbbbbb… stale`. - draw_text_overlay is centered with a one-cell side margin and clears underneath; never full-bleed. Also fixes a pre-existing race in tests/tui_spec.rs (the ellipsis-form assertion did not tolerate ONIONWIRE_ASCII being set by a parallel test). Co-Authored-By: Hermes <[email protected]>
2026-09-18 23:13:12 -04:00
## Wallet (`F6`)
tui: clean-look chrome redesign (one accent, honest tor phase, real frames) Applies the bitchat-tui clean-look principles to the OnionWire main screen. - Hierarchy: header, roster + one primary chat pane, one status line, one footer hint line. The header gives up the accent (the accent is reserved for focus), so it stops competing with the panes. - Tor phase is a first-class state: Node::tor_state() -> TorPhase (glyph + word, header and footer) so connecting / ready / degraded / off are never colour-only and never implied. No new data field. - Footer changes with the focused pane (pane_footer_hints) and the phase; the main footer drops the redundant onion (the header already prints it) and uses those cells for hints. status_footer keeps its signature and strings. - Empty roster / empty chat / connecting / degraded / off are designed states with their own copy, not blank panes. - draw_main_chrome + MainView: the real main render path is public and Node-free, so tests/tui_frames.rs dumps the actual chrome at 80x24, 120x40 and 200x60 (12 tests, 5 states, real Message/OutboxEntry rows) instead of a reconstructed stand-in. - Widths in cells everywhere touched: status_footer*, alert_line, main_header_line*, draw_text_overlay, roster_row_text. The roster spends its budget name-first, so a 22-cell pane reads `bob-the-sta… stale` instead of `… bbbbbbbb… stale`. - draw_text_overlay is centered with a one-cell side margin and clears underneath; never full-bleed. Also fixes a pre-existing race in tests/tui_spec.rs (the ellipsis-form assertion did not tolerate ONIONWIRE_ASCII being set by a parallel test). Co-Authored-By: Hermes <[email protected]>
2026-09-18 23:13:12 -04:00
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet The chain source was reachable from three places and configured from none of them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process choice, the `F9` menu showed the state and named keys that edited it, and `Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only way to point the app at a Monero node — had **no TUI caller at all** (Kotlin only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7. F7 (`WalletSetupConfig`) is now the one screen that sets up the node: - The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the path; `set_local_monerod` delegates with the derived default, so an existing install keeps the store it already has. An empty datadir is refused rather than silently replaced — a store that moved unasked looks like a vanished chain and resyncs somewhere the user did not choose. - The `network` row is new: it carries the Cuprate mainnet/testnet choice that `F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet reads `unvalidated` before it is picked. - A `NODE` section shows the live `Node::wallet_child_status` line (state, chain source, `sync h/t`, last error) and the last save/test answer. It is the node's answer, never the draft above it, and `Ctrl-R` re-reads it. - `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child` / `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a wallet with no stored passphrase still reaches the unlock prompt. F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet again (receive, balance, transfers, create/import) — and its footer points at `F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and `F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and the `p` probe handler are deleted rather than left dead. The node's own keys are named in the body, on the section they act on: at 80 columns the footer has room for one group and the status line already spends half the width, which is the same reason the login row names `Ctrl-U`. Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real key path and the real node — the typed datadir reaching `ChainSource::Local`, an empty one being refused with nothing written, the live row on open, `Ctrl-S` saving then reporting the node's own refusal, the in-process network pick reaching the store, and F6 no longer owning keys it does not handle. `tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it asserted before no longer work.
2026-09-27 20:06:51 -04:00
The wallet, not the node: receive, balance, transfers, and create/import. Chain
and node configuration is `F7` (`Configures the wallet RPC endpoint and the
chain source`), named in the footer so the key is findable from here.
Footer:
tui: clean-look chrome redesign (one accent, honest tor phase, real frames) Applies the bitchat-tui clean-look principles to the OnionWire main screen. - Hierarchy: header, roster + one primary chat pane, one status line, one footer hint line. The header gives up the accent (the accent is reserved for focus), so it stops competing with the panes. - Tor phase is a first-class state: Node::tor_state() -> TorPhase (glyph + word, header and footer) so connecting / ready / degraded / off are never colour-only and never implied. No new data field. - Footer changes with the focused pane (pane_footer_hints) and the phase; the main footer drops the redundant onion (the header already prints it) and uses those cells for hints. status_footer keeps its signature and strings. - Empty roster / empty chat / connecting / degraded / off are designed states with their own copy, not blank panes. - draw_main_chrome + MainView: the real main render path is public and Node-free, so tests/tui_frames.rs dumps the actual chrome at 80x24, 120x40 and 200x60 (12 tests, 5 states, real Message/OutboxEntry rows) instead of a reconstructed stand-in. - Widths in cells everywhere touched: status_footer*, alert_line, main_header_line*, draw_text_overlay, roster_row_text. The roster spends its budget name-first, so a 22-cell pane reads `bob-the-sta… stale` instead of `… bbbbbbbb… stale`. - draw_text_overlay is centered with a one-cell side margin and clears underneath; never full-bleed. Also fixes a pre-existing race in tests/tui_spec.rs (the ellipsis-form assertion did not tolerate ONIONWIRE_ASCII being set by a parallel test). Co-Authored-By: Hermes <[email protected]>
2026-09-18 23:13:12 -04:00
```
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet The chain source was reachable from three places and configured from none of them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process choice, the `F9` menu showed the state and named keys that edited it, and `Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only way to point the app at a Monero node — had **no TUI caller at all** (Kotlin only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7. F7 (`WalletSetupConfig`) is now the one screen that sets up the node: - The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the path; `set_local_monerod` delegates with the derived default, so an existing install keeps the store it already has. An empty datadir is refused rather than silently replaced — a store that moved unasked looks like a vanished chain and resyncs somewhere the user did not choose. - The `network` row is new: it carries the Cuprate mainnet/testnet choice that `F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet reads `unvalidated` before it is picked. - A `NODE` section shows the live `Node::wallet_child_status` line (state, chain source, `sync h/t`, last error) and the last save/test answer. It is the node's answer, never the draft above it, and `Ctrl-R` re-reads it. - `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child` / `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a wallet with no stored passphrase still reaches the unlock prompt. F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet again (receive, balance, transfers, create/import) — and its footer points at `F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and `F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and the `p` probe handler are deleted rather than left dead. The node's own keys are named in the body, on the section they act on: at 80 columns the footer has room for one group and the status line already spends half the width, which is the same reason the login row names `Ctrl-U`. Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real key path and the real node — the typed datadir reaching `ChainSource::Local`, an empty one being refused with nothing written, the live row on open, `Ctrl-S` saving then reporting the node's own refusal, the in-process network pick reaching the store, and F6 no longer owning keys it does not handle. `tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it asserted before no longer work.
2026-09-27 20:06:51 -04:00
c create i import r qr w wallets F7 node Esc back ? help
tui: clean-look chrome redesign (one accent, honest tor phase, real frames) Applies the bitchat-tui clean-look principles to the OnionWire main screen. - Hierarchy: header, roster + one primary chat pane, one status line, one footer hint line. The header gives up the accent (the accent is reserved for focus), so it stops competing with the panes. - Tor phase is a first-class state: Node::tor_state() -> TorPhase (glyph + word, header and footer) so connecting / ready / degraded / off are never colour-only and never implied. No new data field. - Footer changes with the focused pane (pane_footer_hints) and the phase; the main footer drops the redundant onion (the header already prints it) and uses those cells for hints. status_footer keeps its signature and strings. - Empty roster / empty chat / connecting / degraded / off are designed states with their own copy, not blank panes. - draw_main_chrome + MainView: the real main render path is public and Node-free, so tests/tui_frames.rs dumps the actual chrome at 80x24, 120x40 and 200x60 (12 tests, 5 states, real Message/OutboxEntry rows) instead of a reconstructed stand-in. - Widths in cells everywhere touched: status_footer*, alert_line, main_header_line*, draw_text_overlay, roster_row_text. The roster spends its budget name-first, so a 22-cell pane reads `bob-the-sta… stale` instead of `… bbbbbbbb… stale`. - draw_text_overlay is centered with a one-cell side margin and clears underneath; never full-bleed. Also fixes a pre-existing race in tests/tui_spec.rs (the ellipsis-form assertion did not tolerate ONIONWIRE_ASCII being set by a parallel test). Co-Authored-By: Hermes <[email protected]>
2026-09-18 23:13:12 -04:00
```
| Key | Effect |
|---|---|
| `r` or Enter | Toggle receive-address QR |
| `w` | Saved wallets (`WalletSelect`) |
| `c` | Create wallet (`SPEND` then seed once, type `SEEN`) |
| `i` | Import 25-word seed |
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet The chain source was reachable from three places and configured from none of them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process choice, the `F9` menu showed the state and named keys that edited it, and `Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only way to point the app at a Monero node — had **no TUI caller at all** (Kotlin only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7. F7 (`WalletSetupConfig`) is now the one screen that sets up the node: - The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the path; `set_local_monerod` delegates with the derived default, so an existing install keeps the store it already has. An empty datadir is refused rather than silently replaced — a store that moved unasked looks like a vanished chain and resyncs somewhere the user did not choose. - The `network` row is new: it carries the Cuprate mainnet/testnet choice that `F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet reads `unvalidated` before it is picked. - A `NODE` section shows the live `Node::wallet_child_status` line (state, chain source, `sync h/t`, last error) and the last save/test answer. It is the node's answer, never the draft above it, and `Ctrl-R` re-reads it. - `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child` / `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a wallet with no stored passphrase still reaches the unlock prompt. F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet again (receive, balance, transfers, create/import) — and its footer points at `F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and `F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and the `p` probe handler are deleted rather than left dead. The node's own keys are named in the body, on the section they act on: at 80 columns the footer has room for one group and the status line already spends half the width, which is the same reason the login row names `Ctrl-U`. Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real key path and the real node — the typed datadir reaching `ChainSource::Local`, an empty one being refused with nothing written, the live row on open, `Ctrl-S` saving then reporting the node's own refusal, the in-process network pick reaching the store, and F6 no longer owning keys it does not handle. `tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it asserted before no longer work.
2026-09-27 20:06:51 -04:00
| `F7` | Node & wallet setup (`WalletSetupConfig`) |
| Esc | Back to Main |
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet The chain source was reachable from three places and configured from none of them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process choice, the `F9` menu showed the state and named keys that edited it, and `Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only way to point the app at a Monero node — had **no TUI caller at all** (Kotlin only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7. F7 (`WalletSetupConfig`) is now the one screen that sets up the node: - The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the path; `set_local_monerod` delegates with the derived default, so an existing install keeps the store it already has. An empty datadir is refused rather than silently replaced — a store that moved unasked looks like a vanished chain and resyncs somewhere the user did not choose. - The `network` row is new: it carries the Cuprate mainnet/testnet choice that `F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet reads `unvalidated` before it is picked. - A `NODE` section shows the live `Node::wallet_child_status` line (state, chain source, `sync h/t`, last error) and the last save/test answer. It is the node's answer, never the draft above it, and `Ctrl-R` re-reads it. - `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child` / `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a wallet with no stored passphrase still reaches the unlock prompt. F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet again (receive, balance, transfers, create/import) — and its footer points at `F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and `F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and the `p` probe handler are deleted rather than left dead. The node's own keys are named in the body, on the section they act on: at 80 columns the footer has room for one group and the status line already spends half the width, which is the same reason the login row names `Ctrl-U`. Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real key path and the real node — the typed datadir reaching `ChainSource::Local`, an empty one being refused with nothing written, the live row on open, `Ctrl-S` saving then reporting the node's own refusal, the in-process network pick reaching the store, and F6 no longer owning keys it does not handle. `tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it asserted before no longer work.
2026-09-27 20:06:51 -04:00
The child's state and the chain source are shown here (and on `F9`), but they are
**set** on `F7`: the start/stop/probe keys and the `1`/`2`/`3` in-process picker
that used to live on this screen are gone, so there is one place that configures
the chain.
The chain line for an in-process source always carries
`testnet only — mainnet is unvalidated` (`cuprate::TESTNET_ONLY`). Starting
Cuprate needs `--features cuprate-daemon`; without it, start fails with that
feature name.
Create/import require the wallet RPC started with `--wallet-dir`. Filename:
`onionwire`. Seed is never collected on the composer.
## Saved wallets (`F6` then `w`)
`WalletSelect`. One row per persisted wallet — name, identity prefix, locator
prefix, creation day — plus the selected row's full identity and locator under
the table. `j`/`k` or arrows select, Enter opens the selection, Esc back to
Main. Footer: `Esc back j k select Enter open ? help`.
The last item is **not** a wallet: `+ create new wallet` starts the same create
flow as `F6` `c`, so an empty list still has a way forward. An unlabelled wallet
(`NULL` in the store) reads `(unlabelled)`; a wallet whose onion service is not
published yet reads `-`; an unknown creation time reads `unknown`. A read that
failed is named on the screen — that is a different state from `no saved wallets
yet`, and the two never share copy.
Rows are plain display data (`WalletRow`), built by the caller from
tui: read the wallet list from the store and load the chosen wallet The selection screen shipped as presentation only: `F6 w` opened its unavailable state, the rows were never read, and Enter on a wallet said switching was not wired up. The catalogue, the create path and the screen all existed; nothing joined them. - `App::open_wallet_select` builds its rows from `Node::list_wallets` at the moment the screen opens (never cached from startup), and a failed read is the screen's own error state rather than "no saved wallets". - `App::choose_wallet` resolves `WalletChoice::Open(index)` against the catalogue as it is now — the index is a position, and two saved wallets may share an identity key — then loads it. `+ create new wallet` still starts the existing create flow. - `Node::open_wallet(filename)` is the load: it refuses a file the catalogue does not hold, re-points the sealed wallet-child record with a read-modify-write (the generated RPC creds survive), and restarts a running child onto the new file. An idle child takes the change on its next start. - `App::new` starts on the selection screen when the catalogue is non-empty and on the create flow when it is empty, so a restart lands on the wallets it remembers and a first run has no dead empty list. - The stored identity/locator stay catalogue columns: a locator rotates (F4) and identity is the roster key the node already holds, so the live header keeps reading them from the node. - `SELECT_UNAVAILABLE` is gone with the state it described; docs/TUI.md now describes the wired behaviour. Tests (both new): `Node::open_wallet` over an offline node — the chosen file, the creds kept across the read-modify-write, the choice surviving a reopen, and a non-catalogue file refused; and the app path in src/tui.rs over a real store-backed node — start screen both ways, catalogue mapping, row index over a shared identity, the create row, and a wallet recorded after startup appearing the next time the list opens.
2026-09-21 11:43:07 -04:00
`Node::list_wallets`; the render path never reads the store. Selection is by
row index, not by identity key (two records may share one).
tui: read the wallet list from the store and load the chosen wallet The selection screen shipped as presentation only: `F6 w` opened its unavailable state, the rows were never read, and Enter on a wallet said switching was not wired up. The catalogue, the create path and the screen all existed; nothing joined them. - `App::open_wallet_select` builds its rows from `Node::list_wallets` at the moment the screen opens (never cached from startup), and a failed read is the screen's own error state rather than "no saved wallets". - `App::choose_wallet` resolves `WalletChoice::Open(index)` against the catalogue as it is now — the index is a position, and two saved wallets may share an identity key — then loads it. `+ create new wallet` still starts the existing create flow. - `Node::open_wallet(filename)` is the load: it refuses a file the catalogue does not hold, re-points the sealed wallet-child record with a read-modify-write (the generated RPC creds survive), and restarts a running child onto the new file. An idle child takes the change on its next start. - `App::new` starts on the selection screen when the catalogue is non-empty and on the create flow when it is empty, so a restart lands on the wallets it remembers and a first run has no dead empty list. - The stored identity/locator stay catalogue columns: a locator rotates (F4) and identity is the roster key the node already holds, so the live header keeps reading them from the node. - `SELECT_UNAVAILABLE` is gone with the state it described; docs/TUI.md now describes the wired behaviour. Tests (both new): `Node::open_wallet` over an offline node — the chosen file, the creds kept across the read-modify-write, the choice surviving a reopen, and a non-catalogue file refused; and the app path in src/tui.rs over a real store-backed node — start screen both ways, catalogue mapping, row index over a shared identity, the create row, and a wallet recorded after startup appearing the next time the list opens.
2026-09-21 11:43:07 -04:00
The list is read when the screen opens — from the start screen and from
`F6` `w` — so a wallet created or imported in this session is offered the next
time the screen opens, with no restart. Enter on a wallet row re-points the
app-owned wallet child at that row's `wallet_filename` (`Node::open_wallet`,
a read-modify-write of the sealed record, so the generated RPC creds survive);
a running child is restarted onto the new file, and an idle one picks the
change up on its next start.
**Start screen.** An install with at least one saved wallet opens on
`WalletSelect`; a fresh install (empty catalogue) opens on the create flow
(`WalletSetup::CreateWarn`), so the first run has no dead empty list. The
stored identity and locator are catalogue columns, not session state: a locator
rotates (`F4`) and identity is the roster key the node already holds, so the
live header keeps reading them from the node.
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet The chain source was reachable from three places and configured from none of them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process choice, the `F9` menu showed the state and named keys that edited it, and `Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only way to point the app at a Monero node — had **no TUI caller at all** (Kotlin only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7. F7 (`WalletSetupConfig`) is now the one screen that sets up the node: - The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the path; `set_local_monerod` delegates with the derived default, so an existing install keeps the store it already has. An empty datadir is refused rather than silently replaced — a store that moved unasked looks like a vanished chain and resyncs somewhere the user did not choose. - The `network` row is new: it carries the Cuprate mainnet/testnet choice that `F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet reads `unvalidated` before it is picked. - A `NODE` section shows the live `Node::wallet_child_status` line (state, chain source, `sync h/t`, last error) and the last save/test answer. It is the node's answer, never the draft above it, and `Ctrl-R` re-reads it. - `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child` / `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a wallet with no stored passphrase still reaches the unlock prompt. F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet again (receive, balance, transfers, create/import) — and its footer points at `F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and `F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and the `p` probe handler are deleted rather than left dead. The node's own keys are named in the body, on the section they act on: at 80 columns the footer has room for one group and the status line already spends half the width, which is the same reason the login row names `Ctrl-U`. Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real key path and the real node — the typed datadir reaching `ChainSource::Local`, an empty one being refused with nothing written, the live row on open, `Ctrl-S` saving then reporting the node's own refusal, the in-process network pick reaching the store, and F6 no longer owning keys it does not handle. `tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it asserted before no longer work.
2026-09-27 20:06:51 -04:00
## Node & wallet setup (`F7`)
Footer: `Esc back Enter save Ctrl-T test` (plus the status line's own `? help`).
The compactor drops tokens from the front, and at 80 columns the status line
leaves about 25 cells, so the tail is what the default terminal shows. `Tab` and
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet The chain source was reachable from three places and configured from none of them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process choice, the `F9` menu showed the state and named keys that edited it, and `Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only way to point the app at a Monero node — had **no TUI caller at all** (Kotlin only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7. F7 (`WalletSetupConfig`) is now the one screen that sets up the node: - The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the path; `set_local_monerod` delegates with the derived default, so an existing install keeps the store it already has. An empty datadir is refused rather than silently replaced — a store that moved unasked looks like a vanished chain and resyncs somewhere the user did not choose. - The `network` row is new: it carries the Cuprate mainnet/testnet choice that `F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet reads `unvalidated` before it is picked. - A `NODE` section shows the live `Node::wallet_child_status` line (state, chain source, `sync h/t`, last error) and the last save/test answer. It is the node's answer, never the draft above it, and `Ctrl-R` re-reads it. - `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child` / `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a wallet with no stored passphrase still reaches the unlock prompt. F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet again (receive, balance, transfers, create/import) — and its footer points at `F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and `F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and the `p` probe handler are deleted rather than left dead. The node's own keys are named in the body, on the section they act on: at 80 columns the footer has room for one group and the status line already spends half the width, which is the same reason the login row names `Ctrl-U`. Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real key path and the real node — the typed datadir reaching `ChainSource::Local`, an empty one being refused with nothing written, the live row on open, `Ctrl-S` saving then reporting the node's own refusal, the in-process network pick reaching the store, and F6 no longer owning keys it does not handle. `tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it asserted before no longer work.
2026-09-27 20:06:51 -04:00
`?` are universal; the node's own keys (`ctrl-s`, `ctrl-x`, `ctrl-r`) and
`Ctrl-U` are named in the body, on the row they act on.
Live from Main, the `F9` settings menu, and peer payments; the menu's `endpoint`
row names `F7` as the key that edits it. Body is `WalletSetupConfigState`, a
snapshot taken when the screen opens — the render path never reads the store.
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet The chain source was reachable from three places and configured from none of them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process choice, the `F9` menu showed the state and named keys that edited it, and `Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only way to point the app at a Monero node — had **no TUI caller at all** (Kotlin only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7. F7 (`WalletSetupConfig`) is now the one screen that sets up the node: - The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the path; `set_local_monerod` delegates with the derived default, so an existing install keeps the store it already has. An empty datadir is refused rather than silently replaced — a store that moved unasked looks like a vanished chain and resyncs somewhere the user did not choose. - The `network` row is new: it carries the Cuprate mainnet/testnet choice that `F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet reads `unvalidated` before it is picked. - A `NODE` section shows the live `Node::wallet_child_status` line (state, chain source, `sync h/t`, last error) and the last save/test answer. It is the node's answer, never the draft above it, and `Ctrl-R` re-reads it. - `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child` / `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a wallet with no stored passphrase still reaches the unlock prompt. F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet again (receive, balance, transfers, create/import) — and its footer points at `F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and `F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and the `p` probe handler are deleted rather than left dead. The node's own keys are named in the body, on the section they act on: at 80 columns the footer has room for one group and the status line already spends half the width, which is the same reason the login row names `Ctrl-U`. Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real key path and the real node — the typed datadir reaching `ChainSource::Local`, an empty one being refused with nothing written, the live row on open, `Ctrl-S` saving then reporting the node's own refusal, the in-process network pick reaching the store, and F6 no longer owning keys it does not handle. `tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it asserted before no longer work.
2026-09-27 20:06:51 -04:00
This is the only screen that sets up the chain: the wallet RPC endpoint, and the
node that serves it.
| Row | Kind | Notes |
|---|---|---|
| `url` | text | the wallet RPC endpoint |
| `login` | text | `user:pass`. Never rendered back: the row reads `hidden · set` or `(none)` |
| `view-only` | toggle | `no_spend`; `/tip` is refused before any dial |
| `chain` | picker | `space` cycles receive-only, local node, remote daemon, in-process |
| `daemon` | text | `host:port`, for the remote daemon |
| `monerod` | text | the binary this box spawns for a local node |
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet The chain source was reachable from three places and configured from none of them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process choice, the `F9` menu showed the state and named keys that edited it, and `Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only way to point the app at a Monero node — had **no TUI caller at all** (Kotlin only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7. F7 (`WalletSetupConfig`) is now the one screen that sets up the node: - The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the path; `set_local_monerod` delegates with the derived default, so an existing install keeps the store it already has. An empty datadir is refused rather than silently replaced — a store that moved unasked looks like a vanished chain and resyncs somewhere the user did not choose. - The `network` row is new: it carries the Cuprate mainnet/testnet choice that `F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet reads `unvalidated` before it is picked. - A `NODE` section shows the live `Node::wallet_child_status` line (state, chain source, `sync h/t`, last error) and the last save/test answer. It is the node's answer, never the draft above it, and `Ctrl-R` re-reads it. - `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child` / `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a wallet with no stored passphrase still reaches the unlock prompt. F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet again (receive, balance, transfers, create/import) — and its footer points at `F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and `F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and the `p` probe handler are deleted rather than left dead. The node's own keys are named in the body, on the section they act on: at 80 columns the footer has room for one group and the status line already spends half the width, which is the same reason the login row names `Ctrl-U`. Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real key path and the real node — the typed datadir reaching `ChainSource::Local`, an empty one being refused with nothing written, the live row on open, `Ctrl-S` saving then reporting the node's own refusal, the in-process network pick reaching the store, and F6 no longer owning keys it does not handle. `tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it asserted before no longer work.
2026-09-27 20:06:51 -04:00
| `datadir` | text | where the chain is stored. Prefilled with the path already in use; an empty one is refused rather than silently defaulted |
| `prune` | toggle | local and in-process sources |
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet The chain source was reachable from three places and configured from none of them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process choice, the `F9` menu showed the state and named keys that edited it, and `Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only way to point the app at a Monero node — had **no TUI caller at all** (Kotlin only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7. F7 (`WalletSetupConfig`) is now the one screen that sets up the node: - The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the path; `set_local_monerod` delegates with the derived default, so an existing install keeps the store it already has. An empty datadir is refused rather than silently replaced — a store that moved unasked looks like a vanished chain and resyncs somewhere the user did not choose. - The `network` row is new: it carries the Cuprate mainnet/testnet choice that `F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet reads `unvalidated` before it is picked. - A `NODE` section shows the live `Node::wallet_child_status` line (state, chain source, `sync h/t`, last error) and the last save/test answer. It is the node's answer, never the draft above it, and `Ctrl-R` re-reads it. - `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child` / `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a wallet with no stored passphrase still reaches the unlock prompt. F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet again (receive, balance, transfers, create/import) — and its footer points at `F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and `F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and the `p` probe handler are deleted rather than left dead. The node's own keys are named in the body, on the section they act on: at 80 columns the footer has room for one group and the status line already spends half the width, which is the same reason the login row names `Ctrl-U`. Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real key path and the real node — the typed datadir reaching `ChainSource::Local`, an empty one being refused with nothing written, the live row on open, `Ctrl-S` saving then reporting the node's own refusal, the in-process network pick reaching the store, and F6 no longer owning keys it does not handle. `tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it asserted before no longer work.
2026-09-27 20:06:51 -04:00
| `network` | picker | in-process source: `space` cycles mainnet (`unvalidated`) and testnet |
Under them, a `NODE` section: the live `Node::wallet_child_status` line (state,
chain source, `sync h/t` once a daemon reports numbers, the last error) and the
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.
`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.
`Ctrl-S` saves and then starts the wallet child — the daemon and, for a local
source, `monerod` — so the setup screen is also the key that brings the node up.
A start that lands on a wallet file with no stored passphrase moves the app to
the unlock prompt. `Ctrl-X` stops the child. Both go through the same
`Node::start_wallet_child` / `stop_wallet_child` the app's own lifecycle uses.
The chain row is written only when it was changed. An untouched row leaves the
stored source alone, so opening `F7` to fix a port cannot silently undo an
in-process Cuprate choice or move a chain datadir. Picking a remote daemon says
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.
Esc is the single exit and wipes the login buffer (`Zeroizing<String>`).
## Wallets & settings (`F9` / `/settings`)
Discovery layer, not a replacement. Function keys stay live on this screen.
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet The chain source was reachable from three places and configured from none of them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process choice, the `F9` menu showed the state and named keys that edited it, and `Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only way to point the app at a Monero node — had **no TUI caller at all** (Kotlin only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7. F7 (`WalletSetupConfig`) is now the one screen that sets up the node: - The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the path; `set_local_monerod` delegates with the derived default, so an existing install keeps the store it already has. An empty datadir is refused rather than silently replaced — a store that moved unasked looks like a vanished chain and resyncs somewhere the user did not choose. - The `network` row is new: it carries the Cuprate mainnet/testnet choice that `F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet reads `unvalidated` before it is picked. - A `NODE` section shows the live `Node::wallet_child_status` line (state, chain source, `sync h/t`, last error) and the last save/test answer. It is the node's answer, never the draft above it, and `Ctrl-R` re-reads it. - `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child` / `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a wallet with no stored passphrase still reaches the unlock prompt. F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet again (receive, balance, transfers, create/import) — and its footer points at `F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and `F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and the `p` probe handler are deleted rather than left dead. The node's own keys are named in the body, on the section they act on: at 80 columns the footer has room for one group and the status line already spends half the width, which is the same reason the login row names `Ctrl-U`. Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real key path and the real node — the typed datadir reaching `ChainSource::Local`, an empty one being refused with nothing written, the live row on open, `Ctrl-S` saving then reporting the node's own refusal, the in-process network pick reaching the store, and F6 no longer owning keys it does not handle. `tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it asserted before no longer work.
2026-09-27 20:06:51 -04:00
Rows name the shortcut they sit beside (`F6 c`, `F6 i`, `F6 r`, `/profile`,
`/backup`, `/wipe`, …).
- **No credentials** on this screen. Login, seed, and passphrase are never
passed into the menu snapshot.
- `c` copies the receive address (OSC 52).
- `p` opens peer payment history for the selected friend (`Node::list_payments`).
- Esc back to Main.
The menu **shows** endpoint state; it does not edit it. The `endpoint` row names
`F7`, which is the key that opens `WalletSetupConfig` and the key the “open F7”
copy in `src/wallet.rs` now points at — that error is no longer advice for a key
that does not exist.
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet The chain source was reachable from three places and configured from none of them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process choice, the `F9` menu showed the state and named keys that edited it, and `Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only way to point the app at a Monero node — had **no TUI caller at all** (Kotlin only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7. F7 (`WalletSetupConfig`) is now the one screen that sets up the node: - The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the path; `set_local_monerod` delegates with the derived default, so an existing install keeps the store it already has. An empty datadir is refused rather than silently replaced — a store that moved unasked looks like a vanished chain and resyncs somewhere the user did not choose. - The `network` row is new: it carries the Cuprate mainnet/testnet choice that `F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet reads `unvalidated` before it is picked. - A `NODE` section shows the live `Node::wallet_child_status` line (state, chain source, `sync h/t`, last error) and the last save/test answer. It is the node's answer, never the draft above it, and `Ctrl-R` re-reads it. - `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child` / `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a wallet with no stored passphrase still reaches the unlock prompt. F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet again (receive, balance, transfers, create/import) — and its footer points at `F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and `F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and the `p` probe handler are deleted rather than left dead. The node's own keys are named in the body, on the section they act on: at 80 columns the footer has room for one group and the status line already spends half the width, which is the same reason the login row names `Ctrl-U`. Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real key path and the real node — the typed datadir reaching `ChainSource::Local`, an empty one being refused with nothing written, the live row on open, `Ctrl-S` saving then reporting the node's own refusal, the in-process network pick reaching the store, and F6 no longer owning keys it does not handle. `tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it asserted before no longer work.
2026-09-27 20:06:51 -04:00
Chain source is stored via `Node::set_wallet_child_config`. `F7` is the one
screen that sets any of the four sources — receive-only, a local `monerod`, a
remote daemon, or the in-process Cuprate node — along with the external RPC URL
and the chain datadir.
## Peer payments (`F9` then `p`)
Peer-scoped signed invoices and tips, not the wallet's own transfer list.
`j`/`k` or arrows select. Esc back. Footer: `Esc back up/down select F9 menu ? help`.
## Delivery markers (chat)
| Row state | Marker |
|---|---|
| delivered | `✓` |
| queued | `◷ queued (try n/8, retry …)` |
| sending | `» sending` |
| failed | `✗ failed: …` |
| inbound | no marker |
tui: clean-look chrome redesign (one accent, honest tor phase, real frames) Applies the bitchat-tui clean-look principles to the OnionWire main screen. - Hierarchy: header, roster + one primary chat pane, one status line, one footer hint line. The header gives up the accent (the accent is reserved for focus), so it stops competing with the panes. - Tor phase is a first-class state: Node::tor_state() -> TorPhase (glyph + word, header and footer) so connecting / ready / degraded / off are never colour-only and never implied. No new data field. - Footer changes with the focused pane (pane_footer_hints) and the phase; the main footer drops the redundant onion (the header already prints it) and uses those cells for hints. status_footer keeps its signature and strings. - Empty roster / empty chat / connecting / degraded / off are designed states with their own copy, not blank panes. - draw_main_chrome + MainView: the real main render path is public and Node-free, so tests/tui_frames.rs dumps the actual chrome at 80x24, 120x40 and 200x60 (12 tests, 5 states, real Message/OutboxEntry rows) instead of a reconstructed stand-in. - Widths in cells everywhere touched: status_footer*, alert_line, main_header_line*, draw_text_overlay, roster_row_text. The roster spends its budget name-first, so a 22-cell pane reads `bob-the-sta… stale` instead of `… bbbbbbbb… stale`. - draw_text_overlay is centered with a one-cell side margin and clears underneath; never full-bleed. Also fixes a pre-existing race in tests/tui_spec.rs (the ellipsis-form assertion did not tolerate ONIONWIRE_ASCII being set by a parallel test). Co-Authored-By: Hermes <[email protected]>
2026-09-18 23:13:12 -04:00
Footer `{n} queued` while anything is outstanding. File transfer and payments
have no queue — outcome is a status note (`invoice sent`, `tip sent`,
`send failed: …`).
tui: clean-look chrome redesign (one accent, honest tor phase, real frames) Applies the bitchat-tui clean-look principles to the OnionWire main screen. - Hierarchy: header, roster + one primary chat pane, one status line, one footer hint line. The header gives up the accent (the accent is reserved for focus), so it stops competing with the panes. - Tor phase is a first-class state: Node::tor_state() -> TorPhase (glyph + word, header and footer) so connecting / ready / degraded / off are never colour-only and never implied. No new data field. - Footer changes with the focused pane (pane_footer_hints) and the phase; the main footer drops the redundant onion (the header already prints it) and uses those cells for hints. status_footer keeps its signature and strings. - Empty roster / empty chat / connecting / degraded / off are designed states with their own copy, not blank panes. - draw_main_chrome + MainView: the real main render path is public and Node-free, so tests/tui_frames.rs dumps the actual chrome at 80x24, 120x40 and 200x60 (12 tests, 5 states, real Message/OutboxEntry rows) instead of a reconstructed stand-in. - Widths in cells everywhere touched: status_footer*, alert_line, main_header_line*, draw_text_overlay, roster_row_text. The roster spends its budget name-first, so a 22-cell pane reads `bob-the-sta… stale` instead of `… bbbbbbbb… stale`. - draw_text_overlay is centered with a one-cell side margin and clears underneath; never full-bleed. Also fixes a pre-existing race in tests/tui_spec.rs (the ellipsis-form assertion did not tolerate ONIONWIRE_ASCII being set by a parallel test). Co-Authored-By: Hermes <[email protected]>
2026-09-18 23:13:12 -04:00
## Size
tui: clean-look chrome redesign (one accent, honest tor phase, real frames) Applies the bitchat-tui clean-look principles to the OnionWire main screen. - Hierarchy: header, roster + one primary chat pane, one status line, one footer hint line. The header gives up the accent (the accent is reserved for focus), so it stops competing with the panes. - Tor phase is a first-class state: Node::tor_state() -> TorPhase (glyph + word, header and footer) so connecting / ready / degraded / off are never colour-only and never implied. No new data field. - Footer changes with the focused pane (pane_footer_hints) and the phase; the main footer drops the redundant onion (the header already prints it) and uses those cells for hints. status_footer keeps its signature and strings. - Empty roster / empty chat / connecting / degraded / off are designed states with their own copy, not blank panes. - draw_main_chrome + MainView: the real main render path is public and Node-free, so tests/tui_frames.rs dumps the actual chrome at 80x24, 120x40 and 200x60 (12 tests, 5 states, real Message/OutboxEntry rows) instead of a reconstructed stand-in. - Widths in cells everywhere touched: status_footer*, alert_line, main_header_line*, draw_text_overlay, roster_row_text. The roster spends its budget name-first, so a 22-cell pane reads `bob-the-sta… stale` instead of `… bbbbbbbb… stale`. - draw_text_overlay is centered with a one-cell side margin and clears underneath; never full-bleed. Also fixes a pre-existing race in tests/tui_spec.rs (the ellipsis-form assertion did not tolerate ONIONWIRE_ASCII being set by a parallel test). Co-Authored-By: Hermes <[email protected]>
2026-09-18 23:13:12 -04:00
Floor **80×24**. Target **120×40**. Frame dumps:
```
cargo test --locked --test tui_spec -- --nocapture dump_spec_frames
cargo test --locked --test tui_spec -- --nocapture wallets_settings_menu_frame_dumps
cargo test --locked --test tui_select -- --nocapture wallet_select_frame_dumps
```