singularity-forge/packages/pi-coding-agent/src/core
Tom Boucher a725fa2d9d fix: classify long-context entitlement 429 as quota_exhausted, not rate_limit (#2803) (#3257)
The "Extra usage is required for long context requests" error from
Anthropic is a billing gate, not a transient rate limit. Classify it as
quota_exhausted so the handler enters the fallback path instead of an
infinite backoff loop. When no cross-provider fallback exists, attempt a
[1m] to base model downgrade before stopping cleanly.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-30 13:50:36 -06:00
..
compaction feat(core): support for 'non-api-key' provider extensions like Claude Code CLI (#2382) 2026-03-24 15:50:12 -06:00
export-html refactor: remove dead code (unused exports) (#1486) 2026-03-19 15:33:32 -06:00
extensions feat: managed RTK integration with opt-in preference and web UI toggle (#2620) 2026-03-26 09:33:07 -06:00
lsp fix(memory): fix memory and resource leaks across TUI, LSP, DB, and automation (#2314) 2026-03-24 07:23:36 -06:00
tools fix(windows): prevent EINVAL by disabling detached process groups on Win32 (#2744) 2026-03-26 16:08:03 -06:00
agent-session.ts feat: add /terminal slash command for direct shell execution (#2349) 2026-03-26 09:41:37 -06:00
artifact-manager.ts feat: TTSR + blob/artifact storage (ported from oh-my-pi) 2026-03-13 08:43:56 -06:00
auth-storage.test.ts ci(test): add test:packages script and wire packages/pi-coding-agent tests into CI 2026-03-25 12:14:17 -05:00
auth-storage.ts feat: complete offline mode support (#2429) 2026-03-24 22:35:45 -06:00
bash-executor.ts fix(windows): prevent EINVAL by disabling detached process groups on Win32 (#2744) 2026-03-26 16:08:03 -06:00
blob-store.ts fix: resolve race conditions in blob-store, discovery-cache, and agent-loop 2026-03-22 22:30:44 -03:00
compaction-orchestrator.ts fix(core): address PR review feedback for non-apikey provider support (#2452) 2026-03-25 08:45:20 -06:00
constants.ts refactor: centralize magic numbers into constants.ts (#1044) 2026-03-17 18:45:43 -06:00
defaults.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
diagnostics.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
discovery-cache.test.ts test: replace shape-only assertions with value checks (#1875) 2026-03-21 15:25:10 -06:00
discovery-cache.ts fix: resolve race conditions in blob-store, discovery-cache, and agent-loop 2026-03-22 22:30:44 -03:00
event-bus.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
exec.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
fallback-resolver.test.ts feat(core): support for 'non-api-key' provider extensions like Claude Code CLI (#2382) 2026-03-24 15:50:12 -06:00
fallback-resolver.ts feat(core): support for 'non-api-key' provider extensions like Claude Code CLI (#2382) 2026-03-24 15:50:12 -06:00
footer-data-provider.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
fs-utils.test.ts refactor(test): replace try/finally with beforeEach/afterEach in packages tests (#2390) 2026-03-24 21:34:10 -06:00
fs-utils.ts fix: failure recovery & resume safeguards (all 4 waves) (#956) 2026-03-17 16:03:49 -06:00
index.ts feat: add cross-provider fallback when rate/quota limits are hit (#125) 2026-03-14 15:45:44 -05:00
keybindings.ts refactor: remove dead code (unused exports) (#1486) 2026-03-19 15:33:32 -06:00
lifecycle-hooks.test.ts fix(core): address PR review feedback for non-apikey provider support (#2452) 2026-03-25 08:45:20 -06:00
lifecycle-hooks.ts fix(core): address PR review feedback for non-apikey provider support (#2452) 2026-03-25 08:45:20 -06:00
local-model-check.ts feat: complete offline mode support (#2429) 2026-03-24 22:35:45 -06:00
lock-utils.ts refactor: extract shared file lock utilities 2026-03-19 15:16:56 -03:00
messages.ts refactor: remove dead code (unused exports) (#1486) 2026-03-19 15:33:32 -06:00
model-discovery.test.ts feat: dynamic model discovery & provider management UX (#581) 2026-03-16 06:23:18 -06:00
model-discovery.ts feat: dynamic model discovery & provider management UX (#581) 2026-03-16 06:23:18 -06:00
model-registry-auth-mode.test.ts fix(model-registry): scope custom provider stream handlers to prevent clobbering built-in API handlers 2026-03-25 22:33:48 +01:00
model-registry-discovery.test.ts feat: dynamic model discovery & provider management UX (#581) 2026-03-16 06:23:18 -06:00
model-registry.ts fix(interactive): fully remove providers from /providers (#2852) 2026-03-27 09:53:35 -06:00
model-resolver.ts feat: add anthropic-vertex provider for Claude on Vertex AI (#1533) 2026-03-19 23:14:13 -06:00
models-json-writer.test.ts feat: dynamic model discovery & provider management UX (#581) 2026-03-16 06:23:18 -06:00
models-json-writer.ts feat: dynamic model discovery & provider management UX (#581) 2026-03-16 06:23:18 -06:00
package-commands.test.ts fix(core): address PR review feedback for non-apikey provider support (#2452) 2026-03-25 08:45:20 -06:00
package-commands.ts feat(core): support for 'non-api-key' provider extensions like Claude Code CLI (#2382) 2026-03-24 15:50:12 -06:00
package-manager.ts merge: resolve conflicts with origin/main for PR #2008 2026-03-25 22:36:37 -06:00
prompt-templates.ts refactor: remove dead code (unused exports) (#1486) 2026-03-19 15:33:32 -06:00
resolve-config-value.test.ts refactor(test): replace try/finally with beforeEach/afterEach in packages tests (#2390) 2026-03-24 21:34:10 -06:00
resolve-config-value.ts refactor: centralize magic numbers into constants.ts (#1044) 2026-03-17 18:45:43 -06:00
resource-loader.ts fix: extension resource management — prune stale dirs, fix isBuiltIn, gate skills on Skill tool, suppress search warnings (#2235) 2026-03-23 09:04:01 -06:00
retry-handler.test.ts fix: classify long-context entitlement 429 as quota_exhausted, not rate_limit (#2803) (#3257) 2026-03-30 13:50:36 -06:00
retry-handler.ts fix: classify long-context entitlement 429 as quota_exhausted, not rate_limit (#2803) (#3257) 2026-03-30 13:50:36 -06:00
sdk.ts feat(agent-core): add externalToolExecution mode for external providers 2026-03-25 12:57:47 -06:00
session-manager.test.ts refactor(test): replace try/finally with beforeEach/afterEach in packages tests (#2390) 2026-03-24 21:34:10 -06:00
session-manager.ts Merge pull request #1459 from frizynn/refactor/shared-lock-utils 2026-03-19 15:51:47 -06:00
settings-manager.ts feat: add timestamps on user and assistant messages (#2368) 2026-03-24 23:18:42 -06:00
skill-tool.test.ts feat(pi): add Skill tool resolution (#1661) 2026-03-20 15:42:28 -06:00
skills.ts fix(skills): prioritize ecosystem dir and skip legacy after migration 2026-03-22 14:11:32 -04:00
slash-commands.ts feat: add /terminal slash command for direct shell execution (#2349) 2026-03-26 09:41:37 -06:00
system-prompt.ts fix: extension resource management — prune stale dirs, fix isBuiltIn, gate skills on Skill tool, suppress search warnings (#2235) 2026-03-23 09:04:01 -06:00
timings.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00