Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

416 B
Raw Blame
import { create } from "zustand";

/** Only unrelated application services are replaced; mode IPC/store wiring stays real. */
export const goalLayoutServices = { toasts: [] as string[], sessionRefreshes: 0 };

export const useAppStore = create(() => ({
  showToast: (message: string) => { goalLayoutServices.toasts.push(message); },
  refreshSessions: async () => { goalLayoutServices.sessionRefreshes += 1; },
}));