Support runtime provider, model, and command registration from extensions
- 主要语言
- 没有语言数据
- 星标
- 2.1k
- 派生
- 153
- PR 合并指标
- 30 天内没有已合并 PR
描述
## Summary
A user reported that extensions can register providers, models, and commands in the live session registry, but the Copilot app does not fully consume those updates.
## Reported behavior
An extension can:
- Register a provider and model through `session.rpc.provider.add`
- Register slash commands
- Emit `commands.changed`
This works in Copilot CLI. In the app:
1. The model picker does not refresh after registration.
2. If the model later appears, selecting it can fail because the app treats it as a persisted provider.
3. Extension commands do not appear after `commands.changed`.
## Expected behavior
The app should consume the live session registry, refresh models and commands after registration, and select extension models by their provider-qualified ID.
贡献指南
调研方向
Start by tracing how the app consumes the live session registry after session.rpc.provider.add and commands.changed. Follow the model picker and extension-command refresh paths, then verify that newly registered models and commands appear and that model selection uses the provider-qualified ID.
由索引模型根据 Issue 内容生成。
评估
- 领域
- desktop
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100