{"record":{"id":"5abfa08454e009d9","repo":"sipeed/picoclaw","slug":"no-active-turn","errorCode":null,"errorMessage":"no active turn","messagePattern":"no active turn","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/agent/steering.go","lineNumber":426,"sourceCode":"\n\tif tool, ok := agent.Tools.Get(\"message\"); ok {\n\t\tif resetter, ok := tool.(interface{ ResetSentInRound(sessionKey string) }); ok {\n\t\t\tresetter.ResetSentInRound(sessionKey)\n\t\t}\n\t}\n\n\tvar scope *session.SessionScope\n\tif metaStore, ok := agent.Sessions.(session.MetadataAwareSessionStore); ok {\n\t\tscope = metaStore.GetSessionScope(sessionKey)\n\t}\n\n\treturn al.continueWithSteeringMessages(ctx, agent, sessionKey, channel, chatID, scope, steeringMsgs)\n}\n\nfunc (al *AgentLoop) InterruptGraceful(hint string) error {\n\tts := al.getAnyActiveTurnState()\n\tif ts == nil {\n\t\treturn fmt.Errorf(\"no active turn\")\n\t}\n\tif !ts.requestGracefulInterrupt(hint) {\n\t\treturn fmt.Errorf(\"turn %s cannot accept graceful interrupt\", ts.turnID)\n\t}\n\n\tal.emitEvent(\n\t\truntimeevents.KindAgentInterruptReceived,\n\t\tts.eventMeta(\"InterruptGraceful\", \"turn.interrupt.received\"),\n\t\tInterruptReceivedPayload{\n\t\t\tKind:    InterruptKindGraceful,\n\t\t\tHintLen: len(hint),\n\t\t},\n\t)\n\n\treturn nil\n}\n\n// InterruptHard aborts an arbitrary active turn. In parallel mode this may","sourceCodeStart":408,"sourceCodeEnd":444,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/agent/steering.go#L408-L444","documentation":"Error \"no active turn\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/agent/steering.go:426 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}