Sitelet https://github.com/microsoft/autogen/pull/8086
Skip to content

fix: preserve CodeExecutorAgent retry settings - #8086

Open
YZJF,YCDG,DJLY,ZZZB (YZJF) wants to merge 1 commit into
microsoft:mainfrom
YZJF:codex/preserve-code-executor-retries
Open

fix: preserve CodeExecutorAgent retry settings#8086
YZJF,YCDG,DJLY,ZZZB (YZJF) wants to merge 1 commit into
microsoft:mainfrom
YZJF:codex/preserve-code-executor-retries

Conversation

@YZJF

@YZJF YZJF,YCDG,DJLY,ZZZB (YZJF) commented Aug 23, 2026

Copy link
Copy Markdown

Why are these changes needed?

CodeExecutorAgent exposes max_retries_on_error, but its component configuration did not serialize that setting. Reloading a saved agent, team, or Studio configuration therefore silently reset the retry count to 0. This change preserves the configured value across component serialization and adds a regression test for the round-trip.

Related issue number

N/A — no matching open issue or implementation PR was found during the submission audit.

Checks

  • No documentation changes are needed; this restores the existing configuration contract.
  • I've added tests corresponding to the changes introduced in this PR.
  • I've made sure all auto checks have passed.

Focused local validation completed:

  • test_code_executor_agent.py: 27 passed
  • Changed-file format and lint checks
  • Focused mypy and pyright checks

@YZJF

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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