mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-18 20:29:33 +01:00
docs: sendwait takes one line; give the submit-check reason in tui.md
verbs.md section 5.3 (both copies): sendwait's Enter loop and the server's submit check cannot reliably recognise a multi-line paste, so join the lines or use a file (section 5.9). docs/tui.md gives the same reason instead of the composer one. Co-Authored-By: Christian Haberl <116439789+christianhaberl@users.noreply.github.com> Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
157752b4f0
commit
302e2660be
3 files changed
+13
-5
No files matched your search
+3
-3
@@ -136,9 +136,9 @@ instead of failing silently; `Enter` and `1-9` keep working.
|
||||
|
||||
### `p` sends exactly one line
|
||||
|
||||
The composer is a single line by design, ending in a carriage return: that is the
|
||||
input contract every Codeman path follows, because multi-line text breaks the
|
||||
agent's own composer. Pasted newlines become spaces rather than being rejected, so
|
||||
The composer is a single line by design, ending in a carriage return, because the
|
||||
server's submit check cannot reliably recognise a multi-line paste: a prompt it cannot
|
||||
see on the composer line is not re-submitted when the agent ignored the first Enter. Pasted newlines become spaces rather than being rejected, so
|
||||
a paste cannot silently run a different command than the one you read.
|
||||
|
||||
## Answering approvals
|
||||
|
||||
@@ -304,7 +304,11 @@ Codeman types the text and sends Enter **only when the input contains a carriage
|
||||
return**; without it your command sits unsubmitted on the worker's prompt and
|
||||
everything downstream times out. No response field catches this: `delivered:true`
|
||||
means "written to the pane", **not** "submitted". With `useMux`, newlines are kept: the
|
||||
text goes in as one paste, and the `\r` submits all of it. Build the body with `jq -n`
|
||||
text goes in as one paste, and the `\r` submits all of it. **`sendwait` takes one line,
|
||||
though:** its Enter loop and the server's submit check cannot reliably recognise a
|
||||
multi-line paste, so a multi-line prompt to a freshly spawned worker can sit unsent in
|
||||
Claude Code's Enter-ignore window. Join the lines, or put long multi-line content in a
|
||||
file ([§5.9](#59-big-input-via-the-workspace)). Build the body with `jq -n`
|
||||
for any prompt you did not author as a literal, because the inline
|
||||
`-d '{"input":"'"$P"'\r"}'` pattern breaks on the first double quote, backslash or `$`
|
||||
in a real prompt:
|
||||
|
||||
@@ -304,7 +304,11 @@ Codeman types the text and sends Enter **only when the input contains a carriage
|
||||
return**; without it your command sits unsubmitted on the worker's prompt and
|
||||
everything downstream times out. No response field catches this: `delivered:true`
|
||||
means "written to the pane", **not** "submitted". With `useMux`, newlines are kept: the
|
||||
text goes in as one paste, and the `\r` submits all of it. Build the body with `jq -n`
|
||||
text goes in as one paste, and the `\r` submits all of it. **`sendwait` takes one line,
|
||||
though:** its Enter loop and the server's submit check cannot reliably recognise a
|
||||
multi-line paste, so a multi-line prompt to a freshly spawned worker can sit unsent in
|
||||
Claude Code's Enter-ignore window. Join the lines, or put long multi-line content in a
|
||||
file ([§5.9](#59-big-input-via-the-workspace)). Build the body with `jq -n`
|
||||
for any prompt you did not author as a literal, because the inline
|
||||
`-d '{"input":"'"$P"'\r"}'` pattern breaks on the first double quote, backslash or `$`
|
||||
in a real prompt:
|
||||
|
||||
Reference in new issue
Block a user