You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Normalize Codex database fallback events to canonical live-details output #1915
The public demo copies the production SQLite rows but does not have the canonical Codex output artifact retained by the production Redis/filesystem path. For completed Codex tasks, /api/task/:taskId/live-details therefore uses parseExecutionDetailsFromDb().
On task integry-propr-1912-codex-gpt-5.6-sol-525d836e-6807-48a9-b1e4-71e116fb1f73, the canonical stored-output parser returns 49 events (5 thoughts, 22 tool uses, 22 tool results), while the DB fallback returns 88 (22 thoughts, 44 tool uses, 22 results). The extra 39 are 22 duplicated command starts plus 17 raw Codex lifecycle JSON envelopes (thread.started, turn.started, turn.completed, item.started, item.completed) rendered as thoughts.
The SQLite rows are byte-equivalent between source and demo; this is a fallback-normalization defect, not refresh row loss.
Required fix
Make the DB execution-detail fallback normalize Codex lifecycle rows with the same semantics as the canonical stored-output parser.
Pair item.started / item.completed command executions so one logical command produces one tool_use and one tool_result; retain safe recovery for an unmatched completion.
Render only actual reasoning/agent-message text as thoughts. Do not expose raw protocol envelopes as thought content.
Preserve ordering, stable event IDs, real errors, todos, and token usage.
Do not change the normal stored-output/conversation parsing path or unrelated task processing.
Existing live-details/API tests, strict lint, typecheck, and full suite must pass.
Use Codex only. Keep the PR narrowly limited to live-details parsing/tests. No deployment, queue, worker, Redis protocol, schema, migration, or UI changes.
Activity
propr-dev commentedon Aug 15, 2026
🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
codexgpt-5.6-sol1915/gpt-5.6-sol-normalize-codex-database--20260815-1028-tqgmainissue-1915-20260815-1028-gpt-5.6-sol-tqg🔍 Track Task Execution
fix(ai): Resolve issue #1915 - Normalize Codex database fallback even…
[1915 by GPT-5.6 Sol] Normalize Codex database fallback events to can…