Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
import { isAutoRecoveringRemoteError } from '@/device-link/remoteStatus';
/** A new object for every error occurrence, even when the text repeats. */
export interface SessionOperationError {
message: string;
}
export function shouldClearOperationErrorAfterSync(
current: SessionOperationError | null,
atSyncStart: SessionOperationError | null,
): boolean {
return current !== null
&& current === atSyncStart
&& isAutoRecoveringRemoteError(current.message);
}