pi-mono/packages/coding-agent/src
David Brailovsky 81fd74cfc3 fix(coding-agent): run availability passes one at a time with a timeout
An awaited refresh could resolve before its availability pass saved. Passes
ran concurrently, and only the most recently started pass could save its
result; a superseded pass returned without saving and refresh() still
resolved. At startup, the awaited refresh could lose to a fire-and-forget
refresh started by an extension provider registration, so initial model
selection read a snapshot without that provider and fell back to another
provider's default. A login also cancelled any full pass that was running.

Availability passes now run one at a time. A request made while a pass is
waiting to start joins it, so a caller always gets a pass that saw its
changes. Each pass has a 10 s timeout, so a hung auth check or credential
store no longer blocks the caller forever (#7301). A failed or timed-out
provider check keeps that provider's previous state and is reported in
getError().

The snapshot drops configuredProviders and all; hasConfiguredAuth reads
the auth map.

Refs #8810, #9884
2026-09-30 09:21:44 +02:00
..
bun feat(coding-agent): codemode and MCP 2026-09-29 09:12:50 +02:00
cli refactor(coding-agent): resolve built-in extensions as builtin:<name> paths (#10159) 2026-09-29 10:51:01 +02:00
client fix(coding-agent): restore client compatibility entrypoint 2026-08-28 13:31:05 +02:00
core fix(coding-agent): run availability passes one at a time with a timeout 2026-09-30 09:21:44 +02:00
experimental feat(ai,coding-agent): add alternative sign in for the openai provider 2026-09-29 17:16:15 +02:00
extensions feat(coding-agent): report codemode classifier and nested tool usage in session cost 2026-09-29 16:21:39 +02:00
modes feat(ai,coding-agent): add alternative sign in for the openai provider 2026-09-29 17:16:15 +02:00
utils refactor(coding-agent): resolve built-in extensions as builtin:<name> paths (#10159) 2026-09-29 10:51:01 +02:00
cli.ts fix(coding-agent): keep remote harness dependencies development-only 2026-09-05 12:45:04 +02:00
config.ts feat(coding-agent): codemode and MCP 2026-09-29 09:12:50 +02:00
index.ts feat(coding-agent): codemode and MCP 2026-09-29 09:12:50 +02:00
main.ts feat(coding-agent): codemode and MCP 2026-09-29 09:12:50 +02:00
migrations.ts fix(coding-agent): update repository links to "earendil-works/pi" (#9278) 2026-09-07 14:09:39 +02:00
package-manager-cli.ts refactor(coding-agent): resolve built-in extensions as builtin:<name> paths (#10159) 2026-09-29 10:51:01 +02:00
rpc-entry.ts feat(coding-agent): set AI_AGENT environment variable (#7493) 2026-08-03 13:45:32 +02:00