Skip to content

Clarify compaction test harness#26777

Merged
kitlangton merged 1 commit into
devfrom
cleanup/compaction-test-harness
May 11, 2026
Merged

Clarify compaction test harness#26777
kitlangton merged 1 commit into
devfrom
cleanup/compaction-test-harness

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • Rename the minimal compaction test runner to itCompaction.
  • Add withCompaction(...) so process tests use a named seam for per-test layer overrides.
  • Hide raw Effect.provide(compactionProcessLayer(...)) wiring at call sites.

Testing

  • bun test --timeout 5000 test/session/compaction.test.ts -t "stops quickly|does not leave a summary assistant|summarizes only the head|anchors repeated compactions|keeps recent pre-compaction|ignores previous summaries"
  • bun typecheck from packages/opencode
  • bunx prettier --check packages/opencode/test/session/compaction.test.ts
  • bunx oxlint packages/opencode/test/session/compaction.test.ts (existing warnings only, no errors)

@kitlangton kitlangton enabled auto-merge (squash) May 11, 2026 00:26
@kitlangton kitlangton disabled auto-merge May 11, 2026 00:26
@kitlangton kitlangton enabled auto-merge (squash) May 11, 2026 00:26
@kitlangton kitlangton disabled auto-merge May 11, 2026 00:41
@kitlangton kitlangton merged commit fed716a into dev May 11, 2026
11 of 12 checks passed
@kitlangton kitlangton deleted the cleanup/compaction-test-harness branch May 11, 2026 00:41
joshue031 pushed a commit to joshue031/opencode that referenced this pull request May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant