Commit graph onionwire/docs/TUI.md
Author SHA1 Message Date
rust-dev
11a4145972
docs: describe the local outbox instead of denying it
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
2026-09-12 17:21:32 -04:00
t
b79f1fd6f3
feat(tui): per-message outbox delivery state + N queued footer
All checks were successful
ci / test (pull_request) Successful in 4m9s
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.
2026-09-12 14:44:35 -04:00
Sirius DevOps
35b8caa716
feat(tui): ASCII chrome, invite wrap, alert truncate, remaining copy
Some checks failed
ci / test (pull_request) Failing after 4m39s
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.
2026-09-12 00:54:16 -04:00
Sirius DevOps
7d3e1bd627
test(tui): keep send-failed visible in crowded status_footer
All checks were successful
ci / test (pull_request) Successful in 3m5s
PR #23 locked the old drop. Flip status_footer_drops_send_failed_when_crowded
to assert the note stays at 80/120/200 with TOR, me:, and ? help.
2026-09-12 00:22:04 -04:00
Sirius DevOps
4205ed149d
docs(tui): visual audit, before frames, and design spec
All checks were successful
ci / test (pull_request) Successful in 2m45s
Dump current chrome through TestBackend at 80x24 / 120x40 / 200x60.
No src changes. Spec in docs/TUI.md for the implementation card.
2026-09-11 23:52:05 -04:00