gsxdsm
7fe18dfc9b
FN-7696: surface Cursor CLI models in the model picker
Adds Cursor CLI model discovery to the dashboard's /api/models endpoint so cursor-agent-backed models appear in the picker when the Cursor CLI provider is enabled.
- Add cursor-model-cache.ts: short-TTL, single-flight cache for cursor-agent model discovery (no per-request CLI spawn)
- register-model-routes.ts additively merges cursor-cli models, deduped by provider/id, without displacing existing entries
- runtime-provider-probes.ts adds cursor-cli to configuredProviders when useCursorCli is on so rows survive the final provider filter
- Add unit tests for the cache and for register-model-routes cursor-cli integration
- Update docs/settings-reference.md
- Add changeset (patch/minor: @runfusion/fusion) documenting the fix
Files changed:
.changeset/fn-7696-cursor-cli-models-in-picker.md | 7 +
docs/settings-reference.md | 2 +
.../src/__tests__/cursor-model-cache.test.ts | 158 +++++++++++++++++++
.../register-model-routes-cursor-cli.test.ts | 131 +++++++++++++--
packages/dashboard/src/cursor-model-cache.ts | 175 +++++++++++++++++++++
.../dashboard/src/routes/register-model-routes.ts | 45 ++++++
packages/dashboard/src/runtime-provider-probes.ts | 26 +++
7 files changed, 527 insertions(+), 17 deletions(-)
Fusion-Task-Id: FN-7696
Fusion-Task-Lineage: 2f2baf1e-5e4d-4c47-a112-b282a8ee45b6
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-08 23:39:33 -07:00
..
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 23:39:33 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 22:37:29 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00