YeonGyu-Kim
c2a5891f37
fix(provider-cache): extract models from provider.list().all response
...
OpenCode SDK does not expose client.model.list API. This caused the
provider-models cache to always be empty (models: {}), which in turn
caused delegate-task categories with requiresModel (e.g., 'deep',
'artistry') to fail with misleading 'Unknown category' errors.
Changes:
- connected-providers-cache.ts: Extract models from provider.list()
response's .all array instead of calling non-existent client.model.list
- category-resolver.ts: Distinguish between 'unknown category' and
'model not available' errors with clearer error messages
- Add comprehensive tests for both fixes
Bug chain:
client.model?.list is undefined -> empty cache -> isModelAvailable
returns false for requiresModel categories -> null returned from
resolveCategoryConfig -> 'Unknown category' error (wrong message)
2026-02-10 13:25:49 +09:00
..
2026-02-08 15:01:42 +09:00
2026-02-10 11:41:44 +09:00
2026-02-08 19:33:26 +09:00
2026-02-08 15:01:42 +09:00
2026-02-06 15:09:07 +09:00
2026-02-01 16:47:50 +09:00
2026-01-23 18:50:03 +09:00
2026-02-06 21:35:30 +09:00
2026-02-06 15:09:07 +09:00
2026-02-02 21:07:10 +09:00
2026-02-09 14:29:53 +09:00
2026-02-08 16:24:52 +09:00
2026-01-31 15:46:14 +09:00
2025-12-26 23:28:33 +09:00
2025-12-26 23:28:33 +09:00
2026-02-08 15:01:42 +09:00
2025-12-19 02:20:46 +09:00
2026-02-10 13:25:49 +09:00
2026-02-10 13:25:49 +09:00
2026-01-26 11:53:41 +09:00
2026-02-01 16:47:50 +09:00
2025-12-13 14:23:04 +09:00
2026-02-06 18:58:48 +09:00
2026-02-01 22:42:28 +09:00
2026-02-01 16:47:50 +09:00
2026-01-27 10:35:20 +09:00
2026-02-08 16:24:52 +09:00
2025-12-09 16:59:22 +09:00
2026-01-05 13:44:07 +09:00
2026-02-01 16:47:50 +09:00
2026-01-13 04:37:51 +00:00
2026-02-01 16:47:50 +09:00
2026-01-05 05:38:17 +09:00
2025-12-09 17:31:15 +09:00
2026-02-08 17:34:47 +09:00
2026-02-01 16:47:50 +09:00
2025-12-28 00:45:17 +09:00
2025-12-09 16:59:22 +09:00
2026-02-07 19:51:22 +09:00
2026-02-07 19:51:22 +09:00
2026-02-08 21:32:52 +09:00
2026-02-08 18:41:35 +09:00
2026-02-08 16:24:52 +09:00
2026-02-08 16:24:52 +09:00
2026-02-06 15:30:05 +09:00
2026-02-06 15:30:05 +09:00
2026-02-08 18:41:35 +09:00
2026-02-08 13:57:26 +09:00
2026-02-06 15:09:07 +09:00
2026-01-31 15:46:14 +09:00
2025-12-14 12:24:59 +09:00
2026-02-08 02:36:27 +09:00
2026-02-08 02:36:27 +09:00
2026-02-08 16:24:52 +09:00
2026-02-08 16:24:52 +09:00
2026-02-08 16:24:52 +09:00
2026-02-08 13:57:26 +09:00
2026-02-01 16:47:50 +09:00
2026-02-08 13:57:26 +09:00
2026-02-04 14:52:31 +09:00
2026-02-04 14:52:31 +09:00
2026-02-01 16:47:50 +09:00
2026-01-31 15:46:14 +09:00
2026-02-06 16:33:34 +09:00
2026-02-06 12:48:28 +05:30
2026-02-06 21:35:30 +09:00
2026-02-06 21:35:30 +09:00
2026-02-05 09:55:15 +09:00
2026-02-05 09:55:15 +09:00
2026-02-08 16:24:52 +09:00
2026-02-08 16:24:52 +09:00
2026-02-07 13:32:45 +09:00
2026-02-07 13:32:45 +09:00
2026-02-01 16:47:50 +09:00
2026-01-14 21:06:26 -05:00
2026-01-31 15:46:14 +09:00
2026-01-25 14:52:11 +09:00
2026-01-15 16:04:06 +09:00
2026-01-15 16:04:06 +09:00
2026-02-09 12:04:41 +09:00
2026-02-09 12:04:41 +09:00
2026-01-31 15:46:14 +09:00
2026-01-28 16:26:37 +09:00
2026-02-08 17:49:22 +09:00
2026-02-07 13:12:47 +09:00
2026-02-07 13:12:47 +09:00
2026-02-07 19:13:35 +09:00
2026-02-07 19:13:35 +09:00
2026-01-11 18:21:48 +09:00