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 request: pre-render stream/output filter hook for plugins · Issue #34035 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionProblemOpenCode plugins can currently transform completed text, but they cannot reliably prevent noisy model output from briefly appearing in the TUI/CLI while it is streaming. This matters for models that emit reasoning or scratchpad-style text in the normal assistant channel, for example Current workaroundI am using an external plugin/session-cleaner approach:
This works for stored session readability, but it is inherently post-hoc. It cannot provide a clean live UI experience. Requested capabilityPlease add a plugin hook that runs before streamed assistant text is rendered to the TUI/CLI, for example: "experimental.text.delta"?: (input, delta) => string | { text: string; hidden?: boolean } or a similar pre-render event such as: "message.part.delta.beforeRender"?: ({ sessionID, messageID, partID, textDelta }) => { textDelta?: string; hidden?: boolean } Useful semantics:
Use cases
Why existing hooks are not enoughCompleted-text hooks are useful, but they happen too late for live UX. They can clean the final stored result, but they cannot stop the user from seeing raw model output during generation. A pre-render stream hook would let plugins solve this externally and keep OpenCode easy to update, instead of requiring local forks or patches to the renderer. Thanks for considering this. I am happy to test an experimental hook against noisy reasoning models and report back on plugin behavior. 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. |