Skip to content

v0.119.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 22:14
ae9d380

The VS Code extension fixes #530 and #531 ship separately as vscode-v0.5.4, from the same commit.

Fixes

  • budget-report in text or Markdown no longer exits 1 with a ZeroDivisionError traceback 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 (5 tagged a session "5"), and null, false and 0 counted 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_id is not a string is left for operator recovery. Before, a false journal deleted the sessions tagged "False". (#527)
  • tenant report, tenant export and tenant delete refuse a session whose meta.json has no tenant_id but whose events carry one. Before, tenant delete reported success and left the tagged events on disk. (#529)
  • A session whose meta.json is not a JSON object, or nests more than 128 levels, is treated as corrupt. list, stats, health and the MCP server skip it and keep serving the rest of the store. Commands that read that session print one Error: line and exit 1. Before, a meta.json holding an array, a string, a number or null, or nested about a million levels, made most commands crash with a traceback. Invalid JSON in meta.json did the same in inspect, replay, export and stats <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)
  • import redacts 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 --watch reports 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. A cd in a subshell, pipeline or background job no longer moves later file paths, and 2>/dev/null is no longer read as a file named 2. (#535)
  • setup --cli codex --verify checks the hooks of an enabled AgentTrace Codex plugin, so a plugin install alone passes. setup --cli codex and --cli all no longer write $CODEX_HOME/hooks.json while that plugin is enabled. Before, setup wrote it anyway, and Codex ran every AgentTrace hook twice. When hooks.json already has the AgentTrace hooks, both commands say how to keep only the plugin. (#538)
  • The dashboard session 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 /sessions with a non-string tenant_id, including null, and counts a POST /events line with one as an error. A whitespace-only tenant_id on a POST /sessions update now returns 400, as create already did. (#527)
  • backfill-meta skips a session whose events carry a non-string tenant_id, including null, as invalid_tenant. tenant export, tenant delete and strict reports fail closed on a stored non-string tenant_id. (#527)
  • watch treats a whitespace-only AGENT_STRACE_TENANT_ID as unset instead of exiting 1. (#527)
  • On a store where a session's meta.json has no tenant_id but its events carry one, tenant report, tenant export and tenant delete now stop with "corrupt session in tenant store: ", and tenant delete deletes nothing. Set tenant_id in that session's meta.json to the tenant ID its events carry, then run the command again. (#529)
  • A meta.json nested 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 one Error: line. org-report, tenant report, tenant export and tenant delete stop with "corrupt session in tenant store: ", and cognitive-debt without --session exits 1 with "trace input could not be read safely". (#537)
  • The collector answers 400 with the error message for GET /sessions/<id> and GET /sessions/<id>/events on a session whose meta.json is corrupt, and leaves that session out of GET /sessions. The dashboard's session actions do the same. POST /sessions with 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 type in {"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 and null are kept. (#532)
  • While the AgentTrace Codex plugin is enabled, setup --cli codex and --cli all skip $CODEX_HOME/hooks.json, so --redact and --no-redact no longer apply to Codex. Setup says so and prints the codex plugin remove command 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 codex and --verify look for the plugin only in $CODEX_HOME/config.toml, not in profiles, -c overrides, or project, system and managed config layers. They don't check project .codex/hooks.json files for AgentTrace hooks that duplicate the plugin. (#538)
  • share still refuses a session with NaN or Infinity in any meta.json field, because its evidence packet hashes the raw metadata as strict JSON. inspect, the server API 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 export and 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-report and curve still 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 json refuses only when the bad timestamp is on an a2a_call event. dashboard, context-score, team-report, export --metrics --backend otlp and eval dataset auto --filter cost-above:N price a session from its token usage and event sizes, not its timestamps, so they still show the cost of a session that cost refuses. (#512)
  • org-report, correlation, validate, share --assignment, postmortem --list, compare --rerun, cost --breakdown provider, annotate --event and replay --tree keep their old handling of a bad event timestamp. (#512)