fix: lint err

This commit is contained in:
Hoshina
2026-03-20 17:46:31 +08:00
parent 0e075f7300
commit 2b3c95b1f1
2 changed files with 4 additions and 3 deletions
+3 -1
View File
@@ -914,8 +914,10 @@ func TestAgentLoop_InterruptGraceful_UsesTerminalNoToolCall(t *testing.T) {
foundHint := false
foundSkipped := false
expectedHint := "Interrupt requested. Stop scheduling tools and provide a short final summary.\n\n" +
"Interrupt hint: wrap it up"
for _, msg := range terminalMessages {
if msg.Role == "user" && msg.Content == "Interrupt requested. Stop scheduling tools and provide a short final summary.\n\nInterrupt hint: wrap it up" {
if msg.Role == "user" && msg.Content == expectedHint {
foundHint = true
}
if msg.Role == "tool" && msg.ToolCallID == "call_2" && msg.Content == "Skipped due to graceful interrupt." {
+1 -2
View File
@@ -60,8 +60,7 @@ type turnState struct {
startedAt time.Time
finalContent string
pendingSteering []providers.Message
followUps []bus.InboundMessage
followUps []bus.InboundMessage
gracefulInterrupt bool
gracefulInterruptHint string