NOXX - Commiter
2d48bb6dca
fix(hyperagent): default 1M context for fable/opus/sonnet ( #8496 )
...
* fix(hyperagent): default 1M context for fable/opus/sonnet
HyperAgent Claude-family models (fable, opus, sonnet) were falling through
getTokenLimit to the generic 128k default. Agentic tool-loop prompts with
large catalogs then failed with context_length_exceeded (~137k tokens).
- defaultContextLength + per-model contextLength = 1_000_000 on hyperagent registry
- DEFAULT_LIMITS.hyperagent / ha = 1M
- Resolve hyperagent/ha (and fable/opus wire ids) before models.dev DB fallback
Verified: getTokenLimit('hyperagent','fable-latest') === 1000000; context-manager tests 30/30.
* fix(sse): scope hyperagent 1M context fix to the registry, drop unscoped model-name match
The step-1b branch in resolveTokenLimit() matched fable/opus/sonnet model
name substrings for ANY provider, before the models.dev DB lookup. That
collided with anthropic/claude, kiro, windsurf and bluesminds registries,
which serve the same Claude model ids (e.g. claude-opus-4.7-max,
claude-sonnet-5) with their own accurate per-model contextLength — those
were being clobbered to 1M instead of their real (often 200k) limit.
The registry-level defaultContextLength added on the hyperagent provider
entry already fixes the reported bug (getTokenLimit('hyperagent', ...) ===
1_000_000) on its own, scoped correctly by provider. Remove the redundant,
unscoped substring branch and add regression coverage for every hyperagent
fallback model id plus the cross-provider collision.
Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com >
---------
Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com >
2026-07-26 03:53:06 -03:00
..
2026-07-20 17:53:04 -03:00
2026-07-24 20:36:44 -03:00
2026-07-24 09:57:08 -03:00
2026-07-26 03:52:31 -03:00
2026-07-24 20:37:37 -03:00
2026-07-21 21:42:36 -03:00
2026-07-18 03:07:20 -03:00
2026-06-29 08:40:06 -03:00
2026-07-26 03:52:27 -03:00
2026-07-26 03:52:19 -03:00
2026-07-24 20:36:44 -03:00
2026-03-05 08:41:44 -03:00
2026-05-01 12:37:09 -03:00
2026-07-22 12:25:38 -03:00
2026-07-22 08:12:07 -03:00
2026-07-18 03:17:09 -03:00
2026-07-18 21:18:34 -03:00
2026-07-02 10:47:13 -03:00
2026-07-22 20:41:19 -03:00
2026-07-22 20:41:19 -03:00
2026-07-22 20:41:19 -03:00
2026-06-29 08:40:06 -03:00
2026-07-22 20:41:19 -03:00
2026-07-22 20:41:19 -03:00
2026-07-26 03:52:54 -03:00
2026-07-19 14:46:33 -03:00
2026-07-22 20:41:19 -03:00
2026-06-29 16:51:03 -03:00
2026-06-29 08:40:06 -03:00
2026-07-02 10:47:13 -03:00
2026-07-13 09:12:40 -03:00
2026-07-21 11:50:14 -03:00
2026-05-26 23:51:47 -03:00
2026-07-19 02:31:26 -03:00
2026-07-23 05:24:22 -03:00
2026-07-25 02:52:55 -03:00
2026-07-20 15:56:40 -03:00
2026-07-06 02:25:17 -03:00
2026-05-29 13:21:36 -03:00
2026-06-30 06:54:29 -03:00
2026-07-25 02:52:55 -03:00
2026-04-13 14:43:32 -03:00
2026-07-25 02:52:55 -03:00
2026-06-16 01:00:40 -03:00
2026-06-27 09:07:12 -03:00
2026-06-13 17:27:40 -03:00
2026-04-19 19:50:30 -03:00
2026-04-12 22:41:12 -03:00
2026-06-17 19:26:32 -03:00
2026-07-13 09:12:40 -03:00
2026-06-25 13:17:40 -03:00
2026-07-25 02:52:55 -03:00
2026-07-19 02:31:26 -03:00
2026-06-25 13:17:40 -03:00
2026-05-15 12:51:07 -03:00
2026-07-21 12:19:01 -03:00
2026-05-02 00:48:54 -03:00
2026-06-29 08:40:06 -03:00
2026-05-23 01:46:59 -03:00
2026-07-04 13:00:30 -03:00
2026-07-22 17:37:46 -03:00
2026-07-04 13:00:30 -03:00
2026-07-26 03:52:38 -03:00
2026-07-24 09:36:00 -03:00
2026-07-26 03:51:38 -03:00
2026-05-10 00:55:06 -03:00
2026-06-23 03:08:29 -03:00
2026-05-29 12:44:29 -03:00
2026-07-26 03:53:06 -03:00
2026-05-24 18:05:58 -03:00
2026-07-13 09:12:40 -03:00
2026-06-03 18:24:41 -03:00
2026-07-13 09:12:40 -03:00
2026-07-19 20:52:54 -03:00
2026-07-04 13:00:30 -03:00
2026-06-13 17:27:40 -03:00
2026-07-24 09:36:08 -03:00
2026-05-26 23:51:47 -03:00
2026-07-18 03:17:09 -03:00
2026-06-29 08:40:06 -03:00
2026-07-17 10:40:33 -03:00
2026-07-23 05:17:35 -03:00
2026-05-29 13:21:36 -03:00
2026-07-13 09:12:40 -03:00
2026-04-11 09:38:17 -03:00
2026-07-25 02:52:55 -03:00
2026-07-17 10:43:37 -03:00
2026-07-23 01:33:32 -03:00
2026-07-20 15:57:29 -03:00
2026-07-20 15:57:29 -03:00
2026-07-23 08:47:49 -03:00
2026-07-02 10:47:13 -03:00
2026-07-04 13:00:30 -03:00
2026-07-19 02:31:26 -03:00
2026-07-26 03:53:06 -03:00
2026-06-06 19:13:11 -03:00
2026-05-23 01:46:59 -03:00
2026-07-04 13:00:30 -03:00
2026-05-24 18:05:58 -03:00
2026-07-13 09:12:40 -03:00
2026-07-13 09:12:40 -03:00
2026-07-13 09:12:40 -03:00
2026-07-13 09:12:40 -03:00
2026-05-10 00:55:06 -03:00
2026-06-19 06:49:01 -03:00
2026-07-22 20:41:19 -03:00
2026-04-12 10:34:10 -03:00
2026-07-02 10:47:13 -03:00
2026-07-25 02:52:55 -03:00
2026-05-29 12:44:29 -03:00
2026-04-22 01:39:49 -03:00
2026-07-23 12:17:58 -03:00
2026-07-22 08:13:47 -03:00
2026-07-23 12:17:58 -03:00
2026-07-22 06:59:24 -03:00
2026-07-20 15:57:15 -03:00
2026-07-20 15:57:15 -03:00
2026-07-14 21:45:23 -03:00
2026-07-13 09:12:40 -03:00
2026-07-20 22:26:13 -03:00
2026-07-18 03:11:01 -03:00
2026-07-18 03:11:01 -03:00
2026-06-29 08:40:06 -03:00
2026-06-13 17:27:40 -03:00
2026-07-19 20:53:01 -03:00
2026-07-21 21:25:00 -03:00
2026-07-18 22:09:43 -03:00
2026-06-23 03:08:29 -03:00
2026-07-25 02:52:55 -03:00
2026-07-19 14:37:18 -03:00
2026-05-10 00:55:06 -03:00
2026-06-07 07:20:02 -03:00
2026-07-20 18:48:16 -03:00
2026-07-07 13:14:06 -03:00
2026-07-04 13:00:30 -03:00
2026-05-29 13:21:36 -03:00
2026-07-04 13:00:30 -03:00
2026-07-13 09:12:40 -03:00
2026-07-14 21:45:20 -03:00
2026-07-20 15:57:29 -03:00
2026-04-13 13:11:30 -03:00
2026-07-23 05:17:35 -03:00
2026-06-21 08:56:51 -03:00
2026-07-19 20:52:46 -03:00
2026-07-13 09:12:40 -03:00
2026-07-20 17:53:04 -03:00
2026-05-29 13:21:36 -03:00
2026-07-13 09:12:40 -03:00
2026-07-22 11:28:16 -03:00
2026-07-21 09:15:27 -03:00
2026-07-02 10:47:13 -03:00
2026-07-13 09:12:40 -03:00
2026-05-29 13:21:36 -03:00
2026-06-04 20:05:38 -03:00
2026-05-29 13:21:36 -03:00
2026-06-19 06:49:01 -03:00
2026-05-10 00:55:06 -03:00
2026-05-10 00:55:06 -03:00
2026-05-10 00:55:06 -03:00
2026-06-19 06:49:01 -03:00
2026-06-25 13:17:40 -03:00
2026-07-24 11:44:37 -03:00
2026-07-18 21:18:34 -03:00
2026-03-14 10:59:15 -03:00
2026-06-25 13:17:40 -03:00
2026-07-02 10:47:13 -03:00
2026-07-20 17:53:04 -03:00
2026-07-20 17:53:04 -03:00
2026-05-10 00:55:06 -03:00
2026-05-10 00:55:06 -03:00
2026-06-13 17:27:40 -03:00
2026-07-18 21:19:42 -03:00
2026-06-19 06:49:01 -03:00
2026-07-26 03:52:27 -03:00
2026-06-04 20:05:38 -03:00
2026-07-06 02:25:17 -03:00
2026-07-07 13:14:06 -03:00
2026-07-26 03:52:19 -03:00
2026-07-18 03:17:09 -03:00
2026-03-30 12:58:45 -03:00
2026-07-19 14:37:30 -03:00
2026-07-13 09:12:40 -03:00
2026-06-22 03:17:02 -03:00
2026-06-08 00:48:01 -03:00
2026-04-17 23:21:02 -03:00
2026-04-03 00:15:35 -03:00