Handle stderr output form Cursor cli (#948)

This commit is contained in:
Solomon
2025-10-06 15:26:46 +01:00
committed by GitHub
parent adc362955a
commit 2e0cabf9c7

View File

@@ -24,6 +24,7 @@ use crate::{
logs::{ logs::{
ActionType, FileChange, NormalizedEntry, NormalizedEntryType, TodoItem, ToolStatus, ActionType, FileChange, NormalizedEntry, NormalizedEntryType, TodoItem, ToolStatus,
plain_text_processor::PlainTextLogProcessor, plain_text_processor::PlainTextLogProcessor,
stderr_processor::normalize_stderr_logs,
utils::{ConversationPatch, EntryIndexProvider}, utils::{ConversationPatch, EntryIndexProvider},
}, },
}; };
@@ -123,6 +124,8 @@ impl StandardCodingAgentExecutor for Cursor {
fn normalize_logs(&self, msg_store: Arc<MsgStore>, worktree_path: &Path) { fn normalize_logs(&self, msg_store: Arc<MsgStore>, worktree_path: &Path) {
let entry_index_provider = EntryIndexProvider::start_from(&msg_store); let entry_index_provider = EntryIndexProvider::start_from(&msg_store);
normalize_stderr_logs(msg_store.clone(), entry_index_provider.clone());
// Process Cursor stdout JSONL with typed serde models // Process Cursor stdout JSONL with typed serde models
let current_dir = worktree_path.to_path_buf(); let current_dir = worktree_path.to_path_buf();
tokio::spawn(async move { tokio::spawn(async move {