pi-mono/packages/coding-agent/test/suite/regressions
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
..
1717-2113-agent-session-event-settlement.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
2023-queued-slash-command-followup.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
2753-reload-stale-resource-settings.test.ts feat(coding-agent): replace model registry with model runtime 2026-07-14 17:48:45 +02:00
2781-skill-collision-precedence.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
2791-fswatch-error-crash.test.ts fix(coding-agent): update repository links to "earendil-works/pi" (#9278) 2026-09-07 14:09:39 +02:00
2835-tools-allowlist-filters-extension-tools.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
2860-replaced-session-context.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
3217-scoped-model-order.test.ts feat(coding-agent): adjust TUI selections in thinking-mode, models and scoped models (#8900) 2026-09-01 11:02:53 +02:00
3302-find-path-glob.test.ts fix(coding-agent): update repository links to "earendil-works/pi" (#9278) 2026-09-07 14:09:39 +02:00
3303-find-nested-gitignore.test.ts fix(coding-agent): update repository links to "earendil-works/pi" (#9278) 2026-09-07 14:09:39 +02:00
3317-network-connection-lost-retry.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
3592-no-builtin-tools-keeps-extension-tools.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
3616-settings-inmemory-reload.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
3686-session-name-event.test.ts fix(coding-agent): emit session name changes to extensions 2026-06-30 00:40:15 -05:00
3688-tree-cancel-compacting.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
3982-message-end-cost-override.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
4167-thinking-toggle-pending-tool-render.test.ts fix: repair Baseten and coding-agent test checks 2026-09-03 11:40:37 +02:00
5080-signal-shutdown-extension-cleanup.test.ts feat(coding-agent): add automatic theme mode (#5874) 2026-06-18 17:13:47 +02:00
5109-exclude-tools.test.ts feat(coding-agent): add exclude tools option closes #5109 2026-05-28 23:49:18 +02:00
5208-late-bash-output.test.ts fix: drain stdout before resolving when a child holds the pipe past exit (#5753) 2026-06-15 09:55:45 +02:00
5217-compaction-reason.test.ts feat(coding-agent): add compaction reason and willRetry to extension compact events (#5962) 2026-06-22 10:36:16 +02:00
5303-bash-output-truncation.test.ts fix(coding-agent): make child output test deterministic 2026-08-01 21:26:55 +03:00
5433-extension-oauth-prompt-input.test.ts feat(coding-agent): merge origin/main into model runtime facade 2026-07-15 12:25:36 +02:00
5596-missing-theme-export.test.ts fix(agent): restore streamFn extension compatibility 2026-07-21 18:37:07 +02:00
5661-uppercase-header-values.test.ts feat(coding-agent): replace model registry with model runtime 2026-07-14 17:48:45 +02:00
5724-sigterm-signal-exit.test.ts feat(coding-agent): add automatic theme mode (#5874) 2026-06-18 17:13:47 +02:00
5868-rpc-unknown-command-id.test.ts fix(coding-agent): include RPC request id on unknown commands 2026-06-18 10:44:59 +02:00
5943-session-start-notify.test.ts feat(coding-agent): codemode and MCP 2026-09-29 09:12:50 +02:00
5996-session-name-newlines.test.ts fix(coding-agent): normalize session names 2026-06-23 19:14:02 +08:00
5998-blocked-tool-terminate.test.ts feat(agent): allow blocked tool calls to terminate (#7715) 2026-08-06 17:14:48 +02:00
6019-explicit-provider-retry-message.test.ts fix(coding-agent): retry explicit provider retry errors 2026-06-24 18:14:06 +02:00
6104-find-root-relativization.test.ts fix(coding-agent): normalize find root results (#7569) 2026-08-04 00:05:48 +02:00
6162-extension-active-tools-next-turn.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
6260-inline-extension-naming.test.ts feat(coding-agent): add llama.cpp router integration 2026-07-17 16:25:00 +02:00
6324-branch-summary-ambient-auth.test.ts fix(agent): decouple agent streams from compat 2026-07-20 17:54:36 +02:00
6363-agent-settled-event.test.ts fix(coding-agent): add settled agent lifecycle event 2026-07-09 12:42:08 +02:00
6596-taskkill-enoent.test.ts fix(coding-agent): prevent Windows taskkill spawn crashes 2026-08-26 10:33:45 +02:00
6647-compaction-retries-transient-stream-drop.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
6768-copilot-compaction-base-url.test.ts fix(coding-agent): preserve Copilot summary endpoint 2026-08-04 11:00:30 +02:00
6904-dns-transport-retry.test.ts fix(ai): retry DNS transport failures (#6946) 2026-07-22 11:26:19 +02:00
6949-unavailable-scoped-model.test.ts feat(coding-agent): adjust TUI selections in thinking-mode, models and scoped models (#8900) 2026-09-01 11:02:53 +02:00
6999-models-json-hot-reload.test.ts fix(coding-agent): keep model and thinking level changes session scoped (#8356) 2026-08-19 16:48:29 +02:00
7027-credential-refresh-hang.test.ts fix(coding-agent): select Radius models after catalog discovery 2026-09-06 00:30:17 +02:00
7048-compaction-truncated-summary.test.ts fix(coding-agent): reject truncated compaction summaries closes #7048 2026-08-24 13:08:30 +02:00
7150-rpc-prompt-during-compaction.test.ts feat(coding-agent): report prompt disposition in RPC responses 2026-09-25 14:53:11 +02:00
7153-scoped-models-refresh.test.ts fix(coding-agent): share concurrent model catalog refreshes 2026-08-13 09:43:36 +02:00
7187-malformed-package-manifest.test.ts fix(coding-agent): validate package manifests 2026-07-30 22:43:22 +02:00
7193-event-bus-lifecycle.test.ts event bus leak fix (#7656) 2026-08-05 22:23:44 +02:00
7209-model-selector-filter-resets-selection.test.ts feat(coding-agent): adjust TUI selections in thinking-mode, models and scoped models (#8900) 2026-09-01 11:02:53 +02:00
7253-manual-compact-during-response.test.ts fix(coding-agent): compact before post-tool model requests (#8782) 2026-08-28 13:40:59 +02:00
7269-cli-end-of-options.test.ts fix(coding-agent): support -- end-of-options, closes #7269 2026-08-22 23:16:40 +02:00
7290-json-stream-linear.test.ts fix(coding-agent): make JSON streaming output linear (#7394) 2026-08-03 18:33:22 +02:00
7301-stalled-availability-refresh.test.ts fix(coding-agent): run availability passes one at a time with a timeout 2026-09-30 09:21:44 +02:00
7443-model-command-cached-match.test.ts fix(coding-agent): make model refresh cancellation caller-owned 2026-08-04 00:03:52 +02:00
7497-session-discovery-symlink.test.ts fix(coding-agent): discover sessions through symlinked directories (#7552) 2026-08-03 18:34:12 +02:00
7572-provider-retry-settings-merge.test.ts fix(coding-agent): recursively merge nested settings, closes #7572 2026-08-04 13:04:02 +02:00
7731-tui-method-wrapping.test.ts fix(coding-agent): preserve TUI wrapper routing (closes #7731) 2026-08-07 00:40:44 +02:00
7829-invalid-settings-warning.test.ts fix(coding-agent): show startup diagnostics in TUI 2026-08-19 13:07:57 +02:00
7911-json-stream-usage.test.ts fix(coding-agent): preserve usage in streaming events (#7982) 2026-08-13 00:32:26 +03:00
7925-toolcall-start-metadata.test.ts fix(coding-agent): expose tool metadata at stream start (#7953) 2026-08-19 12:24:30 +02:00
8237-node-sea-extension-loading.test.ts feat(coding-agent): defer extension loader dependencies 2026-09-19 23:25:47 +02:00
8261-subagent-project-trust.test.ts fix(coding-agent): skip trusted subagent prompts 2026-08-18 09:26:07 +02:00
8328-zero-usage-auto-compaction.test.ts fix(coding-agent): compact without provider usage 2026-08-19 13:44:22 +02:00
8337-utf8-bom-parsing.test.ts fix(coding-agent): normalize UTF-8 BOMs in text inputs 2026-08-19 14:11:02 +02:00
8423-extension-factory-failure.test.ts fix(coding-agent): discard failed extension factory state (#8424) 2026-08-23 12:39:42 +02:00
8537-custom-message-tool-result-ordering.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
8611-thinking-toggle-pending-bash-output.test.ts fix(coding-agent): preserve partial Bash output when toggling thinking 2026-08-26 14:27:21 +02:00
8724-in-memory-fork-active-tool.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
8935-parallel-preflight-abort.test.ts fix(agent): stop prepared tools after preflight abort (#8936) 2026-09-01 11:00:51 +02:00
8964-extension-provider-streaming.test.ts fix(coding-agent): allow extensions to stream from custom providers (#9272) 2026-09-07 12:16:12 +02:00
8989-fork-compaction-label-boundary.test.ts fix(coding-agent): preserve compaction boundary when forking (#8990) 2026-09-03 10:47:40 +02:00
9068-user-bash-fail-closed.test.ts fix(coding-agent): fail closed on user bash hook errors (#9662) 2026-09-16 17:21:17 +01:00
9178-tree-during-compaction.test.ts fix(coding-agent): reject tree navigation during compaction (#9179) 2026-09-07 10:32:10 +02:00
9340-9777-auto-compaction-cancellation.test.ts fix(coding-agent): close compaction cancellation races 2026-09-19 19:18:18 +02:00
9540-extension-loader-lazy.test.ts feat(coding-agent): defer extension loader dependencies 2026-09-19 23:25:47 +02:00
9789-context-handler-system-messages.test.ts fix(coding-agent): keep prompt and tool state across context handlers (#9846) 2026-09-21 17:14:22 +02:00
extension-factory-cache.test.ts fix(coding-agent): cache extension imports for session switches 2026-06-20 21:07:45 +02:00
pre-prompt-compaction-no-continue.test.ts fix(coding-agent): avoid pre-prompt compaction continue 2026-06-25 21:43:03 +08:00
startup-session-rebind-duplicate-subscription.test.ts fix(coding-agent): prevent duplicate messages on startup session switch (#7110) 2026-07-27 11:59:27 +02:00
tree-during-streaming.test.ts ***WIP it's a PoC *** fix(coding-agent): guard tree navigation during responses (#7022) 2026-07-28 14:46:30 +02:00