• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lsm / HyperNeo / 30774274204

03 Aug 2026 12:20AM UTC coverage: 83.227%. First build
30774274204

push

github

web-flow
Wire global model fallback chain on rate/usage limits + reset-aware cooldown (#2271)

* feat(agent): engage fallback model chain and reset-aware cooldown on 429

Sessions hitting rate/usage caps (e.g. third-party relay 429 with a reset
timestamp) never recovered: the watchdog retried the same model at a fixed
10min x3 then gave up, and GlobalSettings.fallbackModels/modelFallbackMap had
no runtime consumers.

- New pure fallback-recovery module: chain resolution (map override vs global),
  next-entry selection (skip tried / same-model / unavailable), format-agnostic
  reset-timestamp extraction (ISO-8601, YYYY-MM-DD HH:mm:ss incl. the Chinese
  relay shape, epoch s/ms), and a backoff ladder (10m->4h, cap 8h) with jitter.
- RateLimitWatchdog drives two-phase recovery: (A) immediate fallback-model
  switch via injected deps (free, tracked per-episode), then (B) a cooldown at
  the parsed reset time or on the backoff ladder. Reset-known waits don't count
  toward maxAutoRetries.
- AgentSession wires the watchdog to settings (chain), the provider registry
  (availability), model-switch (switch+retry after the failed query's finally),
  and the internal event bus (pause/resume).
- Add session.rate_limit_pause / session.rate_limit_resume events.

* feat(space): surface rate_limited/usage_limited task status with auto-resume

With the fallback chain wired (previous commit), a 429 no longer fails a Space
worker task — the error broadcast is skipped so the session recovers or waits.
This commit adds the visible status: when a worker session pauses on a cap with
no fallback left, mark its task rate_limited / usage_limited with a resume-at
restriction, and restore it to in_progress when the limit lifts.

- Migration 163 widens space_tasks.status CHECK (rate_limited, usage_limited)
  and adds a nullable restrictions column; test-DB helper kept in parity.
- SpaceTaskStatus + SpaceTask.restrictions (TaskRestriction) in shared types;
  repo reads/writes the JSON blob... (continued)

12285 of 17501 branches covered (70.2%)

Branch coverage included in aggregate %.

733 of 1110 new or added lines in 19 files covered. (66.04%)

105331 of 123819 relevant lines covered (85.07%)

296.47 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

97.33
/packages/daemon/src/lib/space/runtime/workflow-node-execution-validation.ts


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc