fix(web): recover unknown prompt admissions - #492
Open
qwertvgty wants to merge 4 commits into
Open
Conversation
qwertvgty
force-pushed
the
codex/fix-463-admission-unknown
branch
from
September 8, 2026 10:42
a5547ae to
82ee3ff
Compare
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.
Problem
修复 #463。
网络异常后,Web 会复用原来的
commandId重试消息。如果 Host 已经找不到这条请求的接收记录,会返回COMMAND_ADMISSION_UNKNOWN。此前前端会继续保留旧请求身份,后续重试一直失败,同时界面可能停留在“正在准备任务”。用户既无法判断上一条消息是否真正送达,也无法从当前界面安全地继续操作。
Value
让接收状态不确定的消息有明确的处理出口,同时保留现有的防重复执行保护。
前端不会再把 UNKNOWN 当成任务正在运行,也不会自动生成新身份重新发送。是否重新发送由用户决定,并明确提示可能产生重复消息。
Approach
COMMAND_ADMISSION_UNKNOWN。commandId后重新发送,并提示可能产生重复消息。Validation
bun run test:1351 个通过,9 个跳过,4 个无关的并发或环境时序用例失败;对应文件隔离重跑均通过。bun run check中配置检查、纪律检查、Web 类型检查和构建通过;全仓格式检查仍受当前 Windows 工作区已有 CRLF 问题影响,共报告 118 个无关文件。Impact