- 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>
- A long single line (over 64 characters) or several lines now go through
the composer's _sendComposedPrompt: one bracketed paste, then Enter as a
separate delayed write to the session captured at Enter. Claude Code took
a long `<text>\r` burst as a paste and left it unsent, and the old delayed
Enter followed a tab switch. A refused prompt keeps the text in the field.
- Deleting held text no longer sends Backspace to the PTY. It goes out only
when the field was already empty (the phantom itself deleted), so
select-all + delete is covered too.
- With the one-shot Ctrl armed, the next single typed character skips the
hold and reaches _handleCjkInput, which turns it into the control byte;
any other change spends the modifier, as in live mode.
- A reload of the session already shown (tapping its tab, the geometry
retry) keeps a held draft.
- With the keyboard down the field stays one line tall, so it no longer
covers the terminal's last rows.
- zh-CN strings for both field placeholders, and a test pinning
cjkInputHoldUntilEnter as per-device.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A per-device setting next to CJK Input keeps typed text in the pinned
field until Enter instead of streaming it to the PTY, so a phone user can
scroll the terminal and edit an answer before sending (Termux-style).
One line goes as text + CR, several lines as one bracketed paste with a
delayed Enter, like the prompt composer. Shift+Enter is a newline,
Escape clears, Backspace on an empty field still reaches the PTY, and
autocorrect is on in this mode. The field grows with its text and the
keyboard layout reserves its real height.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>