Fix SCUM file workbench interactions

This commit is contained in:
npc0-hue
2026-08-04 12:05:27 +08:00
parent 8a25f52d68
commit 86a50ec8fa
6 changed files with 158 additions and 49 deletions
@@ -99,6 +99,8 @@ describe("PluginPageHostPage", () => {
it("keeps file workspace callbacks stable across parent operational refreshes", () => {
expect(hostSource).toContain("readyPluginRef.current = readyPlugin");
expect(hostSource).toContain("hostContextRef.current = hostContext");
expect(hostSource).toContain("refreshWorkspace: async ()");
expect(hostSource).toContain("platformApiClient.listGamePlugins()");
expect(hostSource).toContain("}, [pluginId, serverId]);");
expect(hostSource).not.toContain("}, [hostContext, readyPlugin, serverId]);");
});