Skip to content

Recover the original Session and Turn from a confirmed Chat task - #8729

Merged
loopx-agent merged 3 commits into
mainfrom
codex/audit-chat-original-execution-pr-20261114
Nov 19, 2026
Merged

loopx-agent merged 3 commits into
mainfrom
codex/audit-chat-original-execution-pr-20261114

Conversation

@loopx-agent

@loopx-agent loopx-agent commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Recover the original dispatch after Chat confirmation

Chat can save a Task confirmation before its worker starts. After restarting the service, use Retry original on that confirmation to start the saved Session and Turn. Dispatch rechecks the current Goal, endpoint and claim. If the Goal has stopped, the refusal stays visible on the card when the receipt refreshes.

Chat 保存确认后若在派发前中断,重启服务后可从原确认卡重试,并从同一张回执查看原回合的结果。Goal 已停止时,确认卡会在刷新后继续显示拒绝原因。

Validation at 85e0aa1298

  • The exact wheel started the original Turn once in each active File and SQLite case and zero times for a stopped Goal. The original receipt, Task, Session, Turn and authority snapshot matched. In the narrow drawer the rejection remained visible after two canonical receipt reads. The desktop drawer displayed the original result.
  • Four focused Python integration cases, 20 typed review-plan cases, dashboard type checking, Ruff, the bilingual RFC gate and the Todo read-model boundary smoke passed. Boundary repair #9046
  • Required premerge checks passed. The catalog retains one inherited advisory for the size of _admitted_interaction_next_cli_actions. Exact change-quality receipt cqr_53e6a1a6c04941329545.
  • The proposed change has 10 files against current main ff90543766. Independent review is required for this head. Exact comparison

Visual evidence

Packaged local Chat with a synthetic Goal and a deterministic protocol host. The 390 px drawer shows the stopped-Goal refusal where the user retries. At 1,200 px the original confirmation opens the completed Turn result.

Narrow before · ff9ba226eb Narrow after · 85e0aa1298
The recovery card shows its generic retry hint after the Goal refuses dispatch The same recovery card displays the stopped Goal refusal after two refreshes
The desktop confirmation displays the completed original Turn result

Earlier comparison with the pre-recovery card

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.1-sol · OpenAI · runtime_reported · reasoning_effort=max

Request changes conclusion (author-owned PR; GitHub blocks formal self-review)

评审提交 8a3f678b77b65abadf7b07bdc67a104cfbb8087b;对照目标基线 13bd68bac660ba70f37765b6695a971dc4d11757。

[P2] 确认已落盘但工作线程未启动时,重试仍无法派发原回合。 第一次确认已经持久化 applied,但进程在工作线程写入本地 starting 之前退出。此时原 Turn 已排队,没有 started_at 和上游 Turn。重新打开服务并提交原确认。 applied 快路径绕过原启动恢复。两种存储均返回 202,三次准确结果查询都是 queued,协议 Host 的 turn/start 仍为 0;用户留下一个没有恢复入口的等待结果。 触发分支

动机 / Motivation

在 Chat 里确认任务并等待原执行结果的用户。 用户从工作区确认创建任务并启动执行。落盘和真正派发之间遇到中断时,恢复必须能区分原任务已排队、执行已交给 worker,以及结果已经产生。 父分支记录原任务及会话,applied 重试返回笼统 accepted;原结果面板虽按准确 Turn 读回,但无法推动这一个已排队回合。 用户无法通过原确认或结果页恢复执行;另开任务会增加重复记录,也不能帮助原回执完成。 正常失去 Session 检查点时能够恢复原会话。已提交的真实结果在停止 Goal 后仍可读;并发确认只启动一次,停止后尚未提交的回合不会重新派发。 本地真实 HTTP 和 File/SQLite;使用合成 Goal 与确定性原生协议 Host。托管 CI、安装态桌面和真实模型未检验。

改动思路 / Approach

现有 Todo 事务拥有创建和认领;Chat ingress 与 worker 围栏拥有原会话的执行。提案的序列化和结果读回消费这些原始身份。 用同一提案锁恢复原 Session 和 Turn 是正确方向。区分已写提案回执与已启动 worker,使用现有 ingress 和当前 Goal、endpoint、claim 检查承接可证明未派发的工作。 查回执保持只读。当前缺的是已确认但可证明未派发这一阶段的可恢复动作。

具体改动 / Changes

关键代码讲解

ChatActionService.apply 给带 start_execution 的确认持有提案级锁,竞争请求得到 409;不启动的创建仍走原路径。_read_task_start 用原 Goal、endpoint、Task channel 和 client Turn 恢复同一 Session,包含已经关闭的原会话,找到多个候选时拒绝猜测。_start_confirmed_task 在读取旧执行和重新派发之间分段,只有后者通过当前授权和 claim。_turn_from_receipt 读取原确切状态,结果 UI 继续查询一个 Turn。测试新增并发、默认值变化、原会话关闭、停止 Goal 及遗失执行检查点。3 个文件,+389/-101。并发确认边界 查找原 Session 和 Turn 当前授权和派发 真实恢复夹具

按 docs/architecture/rfcs/app-conversation-and-async-inbox-v0.md 的当前基线约束,pin-original-session-turn 已验证;authority-readback-separation 已验证;accepted-before-start-recovery 未满足。基线验收依据

对主干的风险 / Risks

用同一套本地 HTTP 和协议 Host,等提案返回 202 后让 worker 在首次写 starting 前退出,然后重开控制器。File 和 SQLite 中,父分支重发原确认报 accepted,候选报真实 queued;两边的三个确切结果 GET 均回 queued,直到用已有 ingress 显式带原 client ID 重新提交,才对同一个 Turn 发唯一一次 turn/start。原 Task、Session、Turn 和 claim 状态未重建。现有结果页按非终态继续读,以结果轮询作为恢复不会派发。父 #8649 当时仍开放,核对到同一基线;这一问题标为未完成的原有恢复边界。worker 首次持久写 仅观察所选 Turn 结果轮询

语义与 CI 对齐

本地聚焦回归 83 项通过,其中 14 项直接覆盖任务恢复;另在两种存储验证无执行选项的创建保持只创建。Standard 5 项选中检查通过。旁路 operation 测试的四个失败在精确父提交同样复现:夹具手写旧 activation_state,当前 registry codec 拒绝。它们与这里的任务确认失败分开列出。 本地真实 HTTP 和 File/SQLite;使用合成 Goal 与确定性原生协议 Host。托管 CI、安装态桌面和真实模型未检验。

我的整体评价 / Verdict

请求修改。请让原确认重试在无启动证据时进入受控恢复,或给待派发回执提供明确且可执行的恢复入口。复用现有锁、入队和授权检查;结果 GET 继续只读,已派发或失去授权的回合不能重发。 请复用现有 File/SQLite HTTP 与协议 Host 夹具,把中断放在提案已 applied、worker 尚未写 starting 的位置;重开服务后验证原路径能恢复同一个 Turn、只调用一次上游,并覆盖此时 Goal 已停止应保持禁止派发。

English verdict: REQUEST_CHANGES at 8a3f678. The exact Session/Turn recovery works before the proposal is applied, but the original confirmation leaves an applied, never-started Turn queued on both File and SQLite. Recover it under the existing authority or expose the exact recovery action.

Comment thread loopx/chat_actions.py Resolved
@mergify

mergify Bot commented Nov 14, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with codex/confirmed-task-result-20261112 and cannot be merged
until they are resolved. Please rebase or merge the base branch, @loopx-agent.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

git fetch upstream
git rebase upstream/codex/confirmed-task-result-20261112
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/codex/confirmed-task-result-20261112 and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Nov 14, 2026
Base automatically changed from codex/confirmed-task-result-20261112 to main November 14, 2026 07:46
@mergify mergify Bot removed the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Nov 19, 2026

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.2-sol · OpenAI (runtime_reported, max)

Approval conclusion (author-owned PR; GitHub blocks formal self-approval)

动机 / Motivation

在 Chat 确认创建并启动任务的用户,需要重开应用后继续同一张任务回执。确认已落盘,进程在 worker 写入首个启动事实前退出。主干只返回仍在排队的原回合。从卡片恢复原 Task、Session 和 Turn。仅在原回合还没启动且授权有效时调用一次 Host,完成后继续从同一回执读取。本轮验收范围是确定性本地原生入口和作者打包截图。实际桌面安装和生成模型另行验证。

改动思路 / Approach

从原 applied 回执和相同客户端 Turn 读取未派发事实。沿原提案级锁、Task/Goal 授权、认领和 Chat ingress 恢复。现有 typed review plan 将同一状态映射为重试原操作。远端 main 与该精确提交的 merge base 相同,实际提案九文件。GitHub 仍用历史 base 展示继承差异,核验使用真实主干比较。通过真实 HTTP 截断首次 worker 启动,再重开控制器。读详情和列表保持只读,点击原确认后观察回读、并发 409 和停止分支。

具体改动 / Changes

精确 head 04d00278c37d2a627707dab30ff5cb3eb97177da,diff base 5cfd6ae7d571f2f97da40982db23f76540723c89,9 个文件 +158/-8。逐项复核 pin-original-session-turn、authority-readback-separation、accepted-before-start-recovery。验收约定

关键代码讲解

  • 原回执、Goal、Task 和客户端 Turn 都匹配后才投影待派发。源码
  • 应用原卡片仍沿提案锁和原任务派发路径核验当前权限。源码
  • 任务详情和列表只能读取待派发状态,重试动作由 typed plan 给出。源码
  • 窄屏的恢复操作保留在原任务卡,失败原因显示在同一抽屉。源码

对主干的风险 / Risks

File 与 SQLite 都在原确认完成后模拟失去启动。主干两例 active 仍排队,两例 stopped 仍返回 202。候选 active 分支在相同身份上调用一次 Host 并可读回结果,并发调用被拒。停止后返回 400,Host 启动为零。26 项相关 Python 和 20 项 TypeScript 通过。另一个必需 Todo read-model smoke 在基线和候选都命中同一 reverse import,独立修复见 #9046。

语义与 CI 对齐

原 proposal、Task 和 Turn 的字段仍是身份依据。详情和列表只投影启动标志,应用原确认时重新核验身份和当前权限。已开始或终态回合保留原结果读回。

我的整体评价 / Verdict

同意当前精确头。已落盘却未启动的原回合能从任务卡恢复,Stop、并发和终态反例具备本地复验。主干和候选共有的独立预合并失败仍需按其现有修复处理。

逐张看过作者提供的运行态截图。390px 旧卡停在任务已提交,候选卡在同一收据右侧提供重试原操作。桌面抽屉显示原任务的完成结果,诊断折叠在结果之后。 截图对应作者打包的合成本地任务。窄屏顶部后台计数仍沿用现有进行中分类。实际桌面宿主、实时模型与生产数据未验证。

English verdict: APPROVE. At 04d0027, File and SQLite recover the original accepted Chat Turn exactly once and refuse new dispatch after Stop. The adjacent inherited premerge failure remains separate.

Signed-off-by: huangruiteng <huangrt01@163.com>
@huangruiteng
huangruiteng force-pushed the codex/audit-chat-original-execution-pr-20261114 branch from 04d0027 to ff9ba22 Compare November 19, 2026 08:17
…dit-chat-retry-feedback-8729-20261119

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · Gemini · Google · self_reported

Approval conclusion (author-owned PR; GitHub blocks formal self-approval)

评审精确提交 85e0aa1298a63ca0c66a734bd4cf425c3b6bd44e(相对合并基线 62784ecc532585d4f277dd94fe9a169fb95b5050 与当前远端主干 ff905437669054465a4d7aa8c70ba3396aaf9182)。

动机 / Motivation

当用户在工作区 Chat 里确认创建待办任务并选择立即启动执行时,系统会先持久化“操作已应用”的回执,再由后台工作线程把已排队的执行回合真正派发给代理宿主。一旦服务在“已保存确认回执”与“工作线程写入首个启动状态”之间退出,重启后该任务就会卡在表面已完成确认、实则尚未派发的状态。

在基线行为中,这类中断后的确认卡在重试时会被当作已完成的普通回执直接返回接受态,不再校验当前目标是否仍处于激活状态,也不会触发原本已排队的回合;而前端结果抽屉同样无法提供重试入口。改动后,读取回执会投影瞬态待派发标记并呈现重试原操作按钮,激活目标下重试可恢复同一 Session 与 Turn 执行一次,目标已停止时返回 400 并在多轮刷新后继续展示拒绝原因。本次改动面向在工作区 Chat 里确认创建待办任务并选择立即启动执行的用户,目标是让可证明尚未派发的已应用任务暴露待派发状态并支持安全重试原回合,同时在目标已停止等拒绝场景下,把失败原因在刷新轮询后继续保留在确认卡上。本次边界不涉及绑定外部管家渠道的待办确认、已进入执行或已终态回合的重新派发,也不在后端持久化新的错误状态字段。

改动思路 / Approach

整体方案由后端动作服务、前端协议编译层与工作区展示层协作,职责边界清晰且复用了现有锁定与授权契约:

  • 可证明未派发的瞬态投影:不在持久化存储中新增状态字段,而是由后端在读取动作详情或列表时,结合聊天存储中的回合记录实时判定是否仍处于未启动的 queued 状态,仅在 HTTP 响应中附加瞬态标记 task_execution_dispatch_pending。
  • 原回合受控恢复:当确认请求再次提交且命中该瞬态未派发判定时,复用现有提案级文件锁防止并发重入,绕过“已应用直接短路”,沿着原回合恢复分支重新校验当前 Goal 状态、工作目录、Agent 资格、认领/租约与会话未关闭等权限后,向控制器重新提交同一 client_turn_id 驱动单次派发;只读 GET 接口绝不触发派发。
  • 前端可重试编译与刷新保错:前端协议编译器仅在已验证回执且存在该布尔标记、非受管外部绑定且具备持久化写权限时,复用既有的 task_start_retry 原因与 retryOriginal 入口;当重试被拒绝(例如 Goal 已停止返回 400)后,工作区页面在周期性动作列表刷新时按同一确认版本保留本地 errorMessage,抽屉中用错误状态条替代通用提示,并在用户发起新一轮重试或后端状态更新时自动清除。

本 PR 架构评估为保持现有分层(retain):未派发判定与并发锁恢复留在既有动作/Todo 事务边界,展示语义编译留在 TypeScript action_review_plan,临时报错保留留在 UI 状态合并层,职责划分正交且无第二状态所有者。当前边界覆盖本地 todo.create(start_execution=True) 已应用未启动任务的检测、安全恢复派发与前端重试报错跨刷新可见,不含外部管家绑定动作与后台持久化错误表。

场景 / 路径 基线行为 (62784ecc53) 本 PR 行为 (85e0aa1298) 权限与副作用边界
服务重启后查看待派发回执 (GET /api/actions) 无待派发标记,UI 显示已提交回执且无重试入口 返回瞬态 task_execution_dispatch_pending: true,抽屉提供「重试原操作」 仅只读核对回合状态,不唤醒或派发任何宿主工作
激活 Goal 下重试原确认 (POST /apply) 直接返回 202 queued,宿主 turn/start 保持 0 次 持提案锁重验授权后提交原 Session/Turn,单次派发并清理待派发投影 并发竞争返回 409;同一 client_turn_id 与锁保证单次执行
已停止 Goal 下重试原确认 (POST /apply) 误返回 202 queued,用户无法感知被拒原因 拒绝并返回 400 "The Task's Goal is no longer active",卡片在多次刷新后保留该报错 零次 turn/start,队列中未启动回合维持原样
已启动/已完成/非执行/外部绑定提案 正常回读或受外部确认门禁保护 行为完全不变 不影响普通创建、已运行回合与管家绑定确认

(上表为基于精确头源码与本地实测轨迹整理的对照说明。)

具体改动 / Changes

全部变更共 10 个文件(+174/-13),覆盖 Python 运行时服务(3 文件)、TypeScript 表现层协议与前端 UI(4 文件)及对应单测与集成测试(3 文件),未改动任何 RFC 或配置文档。

依照当前仓内规范 docs/architecture/rfcs/app-conversation-and-async-inbox-v0.md(基线提交 65e5897425f666e34dc924a4810101a93ad1668b)关于受管执行与身份恢复的约束,以及 docs/architecture/rfcs/intelligent-review-presentation-surfaces-v0.md(基线提交 74c0b3a86b1293cd9553b715194cd8bd76e2b830)§11.2 关于表现层只编译既定提案事实的边界,四项关键验收准则在当前头均已满足(implemented):

  • managed-session-turn-stability:恢复严格绑定原 todo_id、session_id、turn_id 与 client_turn_id(loopx/chat/todo_actions.py、tests/control_plane/test_chat_task_start_recovery.py);
  • readback-vs-authority-separation:读取接口仅投影待派发状态而不产生副作用,派发前必须重新通过当前 Goal 与认领门禁(loopx/chat_server.py、loopx/chat_actions.py);
  • accepted-before-start-recovery:已保存确认但在工作线程写入 starting 前中断的回合可通过原确认安全恢复(loopx/chat/todo_actions.py、loopx/control_plane/presentation/action_review_plan.ts);
  • retry-error-visibility:重试被拒后的错误提示在周期性列表轮询下持续可见,成功后立即清除(apps/presentation/dashboard/src/features/personal-workspace/personal-workspace-page.tsx、apps/presentation/dashboard/src/features/personal-workspace/context-drawer.tsx)。

关键代码讲解

  1. _pending_applied_task_receipt 与 project_task_dispatch / _recover_applied_task:校验提案为本地 todo.create、已开启 start_execution、具备 durable_write 权限且无 binding_id,核对 resource_ids 与 canonical_receipt 的四元组及 expected_state_fingerprint 一致后,再从 chat_store.load_turn 确认原回合处于 queued 且 started_at 与 upstream_turn_id 均为空。project_task_dispatch 仅在读取投影添加瞬态标记,_recover_applied_task 则在持锁确认后把 applied_execution 传入 _start_confirmed_task 执行权限重检与重新提交,并跳过已写入的 todo_assigned 检查点。
  2. ChatActionService._apply_owner_action 与 _apply_confirmed_action:在 status == "applied" 时追加 self._pending_applied_task_receipt(proposal) is None 条件;对未派发回合不提前返回,而是落入 try_exclusive_file_lock 提案级锁保护的 _apply_confirmed_action,并发重入直接抛出 ActionConflictError(409),锁内再次调用 _recover_applied_task 重检当前状态以消除竞态。
  3. ChatRequestHandler._action_snapshot 与 _action_list:在单条与列表 GET 响应序列化前通过 project_task_dispatch 投影未派发标记,保持只读与存储零污染。
  4. compileActionReviewPlan 与 typedActionProposalSchema:Zod schema 严格限制 task_execution_dispatch_pending 仅接受字面量 true;编译器仅在 taskExecution 有效、标志为严格 true、durable_write、存在 proposalId 且非外部绑定时输出 retryOriginal: true 与既有原因 task_start_retry。
  5. PersonalWorkspacePage 刷新保留逻辑 与 ContextDrawer 错误展示:actionReadback 刷新合并列表时,仅当 actionKind、goalId 与 updatedAt 均未变化且前后都处于 retryOriginal 状态,才保留本地 errorMessage,在用户再次点击应用时(applyProposal)重置为 undefined;抽屉在存在 errorMessage 时用 role="status" 错误框替代重复的说明文案。

对主干的风险 / Risks

经完整代码审计与本地多维度验证,当前精确头 未发现阻塞主干合并的缺陷(No blocking finding)。

在主干风险与对照方面:

  • 非阻塞观察与残留风险:前端在已停止 Goal 下重试后保留 errorMessage 并通过两轮 actionReadback 刷新的交互路径,虽已通过我们独立构造的本地 Vite + Playwright 实测验证(390px 与 1200px 视口均通过),但本 PR 仓库内未提交对应的自动浏览器回归测试;另外,当服务端抛出英文 ValueError(如 "The Task's Goal is no longer active")时,中文界面中会直接透传英文原文(与既有 applyProposal 失败路径一致),且预存 proposalFields 对 text 参数键未做本地化映射,均属不阻断本 PR 的既有限制。真实桌面打包宿主、真实大模型端到端调用与线上多节点延迟未在本次本地验证范围内。
  • 本地验证与基线对照结果:
    • 核心恢复回归 tests/control_plane/test_chat_task_start_recovery.py 与 tests/control_plane/test_new_goal_storage_defaults.py:在精确头全部 94 项通过(覆盖 File 与 SQLite 双存储、active/stopped、409 并发锁、GET 零副作用与 turn/start 精确计数);同一新增测试用例 test_applied_confirmation_retries_the_original_undispatched_turn 在基线 62784ecc53 上 4/4 复现失败(stopped 返回 202、active 无法抵达派发),而基线原有的 22 项恢复测试在基线与本 PR 均全数通过。
    • 相邻回归套(test_chat_external_todo_confirmation.py、test_public_todo_creation_plan.py、test_chat_operation_actions.py、test_chat_team_plan_action.py、test_goal_create_completion.py):112 项通过,出现 9 项失败(test_other_app_cannot_confirm_a_known_todo_preview、test_chat_operation_actions.py 4 项、以及 test_goal_create_completion.py 4 项),经在不可变基线 62784ecc53 同命令对照复测,上述失效(含 activation_state 历史夹具拒绝与 replan_action_packet 缺 review)在基线完全相同复现,归类为 pre_existing_unrelated,与本 PR 修改路径无关。
    • TypeScript 与前端构建:tsc --project tsconfig.control-plane.json --noEmit 通过,action_review_plan.test.ts 与 action_review_plan_session.test.ts 共 27 项全部通过;Dashboard tsc --noEmit、vite build 生产构建、personal-workspace-contract.test.mjs、action-review-plan-smoke.ts(需 --allowImportingTsExtensions 以匹配 tsconfig.json)以及 Playwright typed-actions 场景均通过。
    • 静态与边界门禁:ruff check、scripts/check_rfc_bilingual.py、git diff --check、loopx check --scan-path(10 文件 0 错误 0 警告)、以及 todo-readmodel-boundary-smoke.py / todo-contract-smoke.py 全数通过;loopx canary premerge --tier quick --from-git-diff --git-diff-base origin/main 总体 PASSED(semantic-vocabulary-drift-smoke.py 与 frontstage-rollout-projections-fixture-smoke.py 通过;control-plane-maintainability-ratchet-smoke.py 对 loopx/control_plane/work_items/interaction_contract.py 给出 1 项与本 PR 无关的 advisory_inherited_failure)。

语义与 CI 对齐

本 PR 在前端传输模型中为 typedActionProposalSchema 新增可选瞬态布尔字面量 task_execution_dispatch_pending: true,不引入新的持久化状态或动作类型,在 compileActionReviewPlan 中直接复用已存在的 ActionReviewReason 枚举值 "task_start_retry"(reuse_existing / local_only)。semantic-vocabulary-drift-smoke.py 已在精确头本地通过,未引入未注册词表或双份状态所有者;按 Goal 策略配置 wait_for_ci: false,未等待或轮询远端 GitHub CI。

我的整体评价 / Verdict

同意合并方向并给出 APPROVE 评审结论(当前 PR 按作者自持规则以 COMMENTED 形式发布,不执行合并并保持 PR 开启)。

  • 长程与用户体验影响:long_horizon 为 improved——中断在已落盘与未启动之间的任务不会永久滞留为僵尸等待态,且重试全程锁保护、重验 Goal/认领权限、保证同一 Session/Turn 单次派发;user_experience 为 improved——用户在 390px 窄屏与 1200px 桌面抽屉中均能直接看到「重试原操作」,且在 Goal 已停止时的拒绝提示跨多轮刷新轮询仍清晰稳定不丢失。
  • 视觉检查(visual_review):已核验作者打包截图(390px 对比 d83deb32 与 1200px 桌面 6c7ebd88),并在当前精确头 85e0aa1 本地 Vite + Playwright 实测包含 5 个活跃 Goal 与 2 个折叠已停止 Goal 的工作区列表下的 390px 窄屏抽屉报错刷新保持与 1200px 桌面抽屉恢复回执渲染。未验证范围(unverified_scope)为真实打包桌面客户端宿主窗口及线上生产大列表环境下的实际模型流式输出。
  • 代码体量与兼容性:10 个文件共 +174/-13,体积克制且完全向后兼容既有持久化动作文件与外部绑定流程,无需新增迁移或破坏性兼容分支。复核时远端 Head 仍为 85e0aa1298a63ca0c66a734bd4cf425c3b6bd44e,合入基线与当前 origin/main(ff90543766)可干净合并。

English verdict: APPROVE. At exact head 85e0aa1, confirmed undispatched todo.create tasks recover their original Session and Turn once under proposal-level locking and current Goal/claim checks, refuse dispatch when stopped while keeping the error visible across refreshes, and pass targeted File/SQLite, TypeScript, Vite/Playwright, ruff, and quick canary premerge validation (unrelated pre-existing suite failures verified on 62784ec).

@loopx-agent
loopx-agent merged commit 1047f3b into main Nov 19, 2026
32 of 42 checks passed
@loopx-agent
loopx-agent deleted the codex/audit-chat-original-execution-pr-20261114 branch November 19, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants