diff --git a/packages/core/src/ai-model/conversation-history.ts b/packages/core/src/ai-model/conversation-history.ts index ba72e0bb1..86be07ee4 100644 --- a/packages/core/src/ai-model/conversation-history.ts +++ b/packages/core/src/ai-model/conversation-history.ts @@ -42,6 +42,7 @@ export class ConversationHistory { this.memories.length = 0; this.subGoals.length = 0; this.historicalLogs.length = 0; + this.pendingFeedbackMessage = ''; } /** diff --git a/packages/core/tests/unit-test/conversation-history.test.ts b/packages/core/tests/unit-test/conversation-history.test.ts index cf01410aa..2709c5e82 100644 --- a/packages/core/tests/unit-test/conversation-history.test.ts +++ b/packages/core/tests/unit-test/conversation-history.test.ts @@ -54,6 +54,8 @@ describe('ConversationHistory', () => { history.appendHistoricalLog('Step 1'); history.appendHistoricalLog('Step 2'); + history.pendingFeedbackMessage = 'Current time: 2026-03-02T16:04:00'; + history.reset(); expect(history.length).toBe(0); @@ -62,6 +64,7 @@ describe('ConversationHistory', () => { expect(history.memoriesToText()).toBe(''); expect(history.subGoalsToText()).toBe(''); expect(history.historicalLogsToText()).toBe(''); + expect(history.pendingFeedbackMessage).toBe(''); }); it('clears pending feedback message only when set', () => {