`sbx secret set mistral` is not picked up by docker-agent running in sbx (custom secret required)
Maintainer thường phản hồi trong vòng 1 ngày
@dgageot đang làm issue này rồi.
Từ ngày 21/10/2026.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 62/100
Hướng nghiên cứu
Start by tracing how docker-agent obtains built-in provider credentials for models, then compare the Mistral path with providers that work. The issue names no source files or tests, so first locate the credential handling and its coverage. Done when sbx secret set mistral supplies the key to a Mistral agent without the custom-secret workaround.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
When running docker-agent inside an sbx sandbox with a Mistral model, the built-in secret stored with sbx secret set mistral is not used. Requests to the Mistral API fail, and the only way I found to make it work is to create a custom secret.
model failed: error receiving from stream: HTTP 401: POST
"https://api.mistral.ai/v1/chat/completions": 401 Unauthorized {"detail":"Invalid API
Key"}
Expected Behavior
Use the Mistral built-in service: https://docs.docker.com/ai/sandboxes/configuration/credentials/#built-in-services.
sbx secret set mistral should work out of the box with docker-agent, as it does for other providers.
Actual Behavior
See Description section
Steps to Reproduce
- Store the key as a built-in secret:
sbx secret set mistral - Run an agent that uses a Mistral model:
sbx run docker-agent -- run agent.yaml - The Mistral API key is not found or injected.
Docker Agent version
v1.142.0 and v1.151.0 (the one linked to sbx 0.48.0)
OS & terminal
macOS (but running on Linux because with sbx)
Model used
ministral-3b-2512
Error output
model failed: error receiving from stream: HTTP 401: POST
"https://api.mistral.ai/v1/chat/completions": 401 Unauthorized {"detail":"Invalid API
Key"}
Screenshots
No response
Additional context
Workaround
sbx secret set-custom --host api.mistral.ai --env MISTRAL_API_KEY \
--placeholder sbx-mistral-key --value "$MISTRAL_API_KEY"
sbx run -e MISTRAL_API_KEY=sbx-mistral-key -e DOCKER_AGENT_AUTO_UPDATE=0 \
docker-agent -- run agent.yaml --theme default-light
- Ngôn ngữ chính
- Go
- Star
- 4.7k
- Fork
- 565
- Merge trung bình
- 18 giờ 52 phút
- Pull request đã merge (30 ngày)
- 221
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có 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 docker/docker-agent
-
edit_file diff rendering panics on invalid UTF-8 textCó thể đã có người làm @TDnorthgarden đã nhận hôm nay. Đang mởarea/tui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
docker/docker-agent#4955 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A setting to turn off the models.dev catalog download (offline and strict-network use)Có thể đã có người làm @3431481073 đã nhận 19 ngày trước. Đang mởarea/config area/models
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
docker/docker-agent#4714 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Error when trying to run sandbox example?Có thể đã có người làm @dgageot đã nhận 28 ngày trước. Đang mởarea/cli
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
docker/docker-agent#4672 · 1 bình luận · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`edit_file` silently edits the first match when `oldText` occurs more than onceCó thể đã có người làm @dwin-gharibi đã nhận 103 ngày trước. Đang mởarea/tools
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
docker/docker-agent#3929 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/api area/runtime
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
docker/docker-agent#4951 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của docker/docker-agent
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
fluxcd/notification-controller#1441 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
OneBusAway/maglev#2145 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
priority/medium status/ready type/chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
discobox-ai/discobox#1357 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
TestPseudoLocaleRemote fails now and then: it types the code before the laptop asks for itCó thể đã có người làm @fzn0x đã nhận hôm nay. Đang mởbug priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement ui/ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
jbigler/railswitch#243 ·
Maintainer thường phản hồi trong vòng 1 ngày