Skip to content

Add role-specific subagent nickname overrides#13218

Merged
gabec-openai merged 3 commits intomainfrom
codex/nickname-overrides
Mar 4, 2026
Merged

Add role-specific subagent nickname overrides#13218
gabec-openai merged 3 commits intomainfrom
codex/nickname-overrides

Conversation

@gabec-openai
Copy link
Contributor

Summary

  • add nickname_candidates to agent role config
  • use role-specific nickname pools for spawned and resumed subagents
  • validate and schema-generate the new config surface

Testing

  • just fmt
  • just write-config-schema
  • just fix -p codex-core
  • cargo test -p codex-core
  • cargo test

@gabec-openai gabec-openai requested a review from jif-oai March 2, 2026 10:23
@gabec-openai gabec-openai force-pushed the codex/nickname-overrides branch from a9f7b3d to f3d29fe Compare March 2, 2026 23:17
@gabec-openai
Copy link
Contributor Author

@jif-oai addressed all your comments, thanks!

Copy link
Collaborator

@jif-oai jif-oai left a comment

Choose a reason for hiding this comment

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

LGTM once my last comment is processed

}
}

fn normalize_agent_role_nickname_candidates(
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: can we do stronger normalization? I would like prevent user from inserting <, &, ... to prevent XML collision or bad interpretation from the model

Same thing for non-UTF-8

Basically we could accept only alphanum and , -, _ or something like this

gabec-openai and others added 3 commits March 3, 2026 19:40
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
@gabec-openai gabec-openai force-pushed the codex/nickname-overrides branch from 2db9cfb to 1fed499 Compare March 4, 2026 03:47
@gabec-openai gabec-openai enabled auto-merge (squash) March 4, 2026 04:30
@gabec-openai gabec-openai merged commit 2e154a3 into main Mar 4, 2026
53 of 56 checks passed
@gabec-openai gabec-openai deleted the codex/nickname-overrides branch March 4, 2026 04:43
@github-actions github-actions bot locked and limited conversation to collaborators Mar 4, 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.

2 participants