[Feature] Allow choosing the CUA image flavour (container or VM) in the CUA Image setting
Maintainer thường phản hồi trong vòng 1 ngày
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
- 1/100
Hướng nghiên cứu
Pull request #10835 is already open for this feature. Review its changes to see how it parses the CUA Image setting, selects the requested flavour, and handles unsupported flavours; check that registry image tags remain unchanged and that no schema or API client changes are needed.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature Description / 功能描述
English
The CUA Image setting currently accepts only a factory name such as linux, macos, windows or android, and the CUA SDK decides how to realise it. For a local Linux sandbox that means a QEMU virtual machine: the host needs QEMU installed, and the first start downloads a portable QEMU build.
Running the same Linux image in a Docker container is much lighter and is what most local deployments already have, but there is no way to ask for it.
This feature adds an optional :container or :vm suffix to the setting, for example:
CUA Image = linux:container
Only the known flavours are split off, so the tag of a registry reference such as ghcr.io/trycua/xfce:latest is not mistaken for a flavour and the reference is looked up unchanged. When the selected SDK factory does not support the requested flavour, the suffix is ignored with a warning instead of failing the boot. No new configuration key is introduced, so the dashboard schema and the API client stay unchanged.
A PR implementing this is open for review: #10835.
中文
CUA Image 目前只能填工厂名(如 linux、macos、windows、android),实际形态由 CUA SDK 决定。本地 Linux 沙盒会走 QEMU 虚拟机:宿主机需要安装 QEMU,首次启动还要下载 QEMU portable 资源。
而用 Docker 容器运行同一个 Linux 镜像要轻量得多,多数本地部署本来就有 Docker,却没有办法指定。
本功能为该配置项增加可选的 :container / :vm 后缀,例如:
CUA Image = linux:container
只识别已知形态,因此 ghcr.io/trycua/xfce:latest 这类镜像引用的 tag 不会被误判为形态,镜像名会原样参与查找。当所选 SDK 工厂不支持该形态时,仅记录警告并忽略,不会导致启动失败。本功能不新增配置键,dashboard schema 与 API client 均无需变更。
对应 PR 已开启,欢迎评审:#10835。
Use Case / 使用场景
English
- A local deployment that already runs Docker Desktop (or Docker Engine) wants to use the CUA sandbox without installing QEMU and without waiting for a large QEMU download.
- A deployment on a host without KVM acceleration prefers a container over a virtual machine.
- Operators want to choose the flavour explicitly per installation instead of relying on the SDK default, and want to be able to switch back by editing a single setting.
中文
- 本机已经装了 Docker Desktop(或 Docker Engine),想在不安装 QEMU、不等待大体积 QEMU 下载的前提下使用 CUA 沙盒。
- 宿主机没有 KVM 加速,希望用容器而不是虚拟机。
- 希望能按安装环境显式选择形态,而不是依赖 SDK 默认值,并且改一个配置项就能切回去。
Checklist / 检查清单
- I have searched the Issue list for related features and confirmed this feature idea has never been proposed.
/ 我已在 Issue 列表中搜索过相关功能,确认该功能想法从未被提出过。 - The feature I am suggesting is related to AstrBot itself, not to a specific plugin.
/ 我建议的功能与 AstrBot 本体相关,而非在建议某一插件的功能。 - I have read and agree to the project's Code of Conduct.
/ 我已阅读并同意本项目的贡献者行为准则。 - (Optional) I am willing to submit a PR to help implement this feature.
/ (可选)我愿意提交 PR 以帮助实现该功能。
Thank you for sharing your valuable ideas with us! / 感谢您向我们提交您宝贵的想法!
- Ngôn ngữ chính
- Python
- Star
- 46.4k
- Fork
- 3.4k
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 120
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọ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 AstrBotDevs/AstrBot
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
AstrBotDevs/AstrBot#11038 · 2 bình luận ·
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 74/100
AstrBotDevs/AstrBot#11034 · 1 bình luận ·
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 74/100
AstrBotDevs/AstrBot#10999 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] OpenAI-compatible Gemini 工具 schema const 导致 400Có thể đã có người làm @arccat-114 đã nhận 17 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
AstrBotDevs/AstrBot#10720 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] Discord slash command sync aborts with KeyError when a plugin handler is defined in a submoduleCó thể đã có người làm @yuexia5 đã nhận 21 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
AstrBotDevs/AstrBot#10626 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của AstrBotDevs/AstrBot
Issue tương tự
-
Edit: TVS Encarnacion [PY]Đang mởchannels:edit check:passed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] The blue-green mitigation strategy lists catalog names and views before the source tablesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
aws-samples/sample-aws-genai-db-modernizer#2097 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
ietf-tools/datatracker#12027 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Python SDK overwrites OVPack backups with HTTP 200 JSON errorsCó thể đã có người làm @stefanielizeth73-art đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
volcengine/OpenViking#7347 ·
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 78/100
deepset-ai/haystack-core-integrations#4228 ·
Maintainer thường phản hồi trong vòng 1 ngày