Skip to content

Commit 38cee87

Browse files
committed
Try not expiring the user message
1 parent 2d68954 commit 38cee87

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

backend/src/main-prompt.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ export const mainPrompt = async (
203203
clientSessionId,
204204
onResponseChunk,
205205
localAgentTemplates,
206+
clearUserPromptMessagesAfterResponse: false,
206207
})
207208

208209
logger.debug({ agentState, output }, 'Main prompt finished')

backend/src/run-agent-step.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ export const loopAgentSteps = async (
432432
userId,
433433
clientSessionId,
434434
onResponseChunk,
435-
clearUserPromptMessagesAfterResponse = true,
435+
clearUserPromptMessagesAfterResponse = false,
436436
parentSystemPrompt,
437437
}: {
438438
userInputId: string

backend/src/tools/handlers/tool/spawn-agent-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export async function executeSubagent({
306306
clientSessionId,
307307
onResponseChunk,
308308
isOnlyChild = false,
309-
clearUserPromptMessagesAfterResponse = true,
309+
clearUserPromptMessagesAfterResponse = false,
310310
parentSystemPrompt,
311311
}: {
312312
ws: WebSocket

0 commit comments

Comments
 (0)