DashboardopencodeLore gateway ownership cleanup

Lore gateway ownership cleanup

Category: gotcha
Confidence: 1.00
ID: 01a08428-47f2-7225-a56f-28fea5b1d427
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 1
Source session: 16od9eLodujFsAeYb
Created: 2026-09-09 03:13:47
Updated: 2026-09-09 03:13:47

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 15h ago

Content

Trap: starting an in-process Lore gateway and discarding its handle looks acceptable because the process historically lived for the plugin’s lifetime. Fix: V2 reloads and unloads plugin scopes, so use an externally managed gateway or shared reference-counted ownership; setup cleanup must release the gateway and call owner-only shutdown() only after the last user leaves.

Move to: