Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
/** Preserve legacy session-wide calls while rejecting stale explicit targets. */
export function matchesExpectedTurnId(
activeTurnId: string | undefined,
expectedTurnId: string | undefined,
): boolean {
return expectedTurnId === undefined || expectedTurnId.length === 0 || activeTurnId === expectedTurnId;
}