mirror of
https://github.com/openai/codex.git
synced 2026-11-25 07:23:22 +00:00
fix(tui): document paste-burst state machine (#9020)
Add a narrative doc and inline rustdoc explaining how `ChatComposer` and `PasteBurst` compose into a single state machine on terminals that lack reliable bracketed paste (notably Windows). This documents the key states, invariants, and integration points (`handle_input_basic`, `handle_non_ascii_char`, tick-driven flush) so future changes are easier to reason about.
This commit is contained in:
1 parent
2651980bdf
commit
58e8f75b27
10 files changed
+854
-28
No files matched your search
@@ -0,0 +1,15 @@
|
||||
# TUI bottom pane (state machines)
|
||||
|
||||
When changing the paste-burst or chat-composer state machines in this folder, keep the docs in sync:
|
||||
|
||||
- Update the relevant module docs (`chat_composer.rs` and/or `paste_burst.rs`) so they remain a
|
||||
readable, top-down explanation of the current behavior.
|
||||
- Update the narrative doc `docs/tui-chat-composer.md` whenever behavior/assumptions change (Enter
|
||||
handling, retro-capture, flush/clear rules, `disable_paste_burst`, non-ASCII/IME handling).
|
||||
- Keep `codex-rs/tui` and `codex-rs/tui2` implementations/docstrings aligned unless the divergence
|
||||
is intentional and documented.
|
||||
|
||||
Practical check:
|
||||
|
||||
- After edits, sanity-check that docs mention only APIs/behavior that exist in code (especially the
|
||||
Enter/newline paths and `disable_paste_burst` semantics).
|
||||
Reference in new issue
Block a user