Skip to content

修复联网研究取消状态收口 - #93

Merged
2002yy merged 11 commits into
mainfrom
p1/research-cancel-finalization
Jul 31, 2026
Merged

修复联网研究取消状态收口#93
2002yy merged 11 commits into
mainfrom
p1/research-cancel-finalization

Conversation

@2002yy

@2002yy 2002yy commented Jul 31, 2026

Copy link
Copy Markdown
Owner

仅修复 Study Agent ResearchRun 取消闭环:首次取消响应仍为 running 时轮询同一 run 到终态;等待期间不采用研究结果;刷新恢复 cancelled;同一查询从 checkpoint 重试。包含 Vitest 与 desktop/mobile real-stack 回归。Provider 与学习真值不变。

@2002yy
2002yy marked this pull request as ready for review July 31, 2026 09:15
@2002yy
2002yy merged commit b4a996b into main Jul 31, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 907ed21fe7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


const cancel = () => {
const runId = result?.run_id ?? options.activeRunId;
if (!runId) return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Abort lookups before the durable run ID arrives

When the user presses Stop while the initial createResearchRun request is still pending, isBusy has already made the Stop button visible, but neither result nor activeRunId is populated. This early return therefore skips operationRegistry.abort("web_lookup"), allowing the create request to finish and executeResearchRun to start despite the stop action; abort the browser operation even when there is not yet a run ID, while conditionally skipping only the server cancellation request.

Useful? React with 👍 / 👎.

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.

1 participant