We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c8384c commit 518a0abCopy full SHA for 518a0ab
backend/src/tools/handlers/tool/spawn-agent-utils.ts
@@ -15,7 +15,6 @@ import type {
15
} from '@codebuff/common/types/session-state'
16
import type { ProjectFileContext } from '@codebuff/common/util/file'
17
import type { WebSocket } from 'ws'
18
-import { expireMessages } from '../../../util/messages'
19
export interface SpawnAgentParams {
20
agent_type: string
21
prompt?: string
@@ -243,7 +242,7 @@ export function createAgentState(
243
242
const agentId = generateCompactId()
244
245
const messageHistory = agentTemplate.includeMessageHistory
246
- ? expireMessages(parentMessageHistory, 'userPrompt')
+ ? parentMessageHistory
247
: []
248
249
return {
0 commit comments