mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-20 04:59:34 +01:00
fix(mobile): Send on Enter second review fixes
- Never send a held answer as text + CR in one write: Codex folds an Enter in the same burst into a paste. A single character is typed, then CR ~120 ms later to the session captured at Enter; anything longer goes through _sendComposedPrompt. Drops HELD_DIRECT_MAX. No session keeps the text in the field. - Cap #cjkInput at 68px on every device, not only touch. - _autoGrow adds the border height and skips a hidden field. - setHoldUntilEnter returns early when the mode is unchanged. - Per-session held drafts: stashed on switch and tile focus, restored on return, dropped when the session is removed. - Toolbar Enter presses Enter in the visible CJK field (commits an active composition first). - Blank-only field sends a bare Enter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
95fb147e9c
commit
64ee504247
10 files changed
+418
-92
No files matched your search
@@ -70,11 +70,12 @@ sequences, so word jumps and history keys keep working.
|
||||
On a phone, **Input Field: Send on Enter** (beside CJK input) turns that field into a chat box:
|
||||
typed text stays in it until Enter, so you can scroll the terminal back to a question and edit
|
||||
your answer before sending. Shift+Enter adds a line, Esc clears the field, and autocorrect is on.
|
||||
A short one-line answer is sent as typed, so CLI menus that take a digit still work; a longer
|
||||
answer, or several lines, goes like the prompt composer's Send: one paste, then Enter to the same
|
||||
session. With the keyboard bar's one-shot Ctrl armed, the next key you type goes out as a control
|
||||
Enter always goes out as its own write, a moment after the text, to the session the answer was
|
||||
typed for: a single character is typed, so CLI menus that take a digit still work, and anything
|
||||
longer goes like the prompt composer's Send, as one paste. The toolbar's Enter button sends the
|
||||
field too. With the keyboard bar's one-shot Ctrl armed, the next key you type goes out as a control
|
||||
key (Ctrl, then `c` is Ctrl+C) instead of being held. With the keyboard down the field stays one
|
||||
line tall, and tapping the tab you are on keeps the draft.
|
||||
line tall. A draft stays with its session: switching tabs and coming back brings it back.
|
||||
|
||||
## Voice dictation
|
||||
|
||||
|
||||
Reference in new issue
Block a user