# Desktop app: BYOK custom model provider is not forwarded to remote (WSL) se...
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github, linux, ubuntu
- Lĩnh vực
- desktop, distributed-systems
Hướng nghiên cứu
Start by tracing remote session creation and the existing LlmInferenceSetProvider and ProviderTokenAcquire RPCs described in the report. Compare provider handling for local and WSL sessions; done means the configured BYOK provider and models are available remotely without falling back to GitHub models.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Desktop app: BYOK custom model provider is not forwarded to remote (WSL) sessions — BYOK models unavailable, requests fall back to GitHub models
Environment
- GitHub Copilot desktop app 1.1.22 on Windows 11
- WSL2 (Ubuntu),
.wslconfigwithnetworkingMode=mirrored - BYOK provider configured in app settings: OpenAI-compatible endpoint (
https://ollama.com/v1), wire APIresponses, with models such askimi-k3andGLM-5.3 - Windows-side CLI 1.0.84-5; remote CLI in WSL at
~/.cache/github-copilot-sdk/cli/1.0.79(binary reports 1.0.86); copilotd 0.7.3 - Projects whose path lives inside the WSL filesystem run as remote sessions (via copilotd on the WSL side)
What happens
- Sessions on Windows-path projects: BYOK models are selectable and work correctly.
- Sessions on WSL-path projects (remote sessions): BYOK models are not available. The remote CLI log shows:
Model 'GLM-5.3' from CLI argument/session ... not available. Falling back to next option.
and requests are served by GitHub's model routing instead of the configured provider.
Repro
- In the app, add a custom model provider (BYOK) and add models to it.
- Add a project whose repository is inside the WSL filesystem.
- Create a session on that project and observe the fallback (or inability to select the BYOK model).
Evidence that the gap is provider-registry forwarding
- The remote copilotd/CLI processes do receive the full
COPILOT_PROVIDER_*environment variable set (verified via/proc/<pid>/environ), but the server-mode CLI ignores env-var BYOK — in server mode the provider is controlled by the host over RPC, so the env vars are inert there. - Running the same CLI directly in a WSL terminal with the same env vars works perfectly (verified even with
COPILOT_HOMEisolated and no GitHub auth) — so the endpoint, credentials, and network path are all fine. - copilotd 0.7.3 already ships the remote BYOK plumbing:
LlmInferenceSetProvider,ProviderTokenAcquire(providerName,accessToken,expiresIn,tokenType),LlmInferenceHttpRequestStart/Chunk— so an RPC path for forwarding providers exists. - The app binary contains the flow strings ("provider registry attached to new session", "re-applying provider registry on session resume"), but no provider-registry activity appears in app logs when a remote session is created.
Conclusion: when creating a remote session, the app passes the model name (e.g. GLM-5.3) but does not attach/forward the provider registry, so the remote CLI has no provider for those model IDs and falls back to GitHub models.
Expected behavior
The BYOK provider and its models should be forwarded to remote sessions via the existing SetProvider/ProviderTokenAcquire RPCs, so remote (WSL) sessions can use BYOK models just like local sessions.
Additional observations (possibly related)
- Every remote session creation logs
skills.discover: Invalid working directory(customization discovery failure). - After an app restart, remote sessions fail to resume:
resume_sessionreports "session not found".
| Field | Value |
|---|---|
| App version | 1.1.22 |
| OS | Windows 10.0.26340 |
| Theme | GitHub |
| Path | /chat |
| Tenure | Week 5 |
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 2.1k
- Fork
- 157
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/app
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
[Package Request]: Raven Đang mởHelp-Wanted Package-Request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoft/winget-pkgs#438682 ·
-
Daemon passes --experimental-wasm-jspi unconditionally on Node >= 24; Node 26 rejects the flag Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Automattic/studio#4908 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
os:macos
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100