fix: natural follow-up conversation flow

- Grader: separate followup hint from scoring feedback
- Interviewer: use followup hint directly without prefix/suffix
- Restored standard and choice question presentation paths
This commit is contained in:
Developer
2026-05-21 11:53:24 +08:00
parent c015ea3697
commit 1224a74e63
4 changed files with 15 additions and 27 deletions
@@ -81,14 +81,13 @@ describe('interviewerNode', () => {
});
describe('follow-up mode', () => {
it('should include feedback in follow-up prompt', async () => {
it('should use last feedbackHistory message content as follow-up prompt', async () => {
const state = baseState({
shouldFollowUp: true,
feedbackHistory: [new AIMessage('Feedback: You need more details')],
feedbackHistory: [new AIMessage('You need more details')],
});
const result = await interviewerNode(state);
const msg = (result.messages as any)[0].content as string;
expect(msg).toContain('Follow-up');
expect(msg).toContain('You need more details');
});