Repository navigation
v0.119.0
The VS Code extension fixes #530 and #531 ship separately as vscode-v0.5.4, from the same commit.
Fixes
budget-reportin text or Markdown no longer exits 1 with aZeroDivisionErrortraceback when it counts every session in the window as $0 and one of them has a tool call. (#526)- Tenant IDs must be strings everywhere they are written, filtered or checked. Before, a number became its text (
5tagged a session"5"), andnull,falseand0counted as untagged. (#527) - A tenant ID nested too deep to turn into text no longer makes appends raise
RecursionError. (#527) - A tenant tag or deletion journal whose
tenant_idis not a string is left for operator recovery. Before, afalsejournal deleted the sessions tagged"False". (#527) tenant report,tenant exportandtenant deleterefuse a session whosemeta.jsonhas notenant_idbut whose events carry one. Before,tenant deletereported success and left the tagged events on disk. (#529)- A session whose
meta.jsonis not a JSON object, or nests more than 128 levels, is treated as corrupt.list,stats,healthand the MCP server skip it and keep serving the rest of the store. Commands that read that session print oneError:line and exit 1. Before, ameta.jsonholding an array, a string, a number ornull, or nested about a million levels, made most commands crash with a traceback. Invalid JSON inmeta.jsondid the same ininspect,replay,exportandstats <id>. (#537) - Redaction covers values nested under secret keys, personal-data keys holding lists or objects, and private keys cut short in numbered output or missing their BEGIN line. (#532)
importredacts secrets before it shortens long prompts, responses and tool output, so a secret at the cut point is no longer partly stored. (#534)mcp-scan --watchreports the right event numbers after 80 events and alerts on every repeat of a pattern, not only the first. (#533)- When agent-strace reads a recorded shell command, a comment ending in a backslash, an escaped backslash at line end, and
$'string'quoting no longer hide or invent commands. Acdin a subshell, pipeline or background job no longer moves later file paths, and2>/dev/nullis no longer read as a file named2. (#535) setup --cli codex --verifychecks the hooks of an enabled AgentTrace Codex plugin, so a plugin install alone passes.setup --cli codexand--cli allno longer write$CODEX_HOME/hooks.jsonwhile that plugin is enabled. Before, setup wrote it anyway, and Codex ran every AgentTrace hook twice. Whenhooks.jsonalready has the AgentTrace hooks, both commands say how to keep only the plugin. (#538)- The
dashboardsession review and the minimized review share show a resumed session as live until it ends again, instead of using the earlier end time. (#531)
Compatibility
- The collector returns 400 for
POST /sessionswith a non-stringtenant_id, includingnull, and counts aPOST /eventsline with one as an error. A whitespace-onlytenant_idon aPOST /sessionsupdate now returns 400, as create already did. (#527) backfill-metaskips a session whose events carry a non-stringtenant_id, includingnull, asinvalid_tenant.tenant export,tenant deleteand strict reports fail closed on a stored non-stringtenant_id. (#527)watchtreats a whitespace-onlyAGENT_STRACE_TENANT_IDas unset instead of exiting 1. (#527)- On a store where a session's
meta.jsonhas notenant_idbut its events carry one,tenant report,tenant exportandtenant deletenow stop with "corrupt session in tenant store: ", andtenant deletedeletes nothing. Settenant_idin that session'smeta.jsonto the tenant ID its events carry, then run the command again. (#529) - A
meta.jsonnested more than 128 levels now counts as corrupt, like invalid JSON. Before, it loaded as a normal session if Python could parse it. Commands that read that session now exit 1 with oneError:line.org-report,tenant report,tenant exportandtenant deletestop with "corrupt session in tenant store: ", andcognitive-debtwithout--sessionexits 1 with "trace input could not be read safely". (#537) - The collector answers 400 with the error message for
GET /sessions/<id>andGET /sessions/<id>/eventson a session whosemeta.jsonis corrupt, and leaves that session out ofGET /sessions. The dashboard's session actions do the same.POST /sessionswith metadata nested more than 128 levels is still refused with 400, now with "metadata nests more than 128 levels". (#537) - Redaction replaces every string under a secret key name at any depth, such as
typein{"credentials": {"type": "oauth"}}, and PII masking does the same under personal-data key names. Before, redaction replaced only a string under the key or in a list under it, and masking only a string directly under it. Numbers, booleans andnullare kept. (#532) - While the AgentTrace Codex plugin is enabled,
setup --cli codexand--cli allskip$CODEX_HOME/hooks.json, so--redactand--no-redactno longer apply to Codex. Setup says so and prints thecodex plugin removecommand to run first if you want manual hooks. (#538)
Known issues
- On Codex 0.164.0 and later, the AgentTrace hooks stop running after every plugin update until you trust them again in
/hooks. Codex ties hook trust to the plugin's files, and every agent-strace release changes the plugin's version. (#523) setup --cli codexand--verifylook for the plugin only in$CODEX_HOME/config.toml, not in profiles,-coverrides, or project, system and managed config layers. They don't check project.codex/hooks.jsonfiles for AgentTrace hooks that duplicate the plugin. (#538)sharestill refuses a session with NaN or Infinity in any meta.json field, because its evidence packet hashes the raw metadata as strict JSON.inspect, theserverAPI and other commands that copy the whole record still show a value that is not a string as stored. (#519)list,inspect,tree,verify,stats, the JSON, CSV and NDJSON exports,tenant exportand the events API still print an event timestamp as stored. A missing event timestamp still loads as the current time. (#512)tree,a2a-tree,budget-reportandcurvestill count a session's cost as $0 when they cannot price it, and the weekly project budget leaves the session out of its spend. A text, null, object or array timestamp, or an integer too large for a float, can cause that.a2a-tree --format jsonrefuses only when the bad timestamp is on ana2a_callevent.dashboard,context-score,team-report,export --metrics --backend otlpandeval dataset auto --filter cost-above:Nprice a session from its token usage and event sizes, not its timestamps, so they still show the cost of a session thatcostrefuses. (#512)org-report,correlation,validate,share --assignment,postmortem --list,compare --rerun,cost --breakdown provider,annotate --eventandreplay --treekeep their old handling of a bad event timestamp. (#512)