Skip to content

Handle malformed agent role definitions nonfatally#14488

Merged
gabec-openai merged 1 commit intomainfrom
fix-nonfatal-agent-role-parse-errors
Mar 12, 2026
Merged

Handle malformed agent role definitions nonfatally#14488
gabec-openai merged 1 commit intomainfrom
fix-nonfatal-agent-role-parse-errors

Conversation

@gabec-openai
Copy link
Copy Markdown
Contributor

Summary

  • make malformed agent role definitions nonfatal during config loading
  • drop invalid agent roles and record warnings in startup_warnings
  • forward startup warnings through app-server configWarning notifications

Testing

  • cargo test -p codex-core agent_role_ -- --nocapture
  • just fix -p codex-core
  • just fmt
  • cargo test -p codex-app-server config_warning -- --nocapture
Drop invalid agent role definitions instead of failing config load, surface the issue via startup warnings, and forward those warnings through app-server configWarning notifications.

Co-authored-by: Codex <noreply@openai.com>
@gabec-openai gabec-openai merged commit 4fa7d6f into main Mar 12, 2026
35 of 36 checks passed
@gabec-openai gabec-openai deleted the fix-nonfatal-agent-role-parse-errors branch March 12, 2026 18:20
@github-actions github-actions bot locked and limited conversation to collaborators Mar 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants