Commit c51f689
committed
debug-busybox: pass Copilot prompt via @file to avoid Windows
8 KB argv limit
The first run at
https://github.com/git-for-windows/MINGW-packages/actions/runs/26983788763/job/79628887416
hit "The command line is too long." instantly when invoking
copilot.cmd because the rendered prompt is ~15 KB and the
copilot.cmd npm shim funnels its non-interactive prompt through
cmd.exe, whose per-command limit is around 8 KB on Windows. The
shim turned the prompt into a single argv string and CreateProcess
refused before Copilot ever started.
Copilot CLI's @path syntax dereferences a file at prompt-evaluation
time and inlines its contents as context rather than transporting
them over argv, so a short literal "Follow the instructions in
@copilot-prompt.md exactly." crosses the cmd.exe boundary cleanly
and the actual instructions go in through the same channel Copilot
already uses for codebase context. This works identically on
Linux and macOS where the limit would not have hit, so no
per-platform branching is needed.
The substitution from envsubst (the previous step that produces
copilot-prompt.md from the template) is preserved unchanged; only
the way Copilot ingests that rendered file is different.
Assisted-by: Opus 4.7
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent 1b56721 commit c51f689
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
122 | 127 | | |
123 | 128 | | |
124 | 129 | | |
| |||
0 commit comments