fix(failures): use is_error field instead of content pattern matching

Index the is_error boolean from JSONL tool_result blocks into a new
  column, replacing the old ERROR_PATS text-matching approach that
  produced ~90% false positives. Bash exit code pattern kept as fallback.
This commit is contained in:
tommy0103
2026-06-02 09:19:46 +08:00
parent 8d97f934f2
commit b12ddab883
5 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ CREATE TABLE IF NOT EXISTS tool_calls (
name TEXT, input_json TEXT, file_path TEXT);
CREATE TABLE IF NOT EXISTS tool_results (
tool_use_id TEXT PRIMARY KEY, message_uuid TEXT, session_id TEXT,
content TEXT, file_path TEXT);
content TEXT, file_path TEXT, is_error INTEGER DEFAULT 0);
CREATE TABLE IF NOT EXISTS subagents (
agent_id TEXT PRIMARY KEY, session_id TEXT, parent_tool_use_id TEXT,
agent_type TEXT, description TEXT, duration_ms INTEGER, total_tokens INTEGER);