fix: migrate codex context off agents injection

This commit is contained in:
Alex Newman
2026-05-06 14:24:40 -07:00
parent bb3dbfdb5a
commit 156062170d
4 changed files with 78 additions and 16 deletions
+6 -10
View File
@@ -3,7 +3,7 @@
"schemas": {
"codex": {
"name": "codex",
"version": "0.2",
"version": "0.3",
"description": "Schema for Codex session JSONL files under ~/.codex/sessions.",
"events": [
{
@@ -41,7 +41,7 @@
},
{
"name": "tool-use",
"match": { "path": "payload.type", "in": ["function_call", "custom_tool_call", "web_search_call"] },
"match": { "path": "payload.type", "in": ["function_call", "custom_tool_call", "web_search_call", "exec_command"] },
"action": "tool_use",
"fields": {
"toolId": "payload.call_id",
@@ -55,6 +55,7 @@
"coalesce": [
"payload.arguments",
"payload.input",
"payload.command",
"payload.action"
]
}
@@ -62,7 +63,7 @@
},
{
"name": "tool-result",
"match": { "path": "payload.type", "in": ["function_call_output", "custom_tool_call_output"] },
"match": { "path": "payload.type", "in": ["function_call_output", "custom_tool_call_output", "exec_command_output"] },
"action": "tool_result",
"fields": {
"toolId": "payload.call_id",
@@ -71,7 +72,7 @@
},
{
"name": "session-end",
"match": { "path": "payload.type", "equals": "turn_aborted" },
"match": { "path": "payload.type", "in": ["turn_aborted", "turn_completed", "task_complete"] },
"action": "session_end"
}
]
@@ -82,12 +83,7 @@
"name": "codex",
"path": "~/.codex/sessions/**/*.jsonl",
"schema": "codex",
"startAtEnd": true,
"context": {
"mode": "agents",
"path": "~/.codex/AGENTS.md",
"updateOn": ["session_start", "session_end"]
}
"startAtEnd": true
}
],
"stateFile": "~/.claude-mem/transcript-watch-state.json"