mirror of
https://github.com/openai/codex.git
synced 2026-09-15 12:08:01 +00:00
Fix TS optional-nullable export and backtrack clippy lint
This commit is contained in:
@@ -1984,12 +1984,14 @@ pub struct ThreadRolledBackEvent {
|
||||
/// This lets clients synchronize UI mode/model indicators with core after history rewind.
|
||||
/// Optional for backward compatibility with older persisted events.
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional)]
|
||||
pub model_visible_state: Option<ModelVisibleState>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
|
||||
pub struct ModelVisibleState {
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional)]
|
||||
pub collaboration_mode: Option<CollaborationMode>,
|
||||
}
|
||||
|
||||
|
||||
@@ -459,12 +459,9 @@ impl App {
|
||||
codex_error_info: Some(CodexErrorInfo::ThreadRollbackFailed),
|
||||
..
|
||||
}) => {
|
||||
let Some(pending) = self.backtrack.pending_rollback.take() else {
|
||||
let Some(_pending) = self.backtrack.pending_rollback.take() else {
|
||||
return;
|
||||
};
|
||||
if pending.thread_id != self.chat_widget.thread_id() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user