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

未关闭
#946 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
azure, javascript, vscode

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
JavaScript
星标
2.1k
派生
260
平均合并
3 小时 18 分钟
30 天内合并 PR
43

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/foundry-dev-tools 的其他 Issue

查看 microsoft/foundry-dev-tools 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。