The --list column is rowLabel() cut to 48 characters: an unnamed session
shows its folder, a long name ends in an ellipsis, and neither resolves as
a name. Point at attaching by number instead. Review on #834.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review on #834: drop the Prettier reflow of docs/tui.md and keep only the
new example line and paragraph, put "two" back in the fast-paths
sentence, list <n|name> in the tui-app.ts fileoverview, and add a
codeman tui <name> line to the README and the Remote Access wiki page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
codeman tui <session> takes a list number or a session name. Digits only
stay a number; anything else matches the session name exactly
(case-sensitive, never a prefix, folder or prompt). Names are not unique,
so two live matches refuse and print their numbers; a name only a RECENT
row carries says the session has finished. The target is resolved before
the TTY check, so scripts get these answers without a terminal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The phone case sheet (#mobileCasePickerModal) is inside .app, so once
.app follows a pan it takes the same insideLift as the bars. The layout
gap on top lifted it twice (186px above the keyboard at offsetTop 100).
Comment, architecture-invariants and a test case updated.
- setHoldUntilEnter() writes the placeholder before the unchanged-mode
early return, only when the text differs, so a live language switch
shows up without touching the rest of the field.
- Settings-Reference: Shift+Enter needs a hardware keyboard.
- styles.css: the #cjkInput cap is a backstop now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found on a real Android phone (Chrome) and iPhone (Safari) with Send on Enter:
- A swipe that started on the live screen closed the keyboard: the content
touchstart blurred the focused input before the gesture was known to be a
tap or a scroll. It now skips the visible #cjkInput
(_contentTouchStartBlurs()); a real tap still closes it (inert content, a
link, a long press).
- Focusing the field scrolled the terminal off screen: KeyboardHandler's
focusin scrollIntoView({ block: 'center' }) centred the fixed field in its
ancestors. isInputElement() skips #cjkInput like xterm's inputs.
- Android pans the visual viewport to reveal the field (offsetTop 285 in a
458/744 viewport), leaving only the terminal's last line visible. On phones
.app now follows visualViewport.offsetTop while the keyboard is up, and the
fixed bars inside .app are lifted from .app's bottom, so a partial pan does
not lift them twice. Non-phone branches and resetLayout() clear the shift.
- On iOS the first keyboard open reported innerHeight as the visual height
(323 vs 640), zeroing the bars' lift; the layout height is now the larger of
innerHeight and documentElement.clientHeight.
Tests in test/keyboard-handler-pinned-field.test.ts and
test/terminal-touch-tap.test.ts; docs in architecture-invariants and
src/web/CLAUDE.md; changeset sentence.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- input-cjk.js translates its placeholder with CodemanI18n.t(), like the
prompt composer, since i18n.js skips <textarea> subtrees; the zh-CN
entries now show.
- The field only grows on touch devices, where it is position: fixed.
On a desktop it sits under the terminal, so growing would shrink the
terminal box and resize the PTY on every line; it stays one line and
scrolls there.
- Input And Voice: a line break needs a hardware keyboard (no Shift+Enter
on a phone keyboard, and the extended bar's newline key goes to the CLI).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
setHoldUntilEnter going from on to off clears the stashed drafts and
resets the field, so live mode's next flush sends only the new key, not
a held multi-line draft. The invariants doc and the _handleCjkInput
comment name _sendCjkPrompt as the path a held answer takes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clear({ discard: true }) skips the owner stash, drops any older stash of
the owner and keeps the owner; clearTerminalInput() (the keyboard bar's
clear-line key) uses it, so a cleared draft does not come back on a
same-tab reload or a switch back. @fileoverview gains a Send on Enter
section.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- CjkInput remembers which session the field's text belongs to (set by
restoreDraft) and clear() stashes a held draft under it, so the paths
that drop the active session before the next cleanup (goHome,
_replaceTileGrid, _onTileAdoptedElsewhere) keep the answer.
discardDraft() drops the owner of a removed session.
- Tile focus no longer stashes again for a tile closed from this tab.
- With a draft in the field, Ctrl shortcuts (undo, select all, copy) are
the field's; they reach the CLI only while it is empty, like Backspace
and the arrows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- selectSession restores the CJK draft after _activateFileBrowserSession,
which test/file-browser-search.test.ts pins right after the
activeSessionId assignment.
- A lone digit while the session has a pending permission_prompt or
elicitation_dialog goes out without the delayed Enter: the dialog acts
on the digit, and the Enter would confirm whatever comes next. Same
rule as the Approvals Inbox and the Discord bridge.
- Changeset mentions the toolbar Enter sending the CJK field.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
goHome() nulled activeSessionId without stashing the field, so picking the
session again cleared the draft. Stash it first.
Docs: src/web/CLAUDE.md lists cjkInputHoldUntilEnter among the per-device
keys the strict schema does not declare, and notes the sendEnterKey()
exception for the visible CJK field.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
Browsers fetch the web app manifest without cookies unless the link sets
crossorigin="use-credentials". With a password set, manifest.json needs
the codeman_session cookie, so it answered 401 and Chrome refused to
install Codeman as an app.
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>