refactor(workspace): drop eager skill/plugin refreshes from connect paths

Remove refreshSkills/refreshPlugins calls from activateWorkspace and
connectToServer. The extensions store now reactively handles this
when the workspace context key changes (Phase B).
This commit is contained in:
Benjamin Shafii
2026-03-28 11:23:13 -07:00
parent 36be6270da
commit fb8d882ba8

View File

@@ -1667,8 +1667,6 @@ export function createWorkspaceStore(options: {
}
}
options.refreshSkills({ force: true }).catch(() => undefined);
options.refreshPlugins().catch(() => undefined);
updateWorkspaceConnectionState(id, { status: "connected", message: null });
wsDebug("activate:local:done", { id, ms: Date.now() - activateStart });
return true;
@@ -1889,8 +1887,6 @@ export function createWorkspaceStore(options: {
clearSelectedSessionSurface();
options.refreshSkills({ force: true }).catch(() => undefined);
options.refreshPlugins().catch(() => undefined);
if (navigate && !options.selectedSessionId()) {
options.setTab("scheduled");
options.setView("session");