Skip to content

feat: add versioned context compaction metadata - #396

Merged
nikita-ashihmin merged 1 commit into
agentclientprotocol:mainfrom
nikita-ashihmin:codex/context-compaction-meta-v1
Aug 14, 2026
Merged

feat: add versioned context compaction metadata#396
nikita-ashihmin merged 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.
@nikita-ashihmin
nikita-ashihmin merged commit c4a9311 into agentclientprotocol:main Aug 14, 2026
2 checks passed
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