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 — [FEATURE]: plugin session step hook for plugin-requested compaction · Issue #56744 · anomalyco/opencode Open DescriptionDescribe the enhancement you want to requestPlugins can register tools ( Today the engine starts a compaction on engine-owned triggers only: Why it belongs in OpenCode:
Proposed interface, in the style of the existing session hooks: // fired once per step, after the request is built and before the provider streams interface SessionStep { sessionID: Session.ID agent: Agent.ID step: number // resets to 1 when a new inbox item delivers model: Model.Ref request: { // reflect-only snapshot readonly system: readonly SystemPart[] readonly messages: readonly Message[] readonly tools: Readonly<Record<string, { description: string; input: JsonSchema }>> } entries: readonly SessionMessage.Info[] // projected history, oldest first result?: { compact: boolean; reason?: string } // request compaction at this boundary } I have this implemented and tested locally: the engine trigger in the session runner, the hook interface in Happy to push a branch with a small focused PR (the hook, and the plugin as a consumer) once there is a go-ahead on the design. Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — 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. |