mirror of
https://github.com/openai/codex.git
synced 2026-11-20 07:06:24 +00:00
Generate automatic and manual conversation recaps (#40705)
## Why Users returning to a conversation need a short summary of its recent progress and next steps. ## What changed - Generate a recap for eligible idle, unfocused conversations and add it to the transcript. - Add `/recap` to request the same summary on demand, with visible progress and actionable errors. - Keep recap requests bounded and isolated, reject stale results, and retry only automatic failures. ## Testing - Cover automatic and manual generation, request eligibility, failure handling, loading-state cleanup, and temporary-thread configuration. GitOrigin-RevId: 926a88d6996d67a42809ce2c4091b13fca882b52
This commit is contained in:
1 parent
40ba7da7b4
commit
6988d390b3
17 files changed
+831
-38
No files matched your search
@@ -273,6 +273,16 @@ impl ChatWidget {
|
||||
self.input_queue.user_turn_pending_start = true;
|
||||
self.app_event_tx.compact();
|
||||
}
|
||||
SlashCommand::Recap => {
|
||||
let Some(thread_id) = self.thread_id else {
|
||||
self.add_error_message(
|
||||
"Session is still starting; try /recap again in a moment.".to_string(),
|
||||
);
|
||||
return;
|
||||
};
|
||||
self.app_event_tx
|
||||
.send(AppEvent::GenerateRecap { thread_id });
|
||||
}
|
||||
SlashCommand::Review => {
|
||||
self.open_review_popup();
|
||||
if self.mcp_startup_status.is_some() {
|
||||
@@ -1139,6 +1149,7 @@ impl ChatWidget {
|
||||
| SlashCommand::Diff
|
||||
| SlashCommand::App
|
||||
| SlashCommand::Rename
|
||||
| SlashCommand::Recap
|
||||
| SlashCommand::TestApproval => QueueDrain::Continue,
|
||||
SlashCommand::Cd => match self.thread_id {
|
||||
Some(thread_id) if self.can_change_working_directory(thread_id) => QueueDrain::Stop,
|
||||
|
||||
Reference in new issue
Block a user