Skip to content

Conversation

aibrahim-oai
Copy link
Collaborator

@aibrahim-oai aibrahim-oai commented Sep 14, 2025

image

@aibrahim-oai aibrahim-oai force-pushed the codex/update-header-to-display-model-version-directory branch from da1ed96 to f49a42d Compare September 14, 2025 21:49
@@ -1278,7 +1302,11 @@ impl ChatWidget {

/// Set the model in the widget's config copy.
pub(crate) fn set_model(&mut self, model: String) {
let header_changed = self.session_header.set_model(model.clone());
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would change model to be &str instead of String and avoid clone() when it's not really necessary.

Self { model }
}

pub(crate) fn set_model(&mut self, model: String) -> bool {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please document the return type.

}

impl SessionHeader {
// Keep signature to avoid changing call sites; underscore params silence warnings.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't this new in this PR? Why are these being passed in?

@tibo-openai tibo-openai merged commit ce984b2 into main Sep 15, 2025
19 checks passed
@tibo-openai tibo-openai deleted the codex/update-header-to-display-model-version-directory branch September 15, 2025 00:53
@github-actions github-actions bot locked and limited conversation to collaborators Sep 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants