Skip to content

Conversation Compaction Telemetry / Context Health #22220

@ANTVirGEO

Description

@ANTVirGEO

What variant of Codex are you using?

App

What feature would you like to see?

Feature Request: Conversation Compaction Telemetry / Context Health

Problem

Long Codex sessions currently provide almost no visibility into context compaction behavior.

Users cannot easily determine:

  • how many compactions already happened in the current conversation
  • whether context quality may already be degraded
  • when the last compaction occurred
  • whether Codex is entering a compaction loop
  • how aggressively the runtime is compacting relative to remaining context

This creates several UX and reliability problems already visible across multiple issues:

  • repeated compaction loops
  • progressive loss of reasoning continuity
  • silent degradation of long-running agentic sessions
  • inability to diagnose token amplification behavior
  • confusion between freezes vs active auto-compaction

After several compactions, session quality can noticeably degrade due to summarization loss and recursive compression effects, but the user currently has no telemetry to understand that state.

Proposed Solution

Expose lightweight compaction telemetry directly in the UI and/or /status.

Suggested fields:

Compactions: 4
Last compact: 12m ago
Current context used: 82%
Estimated context integrity: Medium

Possible additional telemetry:

  • average interval between compactions
  • compact trigger threshold
  • auto-compaction mode
  • warning when compaction frequency accelerates
  • warning after N compactions in same session
  • "possible compaction loop detected"

Why This Matters

Codex is increasingly used for:

  • long-running coding sessions
  • large repository analysis
  • agentic workflows
  • multi-hour debugging sessions

In these scenarios, context management becomes part of system observability.

Right now, users can observe symptoms of degradation, but not the actual internal state transitions causing it.

Even a simple visible counter would significantly improve:

  • debuggability
  • user trust
  • workflow planning
  • issue reporting quality
  • understanding of model behavior

Related Issues

Possible Minimal MVP

Even just this would already help substantially:

text Compactions this session: 3

shown either:

  • in /status
  • in session metadata
  • or near the context percentage indicator

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appcontextIssues related to context management (including compaction)enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions