Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
export async function commitWorkPanelPresentation({
reservation,
isCurrent,
commit,
}: {
reservation: Promise<unknown>;
isCurrent: () => boolean;
commit: () => void;
}): Promise<boolean> {
try {
await reservation;
} catch {
return false;
}
if (!isCurrent()) return false;
commit();
return true;
}