mirror of
https://github.com/openai/codex.git
synced 2026-11-29 15:36:12 +00:00
fix(tui): handle hidden app git directives (#21946)
This commit is contained in:
1 parent
95d8669ab2
commit
e16b4e46d4
8 files changed
+300
-31
No files matched your search
@@ -1,6 +1,7 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use crate::app_server_session::AppServerSession;
|
||||
use crate::git_action_directives::parse_assistant_markdown;
|
||||
use crate::history_cell::AgentMarkdownCell;
|
||||
use crate::history_cell::HistoryCell;
|
||||
use crate::history_cell::PlainHistoryCell;
|
||||
@@ -61,8 +62,12 @@ pub(crate) fn thread_to_transcript_cells(
|
||||
}));
|
||||
}
|
||||
ThreadItem::AgentMessage { text, .. } => {
|
||||
if !text.trim().is_empty() {
|
||||
cells.push(Arc::new(AgentMarkdownCell::new(text.clone(), cwd)));
|
||||
let parsed = parse_assistant_markdown(text);
|
||||
if !parsed.visible_markdown.trim().is_empty() {
|
||||
cells.push(Arc::new(AgentMarkdownCell::new(
|
||||
parsed.visible_markdown,
|
||||
cwd,
|
||||
)));
|
||||
}
|
||||
}
|
||||
ThreadItem::Plan { text, .. } => {
|
||||
|
||||
Reference in new issue
Block a user