Skip to content

fix(windows): prevent credential reads from stalling subagents (v0.15.22) - #50

Merged
ImPedro29 merged 1 commit into
mainfrom
fix/windows-credential-startup
Sep 9, 2026
Merged

fix(windows): prevent credential reads from stalling subagents (v0.15.22)#50
ImPedro29 merged 1 commit into
mainfrom
fix/windows-credential-startup

Conversation

@ImPedro29

@ImPedro29 ImPedro29 commented Sep 9, 2026

Copy link
Copy Markdown

Windows startup and agent creation repeatedly launched PowerShell to read credentials, including when no DPAPI file existed. A slow native read could block terminal progress long enough to fail the release gate.

Check the encrypted file directly and decrypt an unchanged record once per process. Each read compares the encrypted contents, configuration path and entropy, so another process's refresh/logout invalidates the cache immediately. Classified reads bypass it, mutations invalidate it, and callers receive independent data objects. Permission errors remain distinct from missing credentials. PowerShell consumes the exact encrypted snapshot over UTF-8 stdin and writes UTF-8 output.

Validation adds 13 cache/failure regression tests and five real Windows DPAPI checks on Node 22 and 24, including Unicode data and cross-process refresh/logout. All 20 CI checks pass at ee8017d, including the 198 installed CLI scenarios, real Windows DPAPI checks, complete isolated suite, security checks and four native desktop packages. Local validation also passes: 3,060 tests across 336 files and CLI/SDK builds.

Version: 0.15.22. Candidate 0.15.21 was not distributed by npm, Docker or desktop; its tag is preserved and its GitHub release is marked as a prerelease after the release gate failed.

@ImPedro29
ImPedro29 merged commit 36793b0 into main Sep 9, 2026
21 checks passed
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