Skip to content

Commit b3efa0b

Browse files
committed
Implement subagent prompt caching: includeMessageHistory now also includes system prompt
1 parent 90c1b90 commit b3efa0b

File tree

14 files changed

+505
-65
lines changed

14 files changed

+505
-65
lines changed

backend/src/__tests__/cost-aggregation.integration.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const mockFileContext: ProjectFileContext = {
4848
inputSchema: {},
4949
spawnerPrompt: '',
5050
model: 'gpt-4o-mini',
51-
includeMessageHistory: true,
51+
includeMessageHistory: false,
5252
toolNames: ['spawn_agents'],
5353
spawnableAgents: ['editor'],
5454
systemPrompt: 'Base agent system prompt',
@@ -65,7 +65,7 @@ const mockFileContext: ProjectFileContext = {
6565
includeMessageHistory: true,
6666
toolNames: ['write_file'],
6767
spawnableAgents: [],
68-
systemPrompt: 'Editor agent system prompt',
68+
systemPrompt: '',
6969
instructionsPrompt: 'Editor agent instructions',
7070
stepPrompt: 'Editor agent step prompt',
7171
},
@@ -139,7 +139,7 @@ describe('Cost Aggregation Integration Tests', () => {
139139
inputSchema: {},
140140
spawnerPrompt: '',
141141
model: 'gpt-4o-mini',
142-
includeMessageHistory: true,
142+
includeMessageHistory: false,
143143
mcpServers: {},
144144
toolNames: ['spawn_agents'],
145145
spawnableAgents: ['editor'],
@@ -158,7 +158,7 @@ describe('Cost Aggregation Integration Tests', () => {
158158
mcpServers: {},
159159
toolNames: ['write_file'],
160160
spawnableAgents: [],
161-
systemPrompt: 'Editor agent system prompt',
161+
systemPrompt: '',
162162
instructionsPrompt: 'Editor agent instructions',
163163
stepPrompt: 'Editor agent step prompt',
164164
} satisfies AgentTemplate,

0 commit comments

Comments
 (0)