This website requires JavaScript.
Explore
Forum
Help
Register
Sign In
Search…
Search repos…
xhgit
/
webup-cloud
Watch
1
Star
1
Fork
1
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
复用已有工作区,修复重复创建耗尽隔离配额
#5
Merged
xhgit
merged 1 commits from
codex/reuse-sandbox-resources
into
main
2026-11-08 00:37:33 +08:00
Conversation
0
Commits
1
Files Changed
3
+83
-14
xhgit
commented
2026-11-07 23:28:11 +08:00
Owner
Copy link
Copy source
人工发现的 Bug
用户在 23:12 的 AI 开发任务中连续读取已有工作区后,工具报「隔离环境暂时无法准备」,开发中断。网关记录显示 Kubernetes 在准备阶段返回 403。
在隔离测试命名空间,反复创建同名 Pod 先返回 409,随后在只有一个实际 Pod 的情况下报配额满。网关原先每次工具调用都对已有 Pod 和持久卷发起创建,同名请求也会消耗临时配额计数。
修复内容
先读取同名网络策略、持久卷和 Pod,只有缺失时才创建。创建响应丢失时,下一次尝试先读资源。并发创建时只在读到现有资源后继续。
集群实际拒绝创建新资源并报告配额已满时,页面显示容量提示,便于区分一般连接故障。
本 PR 基于隔离网关诊断修复 #3。
验证结果
36 项网关测试和 133 项后端测试通过。
更新本地 K3s 后,对实际项目执行 60 次列目录、读取文件和源码检查。全部成功,Pod 数保持 5、PVC 数保持 4、存储请求保持 20Gi。现有工作区仍检测到 4 个非空源码文件。
## 人工发现的 Bug - 用户在 23:12 的 AI 开发任务中连续读取已有工作区后,工具报「隔离环境暂时无法准备」,开发中断。网关记录显示 Kubernetes 在准备阶段返回 403。 - 在隔离测试命名空间,反复创建同名 Pod 先返回 409,随后在只有一个实际 Pod 的情况下报配额满。网关原先每次工具调用都对已有 Pod 和持久卷发起创建,同名请求也会消耗临时配额计数。 ## 修复内容 - 先读取同名网络策略、持久卷和 Pod,只有缺失时才创建。创建响应丢失时,下一次尝试先读资源。并发创建时只在读到现有资源后继续。 - 集群实际拒绝创建新资源并报告配额已满时,页面显示容量提示,便于区分一般连接故障。 - 本 PR 基于隔离网关诊断修复 #3。 ## 验证结果 - 36 项网关测试和 133 项后端测试通过。 - 更新本地 K3s 后,对实际项目执行 60 次列目录、读取文件和源码检查。全部成功,Pod 数保持 5、PVC 数保持 4、存储请求保持 20Gi。现有工作区仍检测到 4 个非空源码文件。
xhgit
changed target branch from
codex/sandbox-tool-recovery
to
main
2026-11-08 00:37:14 +08:00
xhgit
added 1 commit
2026-11-08 00:37:14 +08:00
Reuse sandbox resources instead of charging quota on every tool call
Verify control plane / verify (push)
Canceled after 0s
Details
Verify control plane / verify (pull_request)
Canceled after 0s
Details
8f232c442b
xhgit
merged commit
ed6ddc007d
into
main
2026-11-08 00:37:33 +08:00
xhgit
deleted branch
codex/reuse-sandbox-resources
2026-11-08 00:37:33 +08:00
Sign in
to join this conversation.
Reviewers
No Reviewers
Labels
No items
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
Clear assignees
xhgit
(itxiaohui)
No Assignees
1 Participants
Notifications
Subscribe
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xhgit/webup-cloud#5
Write
Preview
Loading…
x
Add
Cancel
Save
Reference in new issue
Repository
xhgit/webup-cloud
Title
Body
Create Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues.
Learn more about blocking a user.
User to block:
Optional note:
The note is not visible to the blocked user.
Cancel
Block
人工发现的 Bug
修复内容
验证结果