Repository navigation
fix: Windows 选路径、文件占用重试、主循环退出事件、潜影盒 - #293
Merged
Merged
Conversation
- 根因:终端/控制台改名时脚本里的 [Console]:: 一起被换成 [WebUI]::。PowerShell 找不到类型只报语句级错误,对话框照弹,路径没写到 stdout,退出码 0,前端当成取消 - 已在本机 PowerShell 确认 [WebUI]:: 报 TypeNotFound 后脚本继续执行 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 根因:杀毒软件、索引器、同步盘在文件刚写完时短暂独占它,rename 报 EBUSY,错误冒到主循环把它停掉 - retryBusy 只在 Windows 上对 EBUSY/EPERM/EACCES 重试,同步调用总共等约半秒,仍失败照原样抛出;同 graceful-fs 的做法 - 测试覆盖:占用两次后放开时 save 落盘,一直占用时抛出 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 追加时 open 失败还没写进任何字节,重试不会写重 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 原色与 16 种染色共 17 种;mineflayer openContainer 本来就支持 - 挖方块的账本保护名单不加:潜影盒挖下来物品还在盒里 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 宿主订阅 runlog 按 event 判断,不比对说明文字 - Core 本身仍只记录并停定时器,进程去留归宿主 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| export const CHEST_BLOCKS = ['chest', 'trapped_chest', 'barrel', 'ender_chest'] as const; | ||
| export const CHEST_BLOCKS = [ | ||
| 'chest', 'trapped_chest', 'barrel', 'ender_chest', | ||
| 'shulker_box', 'white_shulker_box', 'orange_shulker_box', 'magenta_shulker_box', 'light_blue_shulker_box', |
There was a problem hiding this comment.
这两处 bug 修复的 diff 里没有能在修复前失败的测试。
CONTRIBUTING.md「What is accepted」要求:Bug fixes in the runtime, the WebUI, the extension loader and the bundled Worlds and providers, with a test that fails before the fix.
src/worlds/minecraft/chests.ts第 15 行:17 种潜影盒进入CHEST_BLOCKS(chestsIn/CONTAINER_FIND/ take 都读这份名单)。tests/worlds/minecraft/chests.test.ts已有「chestsIn 只回箱子族」用例,本 diff 没给潜影盒加上对应断言。src/web/path-picker.ts第 160、182、184 行:[WebUI]::改回[Console]::。diff 里没有覆盖WINDOWS_SCRIPT的测试。
请补上修复前会失败的测试,或把不测的理由写进 PR 说明。
— Cortico PR Gate via Cursor Cloud Agent
Phantivia
added a commit
to Pal-AI-Lab/Coopanion
that referenced
this pull request
Oct 21, 2026
- Pal-AI-Lab/Cortico#293 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phantivia
added a commit
to Pal-AI-Lab/Coopanion
that referenced
this pull request
Oct 21, 2026
* build(vendor): cortico 52c26963→2299c24b,Windows 选路径、文件占用重试、主循环退出事件 - Pal-AI-Lab/Cortico#293 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(core): 主循环异常退出时 Core 进程跟着退出,由应用重启 - 根因:主循环停了进程还活着,界面停在处理中,排队消息没人取;Windows 上落盘遇到文件占用就会这样 - 按 Cortico 的 loop-exit 日志判断,上报 crash 后走正常关机,应用照崩溃重启(5 分钟内最多 5 次),重启后补投未送达的消息 - Closes #270 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(core): Coo 默认上下文阶段预算 128k,交接保留比例 0.25 - 只改 Coo 的默认值,不动 Cormini;在「上下文与交接」里保存过的配置保留原值,不迁移 - Closes #288 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- 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.
[WebUI]::改回[Console]::。改名时被一起替换,PowerShell 报找不到类型后继续执行,对话框照弹,但路径没写到 stdout、退出码 0,前端当成取消。影响所有走/api/path-picker的按钮。选择文件夹按钮无效 Coopanion#289core-state.json、timers.json的 rename 和会话记录的追加、重写,在 Windows 上遇到 EBUSY/EPERM/EACCES 时退避重试,总共约半秒,仍失败照原样抛出(同 graceful-fs)。杀毒软件、索引器、同步盘会在文件刚写完时短暂独占它。一轮结束后「忙」状态没收尾:气泡下的「…」一直挂着,新消息卡在「排队中」,点「立即发送」也无效,只能重开 app(0.2.4) Coopanion#270event: 'loop-exit',宿主按 event 决定是否重启;Core 自己的行为不变验证:
pnpm test(5007 通过)与pnpm run typecheck全绿;新测试覆盖 Windows 上占用两次后放开时 save 落盘、一直占用时抛出。PowerShell 改名的后果在本机 PowerShell 里确认过;没在真机点过选文件夹按钮,潜影盒没进游戏实测。🤖 Generated with Claude Code