mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Style spoken prompts and link workspace files in voice transcripts (#43676)
## What changed - Render spoken user prompts with a bold red chevron, preserving its color during live transcript animation. Trim leading whitespace for display while retaining the raw transcript text. - Underline and link file references such as `src/lib.rs:42` in spoken assistant transcripts using terminal hyperlinks. Preserve existing links and support Windows-style relative separators. - Restrict generated file links to existing files with allowed extensions inside the workspace, rejecting hidden paths, traversal, and symlink escapes. ## Testing Add rendering and transcript tests for the spoken marker, raw text preservation, file links, Unicode column offsets, and Windows-style paths, plus validation tests for rejected file destinations. GitOrigin-RevId: 5fa180aa606acdc579a916441520602cb2bf3655
This commit is contained in:
1 parent
4e93cf9b4e
commit
3caf9f9586
21 files changed
+461
-20
No files matched your search
@@ -48,6 +48,7 @@ fn turn(status: TurnStatus) -> Turn {
|
||||
fn user_history_cell(message: &str) -> Arc<dyn HistoryCell> {
|
||||
Arc::new(UserHistoryCell {
|
||||
message: message.to_string(),
|
||||
spoken: false,
|
||||
text_elements: Vec::new(),
|
||||
local_image_paths: Vec::new(),
|
||||
remote_image_urls: Vec::new(),
|
||||
|
||||
Reference in new issue
Block a user