mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
Remove legacy collaboration mode variants (#36990)
## What changed - Remove the hidden `PairProgramming` and `Execute` variants from `ModeKind`. - Delete their unused prompt templates and simplify mode handling to cover only `Default` and `Plan`. GitOrigin-RevId: 8d24e3f562a09e3071b2decae275d2b3871a1e9c
This commit is contained in:
@@ -650,16 +650,6 @@ pub enum ModeKind {
|
||||
alias = "custom"
|
||||
)]
|
||||
Default,
|
||||
#[doc(hidden)]
|
||||
#[serde(skip_serializing, skip_deserializing)]
|
||||
#[schemars(skip)]
|
||||
#[ts(skip)]
|
||||
PairProgramming,
|
||||
#[doc(hidden)]
|
||||
#[serde(skip_serializing, skip_deserializing)]
|
||||
#[schemars(skip)]
|
||||
#[ts(skip)]
|
||||
Execute,
|
||||
}
|
||||
|
||||
pub const TUI_VISIBLE_COLLABORATION_MODES: [ModeKind; 2] = [ModeKind::Default, ModeKind::Plan];
|
||||
@@ -669,8 +659,6 @@ impl ModeKind {
|
||||
match self {
|
||||
Self::Plan => "Plan",
|
||||
Self::Default => "Default",
|
||||
Self::PairProgramming => "Pair Programming",
|
||||
Self::Execute => "Execute",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -869,9 +857,6 @@ mod tests {
|
||||
for mode in TUI_VISIBLE_COLLABORATION_MODES {
|
||||
assert!(mode.is_tui_visible());
|
||||
}
|
||||
|
||||
assert!(!ModeKind::PairProgramming.is_tui_visible());
|
||||
assert!(!ModeKind::Execute.is_tui_visible());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user