Skip to content

chore(deps): apply open Dependabot bumps - #154

Merged
mrnasil merged 1 commit into
mainfrom
chore/dependabot-bumps
Oct 10, 2026
Merged

mrnasil merged 1 commit into
mainfrom
chore/dependabot-bumps

Conversation

@mrnasil

@mrnasil mrnasil commented Oct 10, 2026

Copy link
Copy Markdown
Member

Summary

Test plan

  • cargo check -p whycodes-cli --locked
  • CI green

🤖 Generated with Claude Code

Take rust-minor (tokio 1.53.2, thiserror 2.0.21, uuid 1.27.0, libc 0.2.190, tract-onnx 0.23.8) and @types/node 26.6.4 so PRs 149 and 150 can close.
@mrnasil
mrnasil merged commit 56facdf into main Oct 10, 2026
18 of 21 checks passed
@mrnasil
mrnasil deleted the chore/dependabot-bumps branch October 10, 2026 15:35
mrnasil added a commit that referenced this pull request Oct 11, 2026
…ck (#162)

* fix: three flaky or hanging tests, two of them real bugs

1. config: write_atomic removed the destination before the rename.
   Two parallel saves raced on that remove (NotFound, flaky in Coverage
   on #161), and a crash between remove and rename left no config.toml.
   rename replaces atomically on Unix and Windows (MOVEFILE_REPLACE_
   EXISTING), so it is now rename-only with the one retry. Parallel-save
   test: 30/30 on Linux, 15/15 on Windows.

2. agent: StdinPrompter / StdinQuestionPrompter read the process stdin
   inside the async ask. The read blocks the runtime thread, so the
   tests' 2 s timeout could not cancel it; with stdin left open (a
   terminal or a pipe) the tests never ended and other tests queued on
   the stdin lock — `cargo test -p whycodes-agent` hung. The prompters
   take an AnswerInput (default: locked process stdin); tests pass an
   empty reader and still go through `ask`. With stdin held open: 3/3
   runs in 32 s, was hung on the first.

3. agent: rate_limit_retries_same_model_on_next_credential and
   failover_api_key_walks_named_credentials both set and restore the
   credential env vars; run in parallel, one restored the other's vars
   mid-turn and the 429 failover found no second key (flaky in
   Coverage on #154 and #161). Both now hold CREDENTIAL_ENV_LOCK.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(config): keep write_atomic's retry on the line floor

Rename-only saves no longer lose a remove race, so tests never took the
'first rename failed, retry succeeded' arm and config fell to 2406/2407.
The same logic as two always-run lines: let-else on the first rename,
map_err on the retry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant