Skip to content

feat(tui,remote-interop): a composer and queue foundation; transfers counted on the wire - #1358

Merged
huichen merged 3 commits into
mainfrom
pr/huichen
Oct 25, 2026
Merged

huichen merged 3 commits into
mainfrom
pr/huichen

Conversation

@huichen

@huichen huichen commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

What and why

The TUI workbench gets a real composer: typed input with editing and clipboard
handling, a scroll model, and a run loop that can hold queued work — the
foundation the workbench needs before it can drive sessions the way the desktop
already does. It also documents the new behaviour in docs/guide/tui.md.

On the remote side, transfers can now be measured by counting the actual NATS
messages a loopback transfer publishes, so a change's effect on the wire is
observable instead of inferred from wall time.

Commits

  • feat(tui): build a reliable composer and queue foundation — composer input
    editing and clipboard, workbench editor/scroll/run state, bilingual strings
    for the new surface, and the docs/guide/tui.md update.
  • test(remote): count NATS transfer messages — a loopback benchmark that
    proxies the broker and counts PUB/request frames and bytes during a
    transfer, so overlap can be asserted rather than estimated.

The branch also carries one merge commit with no content of its own (it folded
the local perf/remote-protocol task branch into the dev branch).

Verification

Run at 6c5a13f28 with the repo-pinned toolchain (rustc/clippy 1.97.0):

  • cargo fmt --all -- --check → clean
  • cargo clippy -p future-tui --all-targets -- -D warnings → clean
  • cargo clippy -p future-remote-interop --all-targets -- -D warnings → clean
  • cargo test -p future-tui --lib → 1064 passed, 0 failed
  • cargo test -p future-remote-interop → ok (the new transfer_benchmark is
    #[ignore]d: a benchmark with real sockets and deliberate latency)

Notes

  • No migration, no flag or default-value change.
  • The transfer measurement is opt-in only; nothing changes in normal runs.

@huichen
huichen enabled auto-merge (squash) October 25, 2026 23:19
@huichen
huichen merged commit 03c3d6e into main Oct 25, 2026
10 checks passed
@huichen
huichen deleted the pr/huichen branch October 25, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant