mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
Two issues addressed: 1. Plugin-loading useEffect unnecessarily depended on temporalState. After the #830 fix, no shouldLoad predicate reads temporalState, but the effect's dep array still included it, causing extra re-runs on every scrubber update. Removed temporalState from the dep array and the shouldLoad call site. Made temporalState optional in the LazyPluginRegistryEntry shouldLoad context type to match. 2. Regression test imported a local copy of shouldLoad instead of the production predicate. Extracted all three shouldLoad predicates into pluginRegistryPredicates.ts (pure module, no React/DOM dependencies), wired GraphWorkspace.tsx to use the imported functions, and updated the test to import and exercise the real production code via tsx. Verified: introducing the old broken condition causes the test to fail; the correct implementation passes all 7 assertions.