Skip to content

Codex compaction never renders; the compacted branch is dead and unsafe to simply enable #1289

Description

@Juliusolsson05

rollout.ts:266 returns early when payload.type is not a string, and the compacted line's payload has no type (552 local rollouts contain it; 300/300 sampled lack type), so the entry.type === 'compacted' branch (:368-392) never runs and is untested. Enabling it naively exposes two more bugs. codexCompactBoundaryEntry (:197-207) has no timestamp, so order.ts:57 sorts it to the bottom of the feed. And replacement_history repaints prompts already in the feed: 17,326 of 20,343 sampled replacement messages duplicate an earlier user message. Severity P3.

Found by the Stage 3 C8 hunt; lines are origin/main d525d45. Findings: temp/quality-loop/hunt-c8.md.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingclass:C8-renderingRendering order/duplicatesprovider:codexAffects Codex integrationsev:P3Minortype:bugSomething works wrong

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions