Skip to content

Preserve explicit function call rejections when approving another call - #6237

Open
markstuart-oai wants to merge 1 commit into
mainfrom
fix/preserve-function-rejections
Open

markstuart-oai wants to merge 1 commit into
mainfrom
fix/preserve-function-rejections

Conversation

@markstuart-oai

@markstuart-oai markstuart-oai commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

On v0.26.0, rejecting function call A and then approving B with always_approve=True has been clearing A's rejection. On resume, the SDK has been executing A, B and a later call C to the same function.

With this change, the SDK has been clearing only B's per-call rejection. A has been retaining its rejection and message, while B and C have been running. Explicitly approving A has still been reversing its rejection. No change to other tool types, always_reject or the checkpoint format. No recovery for decisions already erased.

Test plan

Both the streamed and non-streamed regression cases have been failing on v0.26.0 and unmodified main. With the patch, only B and C have been running. Checks for both decision orders and agent scope have been passing. After saving A's rejection on v0.26.0 and approving B with the patch, unmodified v0.26.0 has been reading the new checkpoint and honoring A's rejection in both modes.

With only this patch on main (6afdd47), 867 unmodified tests from v0.26.0 (0ad2d63) and 870 tests from main, including the new regression coverage, have been passing in the affected suites.

Full local SDK verification with this patch alone on Linux and Python 3.12. Formatting, lint and type checks passing. 12,872 tests passing, 30 skipped.

Issue number

Related to #6072.

Checks

  • Regression coverage
  • .agents/skills/code-change-verification/scripts/run.sh for this patch alone
  • All local verification steps passing
  • Separate /review before submission

@markstuart-oai
markstuart-oai marked this pull request as ready for review November 28, 2026 00:42
@markstuart-oai
markstuart-oai requested review from a team, rm-openai and seratch as code owners November 28, 2026 00:42
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T00:42:47.014063Z 4209058 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-28T00:43:22.679370Z 4209058 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
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