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 — tui: plugin sidebar slot never repaints on plugin state changes · Issue #66252 · anomalyco/opencode Duplicate Labels area/pluginsPlugins, skills, custom agentsplatform/linuxLinuxtype/bugSomething is brokenversion/v2OpenCode 2.x DescriptionSummaryA TUI plugin that renders into Environment
Reproduction
/** @jsxImportSource @opentui/solid */ import { Plugin } from "@opencode/plugin/tui"; import { createSignal } from "solid-js"; export default Plugin.define({ id: "repro.slot", setup(context) { const [n, setN] = createSignal(0); setInterval(() => setN((v) => v + 1), 1000); context.ui.slot({ prepend: "sidebar.content", render: () => <text>{`tick ${n()} ${Date.now() % 100000}`}</text>, }); }, });
Expected BehaviorThe rendered value changes every second (and on every re-render), because the signal is read inside the slot render. Actual BehaviorThe line is frozen at its first value for as long as the session stays open. The Additional ContextMeasured on
Workarounds that do repaint: any host-driven interaction with that slot (mouse click on a clickable element of the plugin, session switch). Related: the TUI session store is also not refreshed for subagent sessions while they run, and Activity
MetadataMetadataAssigneesLabelsarea/pluginsPlugins, skills, custom agentsplatform/linuxLinuxtype/bugSomething is brokenversion/v2OpenCode 2.x 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. |