fix(tui): handle hidden app git directives (#21946)

This commit is contained in:
Felipe Coury authored and GitHub committed 2026-05-11 21:08:40 -03:00
1 parent 95d8669ab2
commit e16b4e46d4
8 files changed
+300 -31

No files matched your search

+7 -2
View File
@@ -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, .. } => {