test(goal): close terminal pause e2e

This commit is contained in:
Tianyi Cui
2026-07-20 02:38:14 +08:00
parent dddebe6755
commit 1a14b60569
2 changed files with 6 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ class GoalScriptAdapter extends LlmAdapter {
if (goal === undefined) throw new Error('scripted goal state missing')
return toolCall('update_goal', { goal_id: goal.id, revision: goal.revision, action: 'pause' })
}
if (prompt.text === 'pause') return textReply('GOAL PAUSED')
if (prompt.text === 'pause') return textReply('UNEXPECTED CONTINUATION AFTER PAUSE')
return textReply('UNEXPECTED PROMPT')
}
}