Skip to content

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

315 B
Raw Blame
/** 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;
}