diff --git a/.github/docs-sync/lib.mjs b/.github/docs-sync/lib.mjs index 67c13354d88..e1e8631ce92 100644 --- a/.github/docs-sync/lib.mjs +++ b/.github/docs-sync/lib.mjs @@ -181,9 +181,13 @@ function tailText(text, { lines = STDERR_TAIL_LINES, chars = STDERR_TAIL_CHARS } * * streamStdout:true → inherit fd 1 (edit live log); false → capture stdout * (triage parses it). stderr is always buffered. + * + * Every call runs with --auto: this bot is headless, so nobody can answer a + * permission prompt — without it the CLI auto-rejects asks (e.g. `git log`) + * and the chunk/batch burns both retries producing nothing (run 30433266378). */ export function runKilo({ args, timeoutMs, streamStdout = false, label = "kilo" }) { - const result = spawnSync("kilo", args, { + const result = spawnSync("kilo", [...args, "--auto"], { encoding: "utf8", maxBuffer: 32 * 1024 * 1024, timeout: timeoutMs, diff --git a/.github/workflows/docs-sync.yml b/.github/workflows/docs-sync.yml index 5a32e876986..ff1b62a6f53 100644 --- a/.github/workflows/docs-sync.yml +++ b/.github/workflows/docs-sync.yml @@ -175,7 +175,7 @@ jobs: run: | set -o pipefail kilo run "The docs build or tests failed. Read the attached docs-sync-out/verify.log and fix the packages/kilo-docs changes so they pass. Do not revert doc edits; fix them. Do not modify anything outside packages/kilo-docs." \ - -m "$EDIT_MODEL" --dir "$GITHUB_WORKSPACE" -f docs-sync-out/verify.log \ + -m "$EDIT_MODEL" --dir "$GITHUB_WORKSPACE" -f docs-sync-out/verify.log --auto \ | tee -a docs-sync-out/edit-log.txt { bun run --filter @kilocode/kilo-docs build && bun run --filter @kilocode/kilo-docs test; } 2>&1 | tee docs-sync-out/verify2.log