feat(agents): improve session ID extraction and JSONL file handling
- Fix session ID extraction to use correct field name "session_id" instead of "sessionId" - Add comprehensive database update logging with error handling - Implement cross-project session file search in get_session_output - Add new load_agent_session_history command for robust JSONL loading - Update UI components to prioritize JSONL file loading over fallback methods - Improve error handling and logging throughout the session management flow - Fix BufReader imports and alias conflicts in Tauri backend This enhances the reliability of agent session tracking and output retrieval by properly handling Claude Code's actual JSON structure and implementing better fallback mechanisms for session data access.
This commit is contained in:
@@ -14,7 +14,7 @@ use commands::agents::{
|
||||
get_live_session_output, get_session_output, get_session_status, import_agent,
|
||||
import_agent_from_file, import_agent_from_github, init_database, kill_agent_session,
|
||||
list_agent_runs, list_agent_runs_with_metrics, list_agents, list_claude_installations,
|
||||
list_running_sessions, set_claude_binary_path, stream_session_output, update_agent, AgentDb,
|
||||
list_running_sessions, load_agent_session_history, set_claude_binary_path, stream_session_output, update_agent, AgentDb,
|
||||
};
|
||||
use commands::claude::{
|
||||
cancel_claude_execution, check_auto_checkpoint, check_claude_version, cleanup_old_checkpoints,
|
||||
@@ -136,6 +136,7 @@ fn main() {
|
||||
get_session_output,
|
||||
get_live_session_output,
|
||||
stream_session_output,
|
||||
load_agent_session_history,
|
||||
get_claude_binary_path,
|
||||
set_claude_binary_path,
|
||||
list_claude_installations,
|
||||
|
Reference in New Issue
Block a user