openclaw-vainplex/src/agents/pi-embedded-runner
Mykyta Bozhenko 448394a0de fix(agent): Enable model fallback for prompt-phase quota/rate limit errors
When a prompt submission fails with quota or rate limit errors, throw
FailoverError instead of the raw promptError. This enables the model
fallback system to try alternative models.

Previously, rate limit errors during the prompt phase (before streaming)
were thrown directly, bypassing fallback. Only response-phase errors
triggered model fallback.

Now checks if fallback models are configured and the error is failover-
eligible. If so, wraps in FailoverError to trigger the fallback chain.
2026-01-18 01:29:48 +00:00
..
run fix: format verbose tool output by channel 2026-01-17 10:17:57 +00:00
abort.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
compact.ts feat: scope telegram inline buttons 2026-01-16 20:16:41 +00:00
extensions.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
extra-params.ts fix: align ZAI thinking toggles 2026-01-16 22:26:43 +00:00
google.test.ts fix(google): scrub tool schemas for gemini 2026-01-16 06:57:54 +00:00
google.ts chore: run format and fix sandbox browser timeouts 2026-01-16 09:18:58 +00:00
history.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
lanes.ts refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00
logger.ts refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00
model.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
run.ts fix(agent): Enable model fallback for prompt-phase quota/rate limit errors 2026-01-18 01:29:48 +00:00
runs.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
sandbox-info.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
session-manager-cache.ts refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00
session-manager-init.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
system-prompt.ts feat: refine subagents + add chat.inject 2026-01-15 23:44:31 +00:00
tool-split.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
types.ts fix: reset sessions after role ordering conflicts 2026-01-16 09:04:04 +00:00
utils.ts feat: notify on exec exit 2026-01-17 05:43:34 +00:00