unsupportedpastels
5487222658
fix(models): live Copilot catalog for CLI-login users; unbreak picker-flag-empty catalogs
...
Three gaps between the copilot-acp picker row and what the user's
subscription actually serves (reported: picker showed the stale curated
list while the Copilot CLI offered Sonnet 5 / Opus 5 / GPT-5.6):
1. _resolve_copilot_catalog_api_key() never looked at the Copilot CLI's
own token store (~/.copilot/config.json copilotTokens). A user whose
only credential is 'copilot login' got no catalog key, the live fetch
401'd, and copilot-acp silently fell back to the stale curated list.
Add it as resolution source 3, JSONC-tolerant, with each candidate
validated and exchanged like pool entries.
2. The existing credential-pool branch unpacked exchange_copilot_token()
into two names, but it returns (api_token, expires_at, base_url) —
the ValueError was swallowed by the enclosing except, disabling that
entire resolution path. Latent since the base_url return was added.
3. GitHub now returns model_picker_enabled: false for EVERY model on
some accounts/token types, so honoring the flag rejected the whole
live catalog. Treat the flag as a display hint: when it empties the
result, refilter without it (chat/endpoint checks still exclude
embeddings and non-chat rows).
Verified live: catalog resolves 44 models for a copilot-login-only
account, matching the CLI's own picker (claude-sonnet-5, claude-opus-5,
gpt-5.6-sol/terra, gemini, kimi).
2026-09-02 20:51:07 +05:30
..
2026-08-31 12:36:33 -07:00
2026-09-02 05:32:20 -07:00
2026-09-01 22:42:27 +05:30
2026-08-29 18:01:25 -07:00
2026-08-31 12:05:07 -07:00
2026-08-31 11:19:05 -07:00
2026-08-29 18:34:35 -07:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-08-29 18:13:33 -07:00
2026-09-01 16:01:53 -04:00
2026-08-29 07:25:17 -07:00
2026-08-28 02:59:17 -07:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 00:26:55 +05:30
2026-08-26 11:41:04 -07:00
2026-08-26 11:41:04 -07:00
2026-08-31 12:58:14 -07:00
2026-08-29 19:14:36 -07:00
2026-08-31 12:18:47 -07:00
2026-09-02 06:19:03 -07:00
2026-09-01 07:00:22 -07:00
2026-08-27 11:49:58 +05:30
2026-09-02 00:07:15 -07:00
2026-09-02 06:16:54 -07:00
2026-08-27 13:27:24 +05:30
2026-09-02 05:34:28 -07:00
2026-09-01 16:01:53 -04:00
2026-09-02 20:51:07 +05:30
2026-08-31 03:37:43 -07:00
2026-09-01 08:31:37 -07:00
2026-09-02 06:27:24 -07:00
2026-08-31 10:00:29 -07:00
2026-08-31 06:02:32 -07:00
2026-09-02 00:56:52 -07:00
2026-09-02 04:53:59 -07:00
2026-08-29 19:14:15 -07:00
2026-09-01 01:39:59 -07:00
2026-09-01 11:47:38 +10:00
2026-08-27 10:35:22 -07:00
2026-08-31 15:57:21 +10:00
2026-09-01 11:47:38 +10:00
2026-08-26 07:57:04 -07:00
2026-08-26 04:03:21 -07:00
2026-08-28 05:27:15 -07:00
2026-09-02 06:53:20 -07:00
2026-09-01 16:01:53 -04:00
2026-09-02 06:17:25 -07:00
2026-09-01 10:56:49 -07:00
2026-08-31 03:37:43 -07:00
2026-09-02 20:51:07 +05:30
2026-09-02 06:06:47 -07:00
2026-08-26 16:14:32 -07:00
2026-09-01 11:43:36 -07:00
2026-09-02 06:36:16 -07:00
2026-08-27 20:39:11 +05:30
2026-09-01 10:06:06 -07:00
2026-08-31 10:41:54 -07:00
2026-08-31 12:21:46 -07:00
2026-08-26 16:45:22 -07:00
2026-09-02 05:32:01 -07:00
2026-09-02 06:53:20 -07:00
2026-09-01 16:01:53 -04:00
2026-08-30 19:46:14 -07:00
2026-08-27 11:31:21 -05:00
2026-08-27 17:45:43 -05:00
2026-08-27 19:07:15 +05:30
2026-09-02 05:32:01 -07:00
2026-09-01 10:52:42 -07:00
2026-09-02 05:32:10 -07:00
2026-08-28 22:38:01 -05:00
2026-09-01 22:42:27 +05:30
2026-09-01 22:09:24 -05:00
2026-09-01 02:32:39 -07:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-02 05:32:01 -07:00
2026-08-26 06:26:07 -07:00
2026-08-28 09:05:19 +05:30
2026-08-31 12:50:29 -07:00
2026-09-01 16:01:53 -04:00
2026-08-26 09:54:31 -07:00
2026-08-26 17:42:58 -07:00
2026-08-26 15:48:39 -07:00
2026-08-26 15:48:39 -07:00
2026-08-31 10:59:45 -07:00
2026-08-31 04:40:24 -07:00
2026-09-02 06:16:54 -07:00
2026-09-01 12:07:35 -07:00
2026-08-31 04:40:24 -07:00
2026-08-27 11:31:21 -05:00
2026-09-02 05:33:33 -07:00
2026-08-29 22:41:55 +05:30
2026-08-29 20:39:44 +05:30
2026-09-01 07:00:22 -07:00
2026-09-01 16:37:36 -03:00
2026-09-01 16:34:48 -03:00
2026-09-01 10:56:49 -07:00
2026-08-29 05:02:54 -07:00
2026-08-29 05:02:54 -07:00
2026-08-31 11:19:26 -07:00
2026-08-31 01:04:11 -07:00
2026-09-02 06:59:11 -07:00
2026-08-31 08:41:15 -07:00
2026-08-31 00:56:41 -07:00
2026-09-02 07:00:13 -07:00
2026-09-01 16:35:47 -03:00
2026-09-01 01:00:23 -07:00
2026-09-01 22:42:19 -05:00
2026-08-27 19:08:28 -05:00
2026-08-27 11:31:21 -05:00
2026-09-01 10:12:21 -07:00
2026-09-01 07:00:38 -07:00
2026-09-02 00:42:53 -07:00
2026-09-01 09:27:47 -07:00
2026-08-29 20:29:04 +05:30
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-08-28 02:04:54 -07:00
2026-09-01 22:42:27 +05:30
2026-09-01 01:30:09 -07:00
2026-08-28 05:15:06 -07:00
2026-09-02 06:19:08 -07:00
2026-08-27 17:11:56 +05:30
2026-09-01 07:00:54 -07:00
2026-08-31 12:08:30 -07:00
2026-09-01 22:42:19 -05:00
2026-08-31 14:40:09 -07:00
2026-08-27 02:17:56 -07:00
2026-09-02 00:00:55 -07:00
2026-09-02 06:19:03 -07:00
2026-08-29 18:23:07 -07:00
2026-08-27 10:42:31 +10:00
2026-08-27 13:30:25 +10:00
2026-08-27 09:47:47 +10:00
2026-08-27 13:30:25 +10:00
2026-08-28 15:22:16 +10:00
2026-08-28 15:22:16 +10:00
2026-08-27 09:09:47 +10:00
2026-09-01 10:12:21 -07:00
2026-08-26 07:03:04 -07:00
2026-08-31 10:41:54 -07:00
2026-09-01 12:07:35 -07:00
2026-09-01 10:56:49 -07:00
2026-08-31 10:41:54 -07:00
2026-08-29 20:51:17 +05:30
2026-09-02 06:17:10 -07:00
2026-09-01 10:56:49 -07:00
2026-08-31 10:08:31 -07:00
2026-09-01 16:01:53 -04:00
2026-09-02 01:50:21 +05:30
2026-09-01 07:01:12 -07:00
2026-08-26 04:17:39 -07:00
2026-08-26 16:45:31 -07:00
2026-08-31 10:41:54 -07:00
2026-09-01 08:27:58 -07:00
2026-08-26 17:42:50 -07:00
2026-08-26 11:41:04 -07:00
2026-09-01 08:34:51 -07:00
2026-09-01 08:27:58 -07:00
2026-08-31 12:58:14 -07:00
2026-08-26 18:23:33 -07:00
2026-08-26 18:23:33 -07:00
2026-09-02 00:42:53 -07:00
2026-09-01 08:27:58 -07:00
2026-09-01 00:26:55 +05:30
2026-08-31 10:41:54 -07:00
2026-09-01 07:00:54 -07:00
2026-09-01 07:00:54 -07:00
2026-09-01 07:00:54 -07:00
2026-09-01 08:27:58 -07:00
2026-09-01 07:00:54 -07:00
2026-09-02 01:52:11 +05:30
2026-08-28 13:33:56 -04:00
2026-08-31 12:00:33 -07:00
2026-08-31 10:04:40 -07:00
2026-09-02 00:07:17 -07:00
2026-08-27 21:07:34 +05:30
2026-08-31 13:11:54 -07:00
2026-08-29 18:34:35 -07:00
2026-08-30 22:19:06 -07:00
2026-08-29 19:19:40 -07:00
2026-08-26 21:38:20 -07:00
2026-09-01 12:07:00 -07:00
2026-09-01 21:43:59 -07:00
2026-09-01 22:42:19 -05:00
2026-08-26 16:45:31 -07:00
2026-09-01 11:43:36 -07:00
2026-09-01 11:43:36 -07:00