Model picker shows "Select a project" despite a selected default Foundry project

Aperta
#946 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
azure, javascript, vscode

Direzione di ricerca

Start by tracing the Foundry model picker and the Foundry Toolkit project and model cache refresh paths; the issue names AitkModelChatProvider and FoundryExtAccessor as leads from inspection of version 1.6.19. Check how a selected default project reaches the picker and what refresh notification follows model retrieval. Done means the picker lists supported deployments from the selected project without requiring foundrytk_list_foundry_models; confirm the suspected cause with maintainers.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs attention

Model picker shows "Select a project" despite a selected default Foundry project

Environment

  • Windows
  • Foundry Toolkit for VS Code (ms-windows-ai-studio.windows-ai-studio), version 1.6.19
  • A default Foundry project with two deployed chat models

Observed steps

  1. Select a default project in Foundry Toolkit with deployed chat models.
  2. Open the VS Code chat model picker.
  3. Choose "Microsoft Foundry via Foundry Toolkit".
  4. The picker shows "Select a Foundry project in Foundry Toolkit extension to use Foundry models" instead of the deployed models.

The issue persisted after a window reload in the observed session. These steps describe the observed scenario; reproducibility on a fresh installation has not been tested.

Expected behavior

The picker recognizes the selected default project and lists its supported deployed models without requiring a separate model-listing operation.

Actual behavior

The picker indicates no project is selected, even though Foundry Toolkit can retrieve the selected project and both deployments.

Verified workaround

Invoke foundrytk_list_foundry_models (registered tool name: foundrytk-list_foundry_models) to list the project's deployments. Wait at least 30 seconds, close the model picker completely, and reopen the Microsoft Foundry provider. Both deployments then appear.

No configuration, deployment, or authentication settings were changed.

Possible implementation cause (not confirmed)

Read-only inspection of the installed 1.6.19 extension bundle suggests:

  • AitkModelChatProvider caches model information, including placeholders, for 30 seconds.
  • The no-project placeholder resolver reads FoundryExtAccessor.getProject(), which reads cached project information.
  • FoundryExtAccessor maintains a separate configured-model cache.
  • AitkModelChatProvider exposes onDidChangeLanguageModelInformation, but no call to its changeLanguageModelInformation.fire was found in the installed bundle.

This may be a project initialization/cache refresh notification issue. The exact root cause requires maintainer confirmation.

Diagnostic evidence

The Foundry Toolkit output reported successful retrieval of the selected project and two models during troubleshooting. The picker subsequently displayed both models after the workaround.

Azure subscription IDs, resource names, endpoints, and authentication details are intentionally omitted.

Lingua principale
JavaScript
Stelle
2.1k
Fork
260
Merge medio
3h 18m
PR unite (30g)
43

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/foundry-dev-tools

Tutte le issue di microsoft/foundry-dev-tools

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.