GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — OpenCode V2: compaction requests miss the prompt cache because the ruleset is only added in the `context` hook · Issue #1086 · DietrichGebert/ponytail Closed DescriptionSummaryOn OpenCode V2, the plugin adds the ruleset to the system prompt in the Location
await ctx.session.hook('context', (event) => { const mode = readMode(); if (mode === 'off') return; event.system.push({ type: 'text', text: getPonytailInstructions(mode) }); }); MeasuredOpenCode built from source (
The captured compaction request had no ponytail block in its system prompt. The main-loop requests had it. Suggested fixRegister the same handler on both hooks: const addRuleset = (event) => { const mode = readMode(); if (mode === 'off') return; event.system.push({ type: 'text', text: getPonytailInstructions(mode) }); }; await ctx.session.hook('context', addRuleset); await ctx.session.hook('compaction', addRuleset); With this change, the summary model also receives the ruleset. RelatedOpenCode's compaction cache issue: anomalyco/opencode#52761 Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |