CatJuly
18ddc18948
fix(adapter): route multiline prompts over stdin on Windows .cmd shims
...
On Windows, an npm-installed `claude` resolves to a .cmd shim, so
_resolve_launch_command wraps it in `cmd.exe /d /s /c ...`. cmd.exe treats a
newline inside an argument as end-of-command, silently truncating a multiline
prompt at the first line break -- the agent received only the "## Task Brief"
heading and replied that no task was included.
Detect this case in _interactive_prompt_transport and deliver the prompt over
the existing stdin channel instead. The guard requires all three of: nt
platform, a newline in the prompt, and a command that resolves to .cmd/.bat.
It reuses _resolve_windows_command_shim so the check matches the same
resolution logic that decides whether cmd.exe wrapping happens.
Also records prompt_transport_reason in the stdin metadata to distinguish this
trigger from the pre-existing oversized-prompt path.
Verified against the real claude CLI: transport flips to stdin and the CLI
confirms all prompt lines arrive intact.
2026-07-31 19:47:41 +08:00
..
2026-07-26 22:14:47 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-14 14:35:43 +08:00
2026-07-14 20:31:10 +08:00
2026-07-07 22:19:22 +08:00
2026-07-28 10:55:55 +08:00
2026-07-01 17:56:31 +08:00
2026-07-28 17:03:40 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-13 23:02:39 +08:00
2026-07-31 16:17:54 +08:00
2026-07-28 10:55:43 +08:00
2026-07-28 10:55:31 +08:00
2026-07-26 22:14:47 +08:00
2026-07-01 17:56:31 +08:00
2026-07-26 22:14:47 +08:00
2026-07-29 00:36:53 +08:00
2026-07-01 17:56:31 +08:00
2026-07-07 22:33:39 +08:00
2026-07-28 17:03:40 +08:00
2026-07-26 22:14:47 +08:00
2026-07-01 17:56:31 +08:00
2026-07-14 20:31:10 +08:00
2026-07-14 16:59:24 +08:00
2026-07-28 17:03:40 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-14 16:59:24 +08:00
2026-07-26 22:14:47 +08:00
2026-07-01 17:56:31 +08:00
2026-07-14 14:35:43 +08:00
2026-07-31 19:47:41 +08:00
2026-07-01 17:56:31 +08:00
2026-07-21 15:40:27 +08:00
2026-07-26 22:14:47 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-31 19:10:32 +08:00
2026-07-01 17:56:31 +08:00
2026-07-04 17:53:12 +08:00
2026-07-31 16:17:54 +08:00
2026-07-03 10:14:16 +08:00
2026-07-26 22:14:47 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-26 22:14:47 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-26 22:14:47 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-14 14:35:43 +08:00
2026-07-01 17:56:31 +08:00
2026-07-26 22:14:47 +08:00
2026-07-14 14:35:43 +08:00
2026-07-14 10:52:22 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-28 17:03:40 +08:00
2026-07-01 17:56:31 +08:00
2026-07-07 22:59:53 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-14 10:52:22 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-26 22:14:47 +08:00
2026-07-28 17:03:40 +08:00
2026-07-01 17:56:31 +08:00
2026-07-27 00:04:42 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-08 18:43:27 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-29 00:36:53 +08:00
2026-07-26 22:14:47 +08:00
2026-07-14 14:35:43 +08:00
2026-07-14 10:52:22 +08:00
2026-07-08 18:43:27 +08:00
2026-07-07 22:38:33 +08:00
2026-07-28 17:03:40 +08:00
2026-07-03 10:14:16 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-08 21:06:39 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-14 20:31:10 +08:00
2026-07-01 17:56:31 +08:00
2026-07-16 09:20:40 +08:00
2026-07-14 14:35:43 +08:00
2026-07-01 17:56:31 +08:00
2026-07-14 14:35:43 +08:00
2026-07-01 17:56:31 +08:00
2026-07-01 17:56:31 +08:00
2026-07-26 22:14:47 +08:00
2026-07-01 17:56:31 +08:00
2026-07-31 19:47:41 +08:00
2026-07-01 17:56:31 +08:00
2026-07-09 20:46:14 +08:00