mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Add a response target picker to /copy (#39997)
## What changed - Open a picker for `/copy` with the whole response plus each fenced code block and blockquote from the latest response. - Label code blocks by language, show content previews, and preserve source whitespace and nested quote Markdown when copying an individual target. - Keep the picker from disturbing terminal scrollback or queued input, retain clipboard leases, and avoid writing copied content to the session log. ## Testing - Add coverage for target extraction, picker navigation and cancellation, exact copied content, plan responses, queued input, scrollback preservation, clipboard failures, and session logging. GitOrigin-RevId: 77a35bc99f4f45932d39914f9a709b30fe8cd7c2
This commit is contained in:
1 parent
950dd184a1
commit
df6a54ee85
15 files changed
+766
-30
No files matched your search
@@ -991,13 +991,6 @@ impl ChatWidget {
|
||||
}
|
||||
}
|
||||
|
||||
/// Record or update the raw markdown for the current agent turn.
|
||||
fn record_agent_markdown(&mut self, message: &str) {
|
||||
if !message.is_empty() {
|
||||
self.transcript.record_agent_markdown(message.to_string());
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn open_feedback_note(
|
||||
&mut self,
|
||||
category: crate::app_event::FeedbackCategory,
|
||||
|
||||
Reference in new issue
Block a user