修复策划agent panic死掉问题 #405

Merged
lhk229 merged 6 commits from codex/fix-design-panic-boundary into master 2026-09-17 18:11:54 +08:00

6 Commits

Author SHA1 Message Date
lhk229 5f332a068f Merge branch 'master' into codex/fix-design-panic-boundary
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Has been cancelled
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / AI game creator shell web tests (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust smoke (pull_request) Has been cancelled
Project CI / AI game creator shell Rust crates (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
2026-09-17 18:11:37 +08:00
lhk229 1a88ae3ffa Merge remote-tracking branch 'origin/master' into codex/fix-design-panic-boundary
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Successful in 6m25s
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Successful in 5m39s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 1m48s
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Successful in 4m50s
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Successful in 4m34s
Project CI / AI game creator shell Rust crates (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / AI game creator shell web tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
2026-09-17 09:53:18 +00:00
lhk229 958078def8 修复策划panic测试的env变量泄漏
新增静态互斥锁串行化进程级debug开关修改
DesignDebugEnvGuard在drop时恢复原值,覆盖断言失败与panic路径
锁中毒时取内部值继续,避免失败放大到后续用例
2026-09-17 09:52:40 +00:00
lhk229 73729394e2 策划panic时把代码位置和负载写入design_debug
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust smoke (pull_request) Has been cancelled
Project CI / AI game creator shell Rust crates (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / AI game creator shell web tests (pull_request) Has been cancelled
运行段经tokio task-local携带项目根,多线程runtime跨worker迁移也能归因
首次运行安装panic hook(take_hook包装原hook,update_hook在1.96仍unstable)
hook仅在策划运行段内生效,其它任务直接透传原hook
design_panic_error只返回固定公开文案,debug记录由hook统一写入
回归测试断言panic记录落盘且包含design_runtime.rs位置与注入payload
2026-09-17 09:27:48 +00:00
lhk229 97bf8cb864 Merge remote-tracking branch 'origin/master' into codex/fix-design-panic-boundary
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust smoke (pull_request) Has been cancelled
Project CI / AI game creator shell Rust crates (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / AI game creator shell web tests (pull_request) Has been cancelled
2026-09-17 09:11:39 +00:00
lhk229 927616eb59 为策划Agent运行段增加panic边界
finish_design_command 的 run_design_loop 调用包入 catch_unwind,panic 转成普通失败由既有错误分支恢复
新增固定公开文案:策划运行发生内部错误,本轮已中断,可直接重试;若反复出现请反馈。
panic 负载仅写入私有 design_debug,不进入用户可见消息
新增回归测试 design_tool_panic_becomes_visible_retryable_error 覆盖 panic 恢复与重试
实施计划文档新增策划 Agent 运行 panic 边界小节
2026-09-17 09:10:54 +00:00