Files
DemonGatanjieuandClaude Opus 5.5 b9fd30ad72 Fix Anomalous sometimes not starting
ComfyUI imports every script under web/ on its own and at once, so any module
of the big import cycle can run first. ui_ai_workbench.js wrote to a const of
ui_ai_results.js as it loaded, which failed when ui_ai_results.js or
ui_ai_step_body.js was entered first, and the whole plugin went with it until
a reload. The value now lives in a module that imports nothing, and
tests/module_cycles.mjs refuses the pattern.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 01:52:28 +08:00

8 lines
422 B
JavaScript

/**
* What the parts of the AI page share: AMB's window, the task shown, its canvas entries, the player and
* the way to a run's map. It imports nothing, so it stands before any of them runs: ui_ai_workbench.js
* writes here as it loads, and ComfyUI may run any of AMB's modules first (tests/module_cycles.mjs).
*/
export const shared = { owner: null, taskId: null, entries: new Map(), player: null, openMap: null };