fix: 修复 sandbox 网络名称不匹配导致 agent 执行超时的问题#613
Merged
xerrors merged 2 commits intoxerrors:mainfrom Apr 5, 2026
Merged
Conversation
- 在 docker-compose.yml 中显式指定网络名称为 yuxi-know_app-network - 更新 .env.template 添加说明注释 问题原因:sandbox-provisioner 期望连接到 yuxi-know_app-network 网络, 但 docker compose 默认根据项目目录名创建网络,导致网络名称不匹配, sandbox 容器无法正确获取端口映射,sandbox_url 为空,所有操作超时。
Contributor
There was a problem hiding this comment.
Pull request overview
该 PR 通过在 docker-compose.yml 中固定 Compose 网络的实际名称,解决 sandbox-provisioner 依赖的网络名与 Docker Compose 默认生成网络名不一致,从而导致 sandbox_url 为空、agent 执行超时的问题。
Changes:
- 在
docker-compose.yml中为app-network显式指定网络名yuxi-know_app-network - 在
.env.template中补充注释说明该网络名约定
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| docker-compose.yml | 为 app-network 指定固定的 Docker 网络名,避免 compose 项目名变化导致网络名不匹配 |
| .env.template | 增加注释,提示 sandbox Docker backend 使用的网络名约定 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
|
这可能就是我之前遇到的问题 |
Closed
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.
问题原因:sandbox-provisioner 期望连接到 yuxi-know_app-network 网络, 但 docker compose 默认根据项目目录名创建网络,导致网络名称不匹配,
sandbox 容器无法正确获取端口映射,sandbox_url 为空,所有操作超时。
变更描述
简要描述这个 PR 做了什么
变更类型
测试
相关日志或者截图
说明
(可选)有什么需要特别说明的吗?
💡 提示: 提交前可以运行
make lint和make format检查代码规范