Skip to content

feat(coding): add native context compaction#99

Merged
ktsoator merged 1 commit into
mainfrom
codex/coding-manual-compaction
Jul 21, 2026
Merged

feat(coding): add native context compaction#99
ktsoator merged 1 commit into
mainfrom
codex/coding-manual-compaction

Conversation

@ktsoator

Copy link
Copy Markdown
Owner

Summary

  • add a typed v2 append-only session transcript with message and compaction entries
  • add idle-only manual context compaction that preserves recent complete user turns and full raw history
  • expose compaction through the coding API and Web model settings menu without depending on harness
  • require v2 session files and reject legacy message-only JSONL instead of migrating it
  • persist compaction usage metadata and restore the compacted projection after restart

Testing

  • go test ./...
  • go test -race ./coding ./coding/compaction ./coding/store ./coding/transcript
  • npm run build (web)
  • npm run lint (web; one pre-existing exhaustive-deps warning in App.tsx)

@ktsoator
ktsoator merged commit c74d414 into main Jul 21, 2026
4 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