Repository navigation
T-1242 T-1239① Cry Bot InstaBox 云电脑:核心客户端、开机/挂起、后端切换接线 - #63
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
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.
台账任务
台账任务:T-1242
改了什么
第 2、3 轮实际改动文件(历史记录):
server/index.ts当前 15449 行。本轮beginTurn的云策略判定改用已解析的cloudBackend,因此run_on=cloud的 instabox 按 box 策略检查;instabox 删除失败改为抛出 503,外层 catch 仍会执行 browser cleanup abort。新增 index 层 e2e 回归覆盖run_on=cloud、切换后删除、Boat 侧 5xx/网络错误降级、instabox 删除失败保留智能体。确保实际使用的云电脑类型与管理策略一致,避免
run_on=cloud绕过 box 禁止策略;删除时保留 Boat/VPS 清理流程,并让 失败只在 instabox 智能体上阻止最终删除,同时保持浏览器清理回滚。依赖准备脚本 已运行。仓库未提供
docs/verification/README.md;本轮使用临时目录、假引擎和 loopback 假 服务,未连接真实服务。pnpm exec vitest run server/instabox/core.e2e.test.ts --maxWorkers=1:7 项通过,连续 3 次通过。pnpm exec vitest run server/cloud-backend.test.ts --maxWorkers=1:12 项通过。pnpm exec vitest run server/index.test.ts --maxWorkers=1:338 项通过。pnpm exec tsc -p tsconfig.server.json:通过。pnpm exec oxlint --deny-warnings server/index.ts server/instabox/core.e2e.test.ts:通过。git diff --check:通过。完整输出见 verification.txt。
第 4 轮
本轮最终
git status --short文件清单:模板未指定时复用已有 机器的模板,新建机器仍默认 Linux;补充 Android 普通回合、Boat/VPS 归属机器删除、策略拒绝和 删除失败保留智能体的真实回合回归。
server/index.ts本轮净增 0 行,当前及基线均为 15449 行。instaboxMachinesFor签名为function instaboxMachinesFor(cfg: AppConfig): InstaboxMachines | null。仍在用的文案键及中英文:
serverError.instabox.keyMissingserverError.instabox.templateserverError.instabox.unavailableautoSuspendAfterSeconds: 600是 自动挂起兜底,本轮没有另写定时器。让 Android 机器在普通回合未传模板时继续可用,并保持群聊调用所需的未指定模板语义;让策略判断真正覆盖
beginTurn的后端选择,删除时按机器归属清理 Boat/VPS,删除网络错误返回 503 并保留智能体。依赖准备脚本 已运行。旧策略判断临时恢复后,VPS 策略回合测试按预期失败,随后恢复正确实现。使用 loopback 假服务和临时目录,未连接真实服务。
pnpm exec vitest run server/instabox/core.e2e.test.ts --maxWorkers=1:13 项通过,最终连续 3 次通过。pnpm exec vitest run server/instabox/machines.test.ts --maxWorkers=1:13 项通过。pnpm exec vitest run server/instabox/power.test.ts --maxWorkers=1:7 项通过。pnpm exec vitest run scripts/control-cry.test.ts --maxWorkers=1:9 项通过。pnpm exec vitest run server/cloud-backend.test.ts --maxWorkers=1:12 项通过。pnpm exec vitest run server/index.test.ts --maxWorkers=1:338 项通过。pnpm exec tsc -p tsconfig.server.json:通过。pnpm exec oxlint --deny-warnings(本轮改动文件):通过。git diff --check:通过。完整输出见 verification.txt。
验收证据
审核、安全审查和测试结论见本 PR 检查状态及评论。
风险与回退
待补充风险;合并后可通过 revert 压缩提交回退。
🤖 Generated with Claude Code