// The claude CLI without a sign-in exits at once with this result text (seen with a real run): the AI fix panel says // "not signed in" and offers the copy instead of a bare failure. import { expect, test } from 'bun:test'; import { signedOutText } from '../src/ui/AiFix'; test('signed-out claude answers are recognised', () => { expect(signedOutText('Not logged in · Please run /login')).toBe(true); expect(signedOutText('Invalid API key · Fix external API key')).toBe(true); expect(signedOutText('Removed NSAllowsArbitraryLoads; no http URLs are loaded.')).toBe(false); });