feat(agent): 墙钟超时改为就地收尾,移除外部硬 ctx 兜底
依赖 norma v0.3.6:MaxDuration 到点会打断在跑工具并就地进收尾(在活 ctx 上按收尾轮数续跑落库+总结,终态 timeout),不再依赖 worker/planner 各自 的 maxDur+90s 外部硬 ctx 把卡住的 run 直接杀成 aborted_tools。 - worker/planner: 删除 WithTimeoutCause 硬 ctx 与 settleHardGrace 常量, run 直接用 ctx(仅承载 pause/kill/shutdown)。 - chat 走同一 harness 自动获得同样行为;mainagent 无 MaxDuration 不受影响。 - terminalreason: 更新 ReasonTimeout 文案。
This commit is contained in:
1 parent
aa12706ed1
commit
64b08f518f
5 files changed
+12
-30
No files matched your search
@@ -1,5 +1,5 @@
|
||||
github.com/Autumn-27/norma v0.3.5 h1:zYJKoN+SNi3iscednrw21xsW48jUD55CT6RdySP15MA=
|
||||
github.com/Autumn-27/norma v0.3.5/go.mod h1:BudWrf7iHl96FgHqFr/HwN3mKYmGjJDt+xL2ZHXfFZw=
|
||||
github.com/Autumn-27/norma v0.3.6 h1:cx68eNW8igG2I9Ed9EIsElelJn9ll9WW2HH3OhYh6fA=
|
||||
github.com/Autumn-27/norma v0.3.6/go.mod h1:BudWrf7iHl96FgHqFr/HwN3mKYmGjJDt+xL2ZHXfFZw=
|
||||
github.com/andybalholm/brotli v1.2.1 h1:R+f5xP285VArJDRgowrfb9DqL18yVK0gKAW/F+eTWro=
|
||||
github.com/andybalholm/brotli v1.2.1/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY=
|
||||
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so=
|
||||
|
||||
Reference in new issue
Block a user