mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-21 02:24:09 -07:00
Fix an issue where the agent stops prematurely (#16269)
This commit is contained in:
committed by
GitHub
parent
356f76e545
commit
c87d1aed4c
@@ -65,9 +65,12 @@ describe('Flash Model Fallback Configuration', () => {
|
||||
});
|
||||
|
||||
describe('activateFallbackMode', () => {
|
||||
it('should set model to fallback and log event', () => {
|
||||
it('should set active model to fallback and log event', () => {
|
||||
config.activateFallbackMode(DEFAULT_GEMINI_FLASH_MODEL);
|
||||
expect(config.getModel()).toBe(DEFAULT_GEMINI_FLASH_MODEL);
|
||||
expect(config.getActiveModel()).toBe(DEFAULT_GEMINI_FLASH_MODEL);
|
||||
// Ensure the persisted model setting is NOT changed (to preserve AUTO behavior)
|
||||
expect(config.getModel()).toBe(DEFAULT_GEMINI_MODEL);
|
||||
|
||||
expect(logFlashFallback).toHaveBeenCalledWith(
|
||||
config,
|
||||
expect.any(FlashFallbackEvent),
|
||||
|
||||
Reference in New Issue
Block a user