Skip to content

feat: add versioned context compaction metadata - #396

Open
nikita-ashihmin wants to merge 1 commit into
agentclientprotocol:mainfrom
nikita-ashihmin:codex/context-compaction-meta-v1
Open

feat: add versioned context compaction metadata#396
nikita-ashihmin wants to merge 1 commit into
agentclientprotocol:mainfrom
nikita-ashihmin:codex/context-compaction-meta-v1

Conversation

@nikita-ashihmin

Copy link
Copy Markdown
Collaborator

Summary

  • expose Codex context compaction through the shared synthetic ACP tool lifecycle
  • replace the legacy boolean marker with versioned _meta.contextCompaction metadata
  • align the title, kind, and lifecycle representation with claude-agent-acp
  • keep the generated compaction summary internal to the agent

Protocol

Compaction tool calls use kind: "think", title Compact conversation, standard ACP lifecycle statuses, and _meta.contextCompaction.version: 1. The schema allows optional trigger, preTokens, postTokens, durationMs, and error fields.

Testing

  • npm test -- --run (400 passed, 28 skipped)
  • npm run typecheck

Expose compaction through the shared provider-neutral ACP tool lifecycle so
clients can recognize it without relying on adapter-specific text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant