Skip to content

fix: assert reviewer session cleanup and reject it where it does nothing - #73

Merged
dyoshikawa merged 2 commits into
mainfrom
resolve-issue-64-cleanup-followups
Oct 24, 2026
Merged

dyoshikawa merged 2 commits into
mainfrom
resolve-issue-64-cleanup-followups

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Closes #64

Summary

  • Tests now record remove calls: the opt-in cleanup removes the reviewer session after a verdict, the default never does, and a timed-out review is aborted and removed with isReviewerSession false afterwards.
  • reviewer.agent.cleanupSessions errors use the shared Invalid auto-approval plugin options: prefix and "needs" wording.
  • Explicit false on an SDK runtime stays rejected, like the SDK path options for another runtime (any value set for a runtime that ignores it is an error); tests cover claude-agent-sdk and false.
  • OpenCode 1.x now rejects cleanupSessions: true at startup instead of ignoring it (V1-only options check extracted next to the allToolsNativeAsks one from fix: refuse native ask grants for calls rewritten after review #70).
  • README: options table row and the session lifecycle section say where the option is rejected.

Not done: the live OpenCode 2.x check that a parentID-linked reviewer session still cannot run bash (info item in #64).

🤖 Generated with Claude Code

https://claude.ai/code/session_01QUBBebviXSBQtiRAmDopZ7

dyoshikawa and others added 2 commits October 24, 2026 17:14
Tests now record that the opt-in cleanup removes the reviewer session,
including after a timeout, and that the default never does.
reviewer.agent.cleanupSessions uses the shared error prefix, is
rejected on OpenCode 1.x and (with any value) on the SDK runtimes, and
has a row in the README options table.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QUBBebviXSBQtiRAmDopZ7
@dyoshikawa
dyoshikawa merged commit 3218657 into main Oct 24, 2026
1 check passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-64-cleanup-followups branch October 24, 2026 08:16
@dyoshikawa dyoshikawa mentioned this pull request Oct 25, 2026
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.

Follow-ups from PR #51: reviewer session cleanup tests, config messages and docs

1 participant