feat(core): session runner hot path — turn timeout, incremental history, snapshot dedupe - #181
Merged
Merged
Conversation
…ry, snapshot dedupe - agent 配置新增 timeout 字段(NonNegativeInt;运行时 0/未设回退默认 600s,杜绝 0=立即超时);resolveTurnTimeout 按 Config.entries lowest→highest 取最后匹配(findLast,修全局配置压过项目配置的优先级反转) - DEFAULT_PROVIDER_TURN_TIMEOUT 独立常量(packages/core 不跨包引用 opencode dag 配置,注释说明) - history 增量读取(afterSeq 游标)+ decode 回归 Schema.decodeUnknownEffect typed 错误通道(去 try/catch 与 as 断言) - runner 光标缓存随 drain 全出口 ensuring 逐出,baselineSeq 校验防陈旧;批处理 withBatch 收敛 - snapshot 助手更名 captureDeduped(名实相符:始终 capture、tree ID 去重),调用点同步 - 测试:history-incremental、session-runner-hotpath(busy-wait 改有界 waitUntil+timeoutOrElse,stub 按 test AGENTS.md 约定)、tool-events 适配
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.
内容
turn timeout 栈
增量 history + decode
runner 状态卫生
snapshot
测试