Skip to content

fix(sessions): 来源会话 Stop 成功后保留确认结果 - #2383

Merged
vastsa merged 1 commit into
vastsa:mainfrom
yg2224:fix/native-stop-refresh-failure
Nov 16, 2026
Merged

vastsa merged 1 commit into
vastsa:mainfrom
yg2224:fix/native-stop-refresh-failure

Conversation

@yg2224

@yg2224 yg2224 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Native 和远端停止确认不能被后续详情读取错误撤销。先记录确认结果,再刷新来源正文;刷新失败保持已知内容并仍报告错误。

修复后的效果:Native Pi 或远端 Stop 确认成功后,先更新对应运行标记,再读取来源详情。后续读取失败仍保持停止及已知消息,并显示刷新错误。Stop 拒绝时继续保留运行状态。

主要生产文件:apps/desktop/src/stores/slices/transcript-slice.ts。新增生产入口回归与专项 Electron 检查,并按当前主线的英文技术文档规则更新规格和 E2E domain catalog。

旧代码 Native Pi 和 remote 两条回归在停止 API 成功、详情读取失败后仍留下 running=true;修复后通过,另验证停止拒绝不会清运行标记。相关停止、Native Pi 和 terminal 回归 43/43 通过。专项 Electron 点击生产 ComposerToolbar 的 Stop,刷新错误显示、按钮回到 Send、旧正文保留。

Desktop 原始 tsc -p apps/desktop/tsconfig.json --noEmit、样式和 diff 检查通过。宿主旧 workspace 产物缺少最新字段,已在任务树独立重建 shared/agent-host 并链接,未改共享依赖;缺少的 Markdown/CJK 包按锁文件版本及 SHA-512 校验下载到任务缓存。文档检查通过;store 文件不在 Biome includes,不声称该区域运行 Biome。

候选 9ab36de,基线 2cf29f0;Node D:/pi/toolchain/node.exe。专项 Electron 使用实际 BrowserWindow、生产 store/组件和受控外部 API、独立临时 profile,无真实用户配置、真实远端、付费 provider。专项测试不是完整应用 bootstrap E2E,后者未运行。

Refs #1990。只修复与该反馈相关的确定路径,未声称全部根因已解决。等待最新 head CI 和人工评审,不合并或发布。

2026-11-16 23:40 复查:上述最新 head 六项 CI 全部 SUCCESS,无 pending、无失败。主线仍为 2cf29f0,无冲突,GitHub merge-ref 源码树再次逐项核对与本地已验证候选相同。当前等待人工评审,尚未批准或合并。

Native 和远端停止确认不能被后续详情读取错误撤销。先记录确认结果,再刷新来源正文;刷新失败保持已知内容并仍报告错误。

Refs vastsa#1990

@aiuo-codepilot aiuo-codepilot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

AIUO CodePilot · Preliminary review

Diff-only preliminary review of the confirmed Stop ordering change and its added regression/E2E fixtures. The production patch marks the source stopped after a successful abort and before the detail read; added tests assert preserved transcript and rejected-Stop behavior. No evidenced correctness defect is identified from the shown lines. Verification is limited to the supplied diff and text: tests, type checks, Electron execution, and repository state were not run or inspected.

No evidenced findings in the supplied diff.

Head: 9ab36de
Base: 2cf29f0
CI: success; mergeable: true.

Validation: code/tests NOT EXECUTED. Diff-only preliminary analysis; not approval. Human review and repository gates remain required.

@vastsa vastsa left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

独立验证:旧主线运行新增回归,Native/remote 两例均复现 abort 成功而 detail 失败后仍 running=true。候选专项 3/3,邻接 smart-stop/stop-rejection/failed-stop 共 13/13 通过;真实 Electron 专项通过(生产 store/ComposerToolbar + 受控 API,非完整应用 bootstrap/真实远端)。初次邻接测试因宿主旧 shared 导出失败,改用候选 shared 源码解析后通过,未修改共享依赖。生产仅提前提交已确认的停止标记,拒绝 Stop 仍保留运行态,范围合适。六项 CI SUCCESS;最新 main 2cf29f0 已包含,merge-ref tree 与已测试 head tree 同为 87f930cd82fc2ef936c91345a69355b82d5433b5;diff check 通过。

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