Skip to content

fix: cancel non-turn context compaction - #30

Open
UniversePeak wants to merge 1 commit into
LodyAI:mainfrom
UniversePeak:fix/cancel-compaction
Open

fix: cancel non-turn context compaction#30
UniversePeak wants to merge 1 commit into
LodyAI:mainfrom
UniversePeak:fix/cancel-compaction

Conversation

@UniversePeak

@UniversePeak UniversePeak commented Sep 1, 2026

Copy link
Copy Markdown

Problem

Stopping /compact while it is waiting for thread/compacted leaves the ACP prompt active. Subsequent prompts are rejected as already active.

Change

Track the non-turn compaction lifecycle on the owning prompt and cancel that prompt directly when ACP cancellation arrives.

Tests

  • corepack pnpm --filter acp-extension-core build
  • corepack pnpm --filter acp-extension-codex typecheck
  • corepack pnpm --filter acp-extension-codex exec vitest run src/__tests__/CodexACPAgent/CodexAcpClient.test.ts -t "cancels a compact slash command without waiting for compaction completion" --no-file-parallelism

The full Codex ACP test file passed 100 tests; two unrelated existing Windows path-normalization tests failed.

Model: gpt-5.6-luna

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