mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Include completed commentary in the /copy picker (#43846)
## Why During an active turn, `/copy` could still offer the previous final response even after a new commentary message had completed. ## What changed Record every completed agent message with non-empty visible Markdown for copying, including commentary. The picker can then offer the latest completed commentary as a whole response and expose its code blocks. ## Testing Add a regression test and picker snapshot covering completed commentary during an active turn after a previous final response. Verify that selecting “Whole response” copies the commentary and that the picker lists its shell code block. GitOrigin-RevId: 0ea1d5e3952ccac21f2ee951d482619de82f28e0
This commit is contained in:
1 parent
b090e901f8
commit
dd9512c000
4 files changed
+46
-4
No files matched your search
@@ -355,9 +355,7 @@ impl ChatWidget {
|
||||
} else {
|
||||
self.finalize_completed_assistant_message(Some(parsed.visible_markdown.as_str()));
|
||||
}
|
||||
if matches!(item.phase, Some(MessagePhase::FinalAnswer) | None)
|
||||
&& !parsed.visible_markdown.is_empty()
|
||||
{
|
||||
if !parsed.visible_markdown.is_empty() {
|
||||
self.transcript
|
||||
.record_agent_markdown(parsed.visible_markdown.clone(), message);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user