Skip to content

fix(codex): correct codex reasoning effort conversion#6523

Merged
DOsinga merged 1 commit intoblock:mainfrom
fgsch:fgsch/push-myvmtlqpzszu
Jan 28, 2026
Merged

fix(codex): correct codex reasoning effort conversion#6523
DOsinga merged 1 commit intoblock:mainfrom
fgsch:fgsch/push-myvmtlqpzszu

Conversation

@fgsch
Copy link
Contributor

@fgsch fgsch commented Jan 15, 2026

Summary

Use inner String conversion so CODEX_REASONING_EFFORT parses correctly and doesn’t warn/fallback.

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Manual testing

Related Issues

Relates to #6515
Discussion: LINK (if any)

Screenshots/Demos (for UX changes)

Before:

After:

Copilot AI review requested due to automatic review settings January 15, 2026 22:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug in the codex reasoning effort configuration parsing where the value was incorrectly converted using the Display trait instead of extracting the inner value, causing validation to fail and trigger warnings.

Changes:

  • Changed .map(|r| r.to_string()) to .map(String::from) for proper extraction of the inner String value from the CodexReasoningEffort wrapper type

Use inner String conversion so CODEX_REASONING_EFFORT parses correctly
and doesn’t warn/fallback.

Signed-off-by: Federico G. Schwindt <[email protected]>
@fgsch fgsch force-pushed the fgsch/push-myvmtlqpzszu branch from 5cef842 to 3b4524e Compare January 15, 2026 22:55
@DOsinga DOsinga merged commit 4d60869 into block:main Jan 28, 2026
18 checks passed
@DOsinga
Copy link
Collaborator

DOsinga commented Jan 28, 2026

thank you and sorry for the delay!

eliasposen pushed a commit to eliasposen/goose that referenced this pull request Jan 28, 2026
Signed-off-by: Federico G. Schwindt <[email protected]>
Signed-off-by: Elias Posen <[email protected]>
@fgsch fgsch deleted the fgsch/push-myvmtlqpzszu branch January 29, 2026 01:31
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.

2 participants