Repository navigation
T-1264 Cry Bot 团队地图:InstaBox 智能体被计入地图电脑但画面接口只查 Boat,可能出现空电脑卡 - #72
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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-1264
改了什么
改动文件(与
git status一致):shared/cloud-backend.ts:抽出实际后端判定。shared/cloud-backend.test.ts:覆盖缺省、显式后端和团队电脑。server/cloud-backend.ts:复用并重新导出判定函数。server/routes/computer-frames.ts:自有电脑仅列 Boat。server/routes/computer-frames.test.ts:补排除和兼容性用例。server/routes/computer-frames.e2e.test.ts:补隔离接口验证。src/components/TeamMapPage.tsx:使用同一判定控制默认显示。src/components/TeamMapPage.edges.test.ts:补显示开关回归测试。原因:实际后端缺省为 InstaBox,而画面来源只有 Boat。前后端现在统一使用
cloudKindOf,排除显式和缺省 InstaBox;服务端团队电脑逻辑保持原样,未增加 InstaBox 轮询。测试:以下文件逐个执行
pnpm exec vitest run <文件>,共 48 项通过:shared/cloud-backend.test.tsserver/cloud-backend.test.tsserver/routes/computer-frames.test.tsserver/routes/computer-frames.e2e.test.tsserver/computer-frames.test.tssrc/components/TeamMapPage.edges.test.tspnpm exec tsc -p .、pnpm exec tsc -p tsconfig.server.json、改动文件的oxlint --deny-warnings和git diff --check均通过。指定验证文档缺失;接口验证使用现有隔离 fixture 完成。验收证据
审核、安全审查和测试结论见本 PR 检查状态及评论。
风险与回退
待补充风险;合并后可通过 revert 压缩提交回退。
🤖 Generated with Claude Code