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
@@ -38,7 +38,7 @@ pub(super) struct TranscriptState {
|
||||
pub(super) active_cell_revision: u64,
|
||||
/// One bounded entry shared by layout and paint across unchanged active-cell frames.
|
||||
pub(super) active_cell_layout: Cell<Option<ActiveCellLayoutCache>>,
|
||||
/// Markdown of the most recently completed agent response for whole-response copying.
|
||||
/// Markdown of the most recently completed agent message for whole-response copying.
|
||||
pub(super) last_agent_markdown: Option<String>,
|
||||
/// Original source of that response, before display sanitization, for exact block copying.
|
||||
pub(super) last_agent_source: Option<String>,
|
||||
|
||||
Reference in new issue
Block a user