DashboardopencodeHost.resolve must not execute plugins

Host.resolve must not execute plugins

Category: gotcha
Confidence: 1.00
ID: 01a07ea2-2870-7d37-b4d9-4e497b2cf0db
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 0itiEhlwdVKyYbkaQ
Created: 2026-09-08 01:29:11
Updated: 2026-09-08 01:29:11

Content

Trap: importing a plugin during Host.resolve looks like the easiest way to discover exports, but resolution fixtures deliberately throw if evaluated and plugin code may have arbitrary side effects. Fix: resolve package exports and conventional filesystem entrypoints statically; execute only later through Host.load, because resolution must remain side-effect free.

Move to: