Repository navigation
Conversation
Make continuation handoffs preserve the latest instruction context and verify durable state after resuming. Prevent recursive brief copying while clarifying that the summarization response contains only the generated brief.
Lock the strengthened continuation brief contract in focused behavioral tests. Verify recency, authoritative re-query, no-tool-use guidance, and the frozen formatter caps without changing production code.
Base automatically changed from
feat/compaction-degradation-wiring
to
feat/compaction-prompt-replacement
August 3, 2026 01:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds four directives to the shared continuation-prompt formatter and covers them with tests.
Changes
continuation-prompt.ts(+4): New directives in the generated brief:goop_statusandgoop_read_dbrather than relying on the brief alone.continuation-prompt.test.ts(+56): Five new test cases covering each directive plus a guard that the frozen formatter caps remain unchanged.Scope
Only the shared formatter and its co-located tests are touched. No hook, type, capability, or DB-read changes. The V2 skipped list still excludes
experimental.session.compacting, and no factory registersexperimental.compaction.autocontinue.Verification
bun test packages/opencode-plugin/src/shared/ packages/opencode-plugin/src/hooks/ --bail=3 --timeout=10000— 455 pass, 0 failbun run --cwd packages/opencode-plugin typecheck— cleanbun run --cwd packages/opencode-plugin lint— 0 errors (warnings follow the existing non-null-assertion pattern in the test file)