mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 11:04:42 -07:00
fix(config): disable JIT context loading by default (#24364)
This commit is contained in:
@@ -1647,7 +1647,7 @@ their corresponding top-level category object in your `settings.json` file.
|
|||||||
|
|
||||||
- **`experimental.jitContext`** (boolean):
|
- **`experimental.jitContext`** (boolean):
|
||||||
- **Description:** Enable Just-In-Time (JIT) context loading.
|
- **Description:** Enable Just-In-Time (JIT) context loading.
|
||||||
- **Default:** `true`
|
- **Default:** `false`
|
||||||
- **Requires restart:** Yes
|
- **Requires restart:** Yes
|
||||||
|
|
||||||
- **`experimental.useOSC52Paste`** (boolean):
|
- **`experimental.useOSC52Paste`** (boolean):
|
||||||
|
|||||||
@@ -2056,7 +2056,7 @@ const SETTINGS_SCHEMA = {
|
|||||||
label: 'JIT Context Loading',
|
label: 'JIT Context Loading',
|
||||||
category: 'Experimental',
|
category: 'Experimental',
|
||||||
requiresRestart: true,
|
requiresRestart: true,
|
||||||
default: true,
|
default: false,
|
||||||
description: 'Enable Just-In-Time (JIT) context loading.',
|
description: 'Enable Just-In-Time (JIT) context loading.',
|
||||||
showInDialog: false,
|
showInDialog: false,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -441,6 +441,7 @@ describe('<Footer />', () => {
|
|||||||
|
|
||||||
it('renders footer with all optional sections hidden (minimal footer)', async () => {
|
it('renders footer with all optional sections hidden (minimal footer)', async () => {
|
||||||
const { lastFrame, unmount } = await renderWithProviders(<Footer />, {
|
const { lastFrame, unmount } = await renderWithProviders(<Footer />, {
|
||||||
|
config: mockConfig,
|
||||||
width: 120,
|
width: 120,
|
||||||
uiState: { sessionStats: mockSessionStats },
|
uiState: { sessionStats: mockSessionStats },
|
||||||
settings: createMockSettings({
|
settings: createMockSettings({
|
||||||
@@ -558,6 +559,7 @@ describe('<Footer />', () => {
|
|||||||
describe('Footer Token Formatting', () => {
|
describe('Footer Token Formatting', () => {
|
||||||
const renderWithTokens = async (tokens: number) => {
|
const renderWithTokens = async (tokens: number) => {
|
||||||
const result = await renderWithProviders(<Footer />, {
|
const result = await renderWithProviders(<Footer />, {
|
||||||
|
config: mockConfig,
|
||||||
width: 120,
|
width: 120,
|
||||||
uiState: {
|
uiState: {
|
||||||
sessionStats: {
|
sessionStats: {
|
||||||
@@ -810,6 +812,7 @@ describe('<Footer />', () => {
|
|||||||
|
|
||||||
it('handles empty items array', async () => {
|
it('handles empty items array', async () => {
|
||||||
const { lastFrame, unmount } = await renderWithProviders(<Footer />, {
|
const { lastFrame, unmount } = await renderWithProviders(<Footer />, {
|
||||||
|
config: mockConfig,
|
||||||
width: 120,
|
width: 120,
|
||||||
uiState: { sessionStats: mockSessionStats },
|
uiState: { sessionStats: mockSessionStats },
|
||||||
settings: createMockSettings({
|
settings: createMockSettings({
|
||||||
|
|||||||
@@ -1151,7 +1151,7 @@ export class Config implements McpContext, AgentLoopContext {
|
|||||||
modelConfigServiceConfig ?? DEFAULT_MODEL_CONFIGS,
|
modelConfigServiceConfig ?? DEFAULT_MODEL_CONFIGS,
|
||||||
);
|
);
|
||||||
|
|
||||||
this.experimentalJitContext = params.experimentalJitContext ?? true;
|
this.experimentalJitContext = params.experimentalJitContext ?? false;
|
||||||
this.experimentalMemoryManager = params.experimentalMemoryManager ?? false;
|
this.experimentalMemoryManager = params.experimentalMemoryManager ?? false;
|
||||||
this.memoryBoundaryMarkers = params.memoryBoundaryMarkers ?? ['.git'];
|
this.memoryBoundaryMarkers = params.memoryBoundaryMarkers ?? ['.git'];
|
||||||
this.contextManagement = {
|
this.contextManagement = {
|
||||||
|
|||||||
@@ -2838,8 +2838,8 @@
|
|||||||
"jitContext": {
|
"jitContext": {
|
||||||
"title": "JIT Context Loading",
|
"title": "JIT Context Loading",
|
||||||
"description": "Enable Just-In-Time (JIT) context loading.",
|
"description": "Enable Just-In-Time (JIT) context loading.",
|
||||||
"markdownDescription": "Enable Just-In-Time (JIT) context loading.\n\n- Category: `Experimental`\n- Requires restart: `yes`\n- Default: `true`",
|
"markdownDescription": "Enable Just-In-Time (JIT) context loading.\n\n- Category: `Experimental`\n- Requires restart: `yes`\n- Default: `false`",
|
||||||
"default": true,
|
"default": false,
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"useOSC52Paste": {
|
"useOSC52Paste": {
|
||||||
|
|||||||
Reference in New Issue
Block a user