From 7abfe6dc20dda2a6a59b9aaa6c83fdb3d30e9872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20=C5=A0=C4=87eki=C4=87?= Date: Wed, 29 Jul 2026 16:21:13 +0200 Subject: [PATCH] fix(ci): run docs-sync kilo sessions with --auto so tools stop getting auto-rejected Headless kilo run auto-rejects every permission ask (e.g. git log), so triage chunks burned both retries and produced nothing (run 30433266378). Pass --auto in the shared runKilo helper and the verify-fix step. --- .github/docs-sync/lib.mjs | 6 +++++- .github/workflows/docs-sync.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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