Handle stderr output form Cursor cli (#948)
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user