README.md still told users 'no outbox, no retry queue' and 'if their onion is
down, send fails' since well before the local outbox landed (#45). Rewrite the
delivery story to match what main runs: an unreachable peer's chat is queued in
the local outbox and retried with 30s-doubling backoff (cap 30 min, 8 attempts,
then terminally failed), local-only until it lands, nothing handed to a third
party. Retries are not a new transport: each one is a fresh Noise IK handshake
straight to the friend's onion, as docs/PROTOCOL.md and docs/THREAT_MODEL.md
already say.
Keep the non-goals that are still true (no server-side outbox / store-and-forward
relay, no multi-device sync, no DHT) and keep file transfer and payments
fail-closed, since only chat is queued.
docs/TUI.md: the status-copy table still listed 'peer down / send err | send
failed: {e}' as the fail-closed path; split it into the queued chat case and the
paths that still fail.
docs/ARTI_UPGRADE.md: step 7's hand check must use /file or /pay, because a chat
to a down onion is queued rather than failed.
No code change.
# Conflicts:
# README.md
# docs/TUI.md
Chat rows now carry the state the local outbox actually holds: `✓` delivered,
`◷ queued (try n/8, retry 45s)` while the retry worker still has it, `» sending`
mid-attempt and `✗ failed: <short reason>` once attempts are exhausted. The
footer replaces the flat `sent` / `send failed` copy with the live count
(`2 queued`), and keeps a fail-closed `send failed: …` statement as long as any
row is terminally failed.
States come from the outbox API (`Node::outbox_pending` → `Queued` / `Sending` /
`Failed`; a delivered row is deleted, so absence is `Sent`). No parallel state
model, no new wire prefix. Every new glyph has an ASCII fallback (`ok` plus the
state word) exercised by a test.
- `chat_with_delivery()` / `delivery_tag()` / `retry_in_text()` /
`short_send_reason()` / `OutboxSummary::note()` are pure and unit-tested.
- `draw_chat()` is now the real chat-pane renderer (extracted from
`App::draw_main`) so width/wrap is testable without a `Node`.
- docs/TUI.md: delivery markers, copy, and the 80x24 floor / 120x40 target.
Verified: cargo test 26/26 suites ok (tui_spec 20/20, incl. a real Store +
Outbox::send -> pending() -> render path); clippy --all-targets -D warnings clean.
ONIONWIRE_ASCII (and NO_COLOR) switches truncation to ... and ASCII
borders. Share/paste wrap at : so a mouse-copy cannot lose a mid-hex
line. Alerts truncate to the frame; empty threads and paste errors keep
the next-step hint. Skip the optional 40-row wordmark.