mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
fix: lint err
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user