Skip to content

Conversation

yuyutaotao
Copy link
Collaborator

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

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.

ℹ️ 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

const timeRemaining = checkIntervalMs - (now - startTime);
const sleepTask = await this.taskForSleep(timeRemaining, modelConfig);
await taskExecutor.append(sleepTask);
}

Choose a reason for hiding this comment

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

P1 Badge WaitFor polling ignores executor error state

When a waitFor query task fails (e.g. the AI extractor throws on malformed data), taskExecutor.flush() leaves the executor in the error state but the new loop continues and immediately calls taskExecutor.append again for the sleep task. Because append asserts that the executor is not in error, this raises "executor is in error state, cannot append task" instead of returning the executor with the original error information, reintroducing the bug the deleted regression test covered. A failing waitFor now aborts with an assertion instead of surfacing the AI error in the result, so any scenario where the first waitFor iteration errors will crash the call.

Useful? React with 👍 / 👎.

@quanru quanru merged commit 23c49d3 into 1.0 Oct 20, 2025
2 checks passed
@quanru quanru deleted the feat/refine-recorder branch October 20, 2025 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants