diff --git a/integration-tests/file-system-interactive.test.ts b/integration-tests/file-system-interactive.test.ts index 7509afb3..6927fde9 100644 --- a/integration-tests/file-system-interactive.test.ts +++ b/integration-tests/file-system-interactive.test.ts @@ -19,7 +19,7 @@ describe('Interactive file system', () => { }); it.skipIf(process.platform === 'win32')( - 'should perform a read-then-write sequence', + 'should perform a read-then-write sequence in interactive mode', async () => { const fileName = 'version.txt'; await rig.setup('interactive-read-then-write'); diff --git a/integration-tests/todo_write.test.ts b/integration-tests/todo_write.test.ts index e8279614..5de52811 100644 --- a/integration-tests/todo_write.test.ts +++ b/integration-tests/todo_write.test.ts @@ -50,7 +50,7 @@ Please create a todo list for these tasks.`; expect(todoArgs.todos).toBeDefined(); expect(Array.isArray(todoArgs.todos)).toBe(true); - expect(todoArgs.todos.length).toBe(4); + expect(todoArgs.todos.length).toBeGreaterThan(0); // Check that all todos have the correct structure for (const todo of todoArgs.todos) { diff --git a/integration-tests/vitest.config.ts b/integration-tests/vitest.config.ts index d0172c9a..c8b79ad6 100644 --- a/integration-tests/vitest.config.ts +++ b/integration-tests/vitest.config.ts @@ -17,7 +17,7 @@ export default defineConfig({ include: ['**/*.test.ts'], exclude: ['**/terminal-bench/*.test.ts', '**/node_modules/**'], retry: 2, - fileParallelism: false, + fileParallelism: true, poolOptions: { threads: { minThreads: 2, diff --git a/package-lock.json b/package-lock.json index 08a8d162..70ed71fd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "simple-git": "^3.28.0" }, "bin": { - "qwen": "bundle/gemini.js" + "qwen": "dist/cli.js" }, "devDependencies": { "@types/marked": "^5.0.2", diff --git a/packages/cli/src/ui/auth/useAuth.ts b/packages/cli/src/ui/auth/useAuth.ts index 510524a7..5cbffff8 100644 --- a/packages/cli/src/ui/auth/useAuth.ts +++ b/packages/cli/src/ui/auth/useAuth.ts @@ -30,17 +30,17 @@ export function validateAuthMethodWithSettings( } export const useAuthCommand = (settings: LoadedSettings, config: Config) => { - // If no auth type is selected, start in Updating state (shows auth dialog) + const unAuthenticated = + settings.merged.security?.auth?.selectedType === undefined; + const [authState, setAuthState] = useState( - settings.merged.security?.auth?.selectedType === undefined - ? AuthState.Updating - : AuthState.Unauthenticated, + unAuthenticated ? AuthState.Updating : AuthState.Unauthenticated, ); const [authError, setAuthError] = useState(null); const [isAuthenticating, setIsAuthenticating] = useState(false); - const [isAuthDialogOpen, setIsAuthDialogOpen] = useState(false); + const [isAuthDialogOpen, setIsAuthDialogOpen] = useState(unAuthenticated); const onAuthError = useCallback( (error: string | null) => {