fix(tui): do not freeze the UI on chat send #19

Merged
sirius merged 1 commit from feat/tui-nonblocking-send into main 2026-09-12 03:10:54 +00:00
Owner

Summary

Enter used block_on(Node::send), which retries for 180s on the TUI thread so event::read never ran (composer still showed the last frame; keys dead).

Spawn send on the Tokio runtime, poll keys every 100ms, footer sending then sent / send failed.

Proof

  • cargo test --offline green
  • cargo clippy --all-targets -- -D warnings clean
## Summary Enter used `block_on(Node::send)`, which retries for 180s on the TUI thread so `event::read` never ran (composer still showed the last frame; keys dead). Spawn send on the Tokio runtime, poll keys every 100ms, footer `sending` then `sent` / `send failed`. ## Proof - `cargo test --offline` green - `cargo clippy --all-targets -- -D warnings` clean
fix(tui): do not freeze the UI on chat send
Some checks failed
ci / test (pull_request) Failing after 1s
7d8363a761
Enter used block_on(Node::send), which retries for 180s on the TUI
thread so event::read never ran. Spawn send on the runtime, poll keys
at 100ms, show sending/sent/send failed on the footer.
sirius merged commit cb91ba2b78 into main 2026-09-12 03:10:54 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/onionwire!19
No description provided.