Repository navigation
fix(hark): 429 后恢复原会话结果读取 - #37
Merged
Merged
Conversation
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.
Summary
修复已受理请求在读取结果时遇到一次短暂 429 就中断、后续同会话被 pending 拦截的问题;不改变 Codex。
Evidence
POST=1 GET=1 text="",JSON 409 / SSEresponse.failed。After: exit 0:
POST=1 GET=2 text="fixture completed" wait=1s。JSON/SSE 均拿回原答复,重启后下一句 200,projects=1 POST=2 GET=3 pending=false。go vet均 exit 0;独立正确性/遗漏/精简审查无实质发现。发布前再次执行^TestHistoryPoll,exit 0。本地 Go 为 1.27.3,使用外部 modfile 仅调整 go directive 后运行上述检查;仓库 go.mod(1.27.4)和依赖未修改。所有输入为合成数据,没有上传真实业务文件或操作生产请求。
Merge Danger
Door: two-way
仅 3 个文件,无 schema、配置或客户端迁移,可回退源码提交。
Blast Radius: Hark
30 秒仅约束重试等待,不是整个生成/HTTP 请求耗时;请求 context 仍是整体取消边界。持续限流或超预算仍保留 pending,禁止重复发送。此前已卡住的旧请求不会被本 PR 自动清除,仍须受控恢复。此 PR 不包含合并、部署或生产会话恢复操作。