Repository navigation
fix(runtime): provision missing CLIs in Docker SOPs - #1077
Merged
Merged
Conversation
Use the sandbox proxy for Docker CLI setup and retry a failed HTTPS download before invoking the official installer.
Reuse the conversation workspace installer after checking the sandbox PATH and shared runtime installations.
Robert0622
reviewed
Nov 19, 2026
Robert0622
left a comment
Collaborator
There was a problem hiding this comment.
在 Linux Docker 中用 UID 1000 连续执行了两次 Antigravity SOP 命令。没有预装 CLI 的用例中,测试安装器只运行一次,两次调用都成功。镜像另有一份 root 私有的 CLI 时,首个节点启动失败。
| if err != nil { | ||
| return command, "", err | ||
| } | ||
| command.Argv = append([]string{binary}, command.Argv[1:]...) |
Collaborator
There was a problem hiding this comment.
[P1] 请用任务用户验证最终选中的 CLI。这里把 root 准备阶段返回的绝对路径写入 argv。实测镜像只在 root 的登录 PATH 中安装 agy 时,UID 1000 的首次探测报告缺失,但 root 的 command -v 命中私有安装并跳过安装。随后任务用户执行该路径得到 Permission denied,退出码 126。建议只复用任务用户可执行的路径,其余情况安装到共享前缀,再用任务用户验证。
Robert0622
approved these changes
Nov 19, 2026
Robert0622
left a comment
Collaborator
There was a problem hiding this comment.
复测通过。用真实 Docker 容器以 UID/GID 1000:1000 运行 SOP,并用离线安装脚本检查调用次数。镜像中没有 agy、以及只有 root 的登录 PATH 能找到旧 agy,这两种情况下,任务用户都能连续两次执行 agy,安装脚本都只运行一次。相关 runtime 回归测试也通过,上一轮的退出码 126 已修复。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Writable Docker sandboxes with the installer prerequisites can provision the supported CLIs. Read-only images can use a preinstalled CLI or mounted toolchain. ZCode uses the supplied official CLI.
Verification