mirror of
https://github.com/openai/codex.git
synced 2026-11-22 07:13:50 +00:00
Add /side conversations (#18190)
The TUI supports long-running turns and agent threads, but quick side questions have required interrupting the main flow or manually forking/navigating threads. This PR adds a guarded `/side` flow so users can ask brief side-conversation questions in an ephemeral fork while keeping the primary thread focused. This also helps address the feature request in #18125. The implementation creates one side conversation at a time, lets `/side` open either an empty side thread or immediately submit `/side <question>`, and returns to the parent with Esc or Ctrl+C. Side conversations get hidden developer guardrails that treat inherited history as reference-only and steer the model away from workspace mutations unless explicitly requested in the side conversation. The TUI hides most slash commands while side mode is active, leaving only `/copy`, `/diff`, `/mention`, and `/status` available there.
This commit is contained in:
1 parent
ed1c5013ab
commit
95dafbc7b5
20 files changed
+1701
-80
No files matched your search
@@ -348,6 +348,16 @@ impl BottomPane {
|
||||
self.request_redraw();
|
||||
}
|
||||
|
||||
pub(crate) fn set_side_conversation_active(&mut self, active: bool) {
|
||||
self.composer.set_side_conversation_active(active);
|
||||
self.request_redraw();
|
||||
}
|
||||
|
||||
pub(crate) fn set_placeholder_text(&mut self, placeholder: String) {
|
||||
self.composer.set_placeholder_text(placeholder);
|
||||
self.request_redraw();
|
||||
}
|
||||
|
||||
/// Update the key hint shown next to queued messages so it matches the
|
||||
/// binding that `ChatWidget` actually listens for.
|
||||
pub(crate) fn set_queued_message_edit_binding(&mut self, binding: KeyBinding) {
|
||||
@@ -1274,6 +1284,12 @@ impl BottomPane {
|
||||
self.request_redraw();
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn set_side_conversation_context_label(&mut self, label: Option<String>) {
|
||||
if self.composer.set_side_conversation_context_label(label) {
|
||||
self.request_redraw();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
|
||||
Reference in new issue
Block a user