Skip to content

fix: trace and dispose continuity context hook - #4

Merged
ericmey merged 4 commits into
mainfrom
yua/continuity-hook-proof
Sep 29, 2026
Merged

ericmey merged 4 commits into
mainfrom
yua/continuity-hook-proof

Conversation

@ericmey

@ericmey ericmey commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Adds bounded, content-free diagnostics for the OpenCode v2 continuity hook, refuses empty blocks, and disposes the hook on reload. A Bun test checks one primary-session injection, dedupe, and cleanup. This is to distinguish a hidden TUI system part from a hook that never fired; it does not claim raw provider-payload proof.

Copilot AI balanced review requested due to automatic review settings September 29, 2026 19:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Cleanup is not awaitable, subagent diagnostics are misleading, and empty-block rejection lacks coverage.

Review effort: Balanced
Findings: 2 Low severity

Open (2)
What changed in this PR

Adds continuity-hook diagnostics, rejects empty continuity blocks, and disposes hooks during reload.

Changes:

  • Adds content-free continuity logging and empty-block validation.
  • Adds hook cleanup and Bun coverage.
  • Documents diagnostic behavior and limitations.
File Description
plugin/​index.js Adds diagnostics, validation, and disposal.
tests/​plugin.test.js Tests injection, deduplication, and cleanup.
README.md Documents continuity diagnostics.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread plugin/index.js Outdated
Comment thread tests/plugin.test.js
@ericmey
ericmey merged commit 7c18f69 into main Sep 29, 2026
1 check passed
@ericmey
ericmey deleted the yua/continuity-hook-proof branch September 29, 2026 20:06
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.

2 participants