desktop AI fix: a claude CLI without a sign-in ("Not logged in · Please run /login", seen in a real headless run) shows 'not signed in' with the copy-for-AI fallback instead of a bare failure; the flags were checked against a real claude run (it edited the file)
This commit is contained in:
parent
c95f2af8ff
commit
5ed787a8ca
4 changed files with 19 additions and 1 deletions
10
apps/desktop/tests/ai-signed-out.test.ts
Normal file
10
apps/desktop/tests/ai-signed-out.test.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// 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);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue