Skip to content

Get rid of unnecessary ERROR messages#1827

Closed
easong-openai wants to merge 3 commits intomainfrom
fewer-unnecessary-errors
Closed

Get rid of unnecessary ERROR messages#1827
easong-openai wants to merge 3 commits intomainfrom
fewer-unnecessary-errors

Conversation

@easong-openai
Copy link
Copy Markdown
Collaborator

When interrupting a model turn with ctr-c or at end of exec, we print an ERROR message, which is jank. Let's not do that.

id: self.sub_id,
msg: EventMsg::Error(ErrorEvent {
message: "Turn interrupted".to_string(),
msg: EventMsg::BackgroundEvent(BackgroundEventEvent {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's introduce a new variant in EventMsg for this and then let the UI decide how it wants to present it.

Comment thread codex-rs/exec/src/lib.rs
error!("Error sending event: {e:?}");
break;
}
if is_shutdown {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't think this is a safe way to change the control flow.

@bolinfest
Copy link
Copy Markdown
Collaborator

FYI, I have #1864 to fix this now.

@github-actions github-actions Bot locked and limited conversation to collaborators Aug 6, 2025
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