Skip to content

fix: ma2#16238

Merged
jif-oai merged 5 commits intomainfrom
jif/fix-ma2
Mar 31, 2026
Merged

fix: ma2#16238
jif-oai merged 5 commits intomainfrom
jif/fix-ma2

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented Mar 30, 2026

No description provided.

@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented Mar 30, 2026

@codex review

Copy link
Copy Markdown
Contributor

@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.

Reviewed commit: 671b9fb4bb

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

@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented Mar 30, 2026

@codex review

Copy link
Copy Markdown
Contributor

@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.

Reviewed commit: f121c95b60

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

if active_turn.is_some() {
return;
}
*active_turn = Some(ActiveTurn::default());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Badge Don't mark active_turn before scheduling task

Setting active_turn to Some(ActiveTurn::default()) before the new turn is actually spawned creates a false "active" window. During that window, interrupt_task() will run abort_all_tasks(Interrupted) and call maybe_start_turn_for_pending_work() again, while this original call continues. That can start overlapping synthetic turns or restart work after an interrupt.

Useful? React with 👍 / 👎.

@jif-oai jif-oai merged commit 25fbd7e into main Mar 31, 2026
22 checks passed
@jif-oai jif-oai deleted the jif/fix-ma2 branch March 31, 2026 09:22
@github-actions github-actions bot locked and limited conversation to collaborators Mar 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant