Skip to content

Commit 201c74c

Browse files
SandyTao520scidomino
authored andcommitted
fix(config): disable JIT context loading by default (#24364)
1 parent b7d2aea commit 201c74c

5 files changed

Lines changed: 8 additions & 5 deletions

File tree

docs/reference/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,7 @@ their corresponding top-level category object in your `settings.json` file.
16001600

16011601
- **`experimental.jitContext`** (boolean):
16021602
- **Description:** Enable Just-In-Time (JIT) context loading.
1603-
- **Default:** `true`
1603+
- **Default:** `false`
16041604
- **Requires restart:** Yes
16051605

16061606
- **`experimental.useOSC52Paste`** (boolean):

packages/cli/src/config/settingsSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1998,7 +1998,7 @@ const SETTINGS_SCHEMA = {
19981998
label: 'JIT Context Loading',
19991999
category: 'Experimental',
20002000
requiresRestart: true,
2001-
default: true,
2001+
default: false,
20022002
description: 'Enable Just-In-Time (JIT) context loading.',
20032003
showInDialog: false,
20042004
},

packages/cli/src/ui/components/Footer.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ describe('<Footer />', () => {
434434

435435
it('renders footer with all optional sections hidden (minimal footer)', async () => {
436436
const { lastFrame, unmount } = await renderWithProviders(<Footer />, {
437+
config: mockConfig,
437438
width: 120,
438439
uiState: { sessionStats: mockSessionStats },
439440
settings: createMockSettings({
@@ -551,6 +552,7 @@ describe('<Footer />', () => {
551552
describe('Footer Token Formatting', () => {
552553
const renderWithTokens = async (tokens: number) => {
553554
const result = await renderWithProviders(<Footer />, {
555+
config: mockConfig,
554556
width: 120,
555557
uiState: {
556558
sessionStats: {
@@ -734,6 +736,7 @@ describe('<Footer />', () => {
734736

735737
it('handles empty items array', async () => {
736738
const { lastFrame, unmount } = await renderWithProviders(<Footer />, {
739+
config: mockConfig,
737740
width: 120,
738741
uiState: { sessionStats: mockSessionStats },
739742
settings: createMockSettings({

packages/core/src/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ export class Config implements McpContext, AgentLoopContext {
10871087
modelConfigServiceConfig ?? DEFAULT_MODEL_CONFIGS,
10881088
);
10891089

1090-
this.experimentalJitContext = params.experimentalJitContext ?? true;
1090+
this.experimentalJitContext = params.experimentalJitContext ?? false;
10911091
this.experimentalMemoryManager = params.experimentalMemoryManager ?? false;
10921092
this.topicUpdateNarration = params.topicUpdateNarration ?? false;
10931093
this.modelSteering = params.modelSteering ?? false;

schemas/settings.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2777,8 +2777,8 @@
27772777
"jitContext": {
27782778
"title": "JIT Context Loading",
27792779
"description": "Enable Just-In-Time (JIT) context loading.",
2780-
"markdownDescription": "Enable Just-In-Time (JIT) context loading.\n\n- Category: `Experimental`\n- Requires restart: `yes`\n- Default: `true`",
2781-
"default": true,
2780+
"markdownDescription": "Enable Just-In-Time (JIT) context loading.\n\n- Category: `Experimental`\n- Requires restart: `yes`\n- Default: `false`",
2781+
"default": false,
27822782
"type": "boolean"
27832783
},
27842784
"useOSC52Paste": {

0 commit comments

Comments
 (0)