-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix(ci): docs-sync bot passes --auto, drains its backlog, and reports readable causes; fix(cli): honest exit codes for headless runs #12605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
bf90c16
fix(ci): pass --auto to the docs-sync kilo runs and keep full stderr …
iscekic 20b058b
fix(cli): exit nonzero when a headless run auto-rejects or its sessio…
iscekic b34e6ae
Merge remote-tracking branch 'origin/main' into docs-sync-cli-47f4
iscekic 090dfd0
fix(ci): redact secret env values from persisted kilo stderr logs
iscekic 0b3a4d4
fix(ci): redact secrets from persisted kilo stdout and harden redaction
iscekic 988a1d8
fix(cli): correct the headless-exit changeset's json-format claim
iscekic 88b2442
fix(ci): document --auto security trade-off and deferred hardening
kilo-code-bot[bot] 3b32193
fix(ci): raise docs-sync budgets so the backlog can actually drain
iscekic 424fdec
fix(ci): keep the docs-sync rebuild authoritative in the fix step
iscekic c1288c5
Merge branch 'main' into docs-sync-cli-47f4
iscekic 6ad62db
Merge branch 'main' into docs-sync-cli-47f4
iscekic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- | ||
| "@kilocode/cli": patch | ||
| --- | ||
|
|
||
| Non-interactive `kilo run` no longer reports success for runs that did not complete. A plain | ||
| headless run (neither `--auto` nor `--dangerously-skip-permissions`) in which the CLI | ||
| auto-rejected at least one permission ask now exits 1 with a stderr diagnostic naming the cause, | ||
| and a run whose session errors mid-stream now prints that diagnostic to stderr under | ||
| `--format json` as well (previously the JSON branch swallowed it). Runs that complete their turn | ||
| with no auto-rejected permission still exit 0. Under `--format json` the auto-reject path adds a | ||
| new `error` event to the stream; existing event shapes are unchanged. The same exit-1 rule applies | ||
| to a plain non-interactive `--attach` run that auto-rejects an ask (that run was equally crippled); | ||
| interactive mode is untouched. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| // kilocode_change - new file | ||
|
|
||
| /** | ||
| * Line-wise stdin→stdout filter that redacts secret-looking env values. | ||
| * Used in the docs-sync workflow so kilo stdout piped to edit-log.txt is safe. | ||
| * Env values contain no newlines, so line-wise processing never splits a value. | ||
| */ | ||
|
|
||
| import { redactEnvSecrets } from "./lib.mjs" | ||
|
|
||
| let carry = "" | ||
|
|
||
| process.stdin.setEncoding("utf8") | ||
| process.stdin.on("data", (chunk) => { | ||
| carry += chunk | ||
| let idx | ||
| while ((idx = carry.indexOf("\n")) !== -1) { | ||
| const line = carry.slice(0, idx + 1) | ||
| carry = carry.slice(idx + 1) | ||
| process.stdout.write(redactEnvSecrets(line)) | ||
| } | ||
| }) | ||
| process.stdin.on("end", () => { | ||
| if (carry.length > 0) process.stdout.write(redactEnvSecrets(carry)) | ||
| }) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.