{"record":{"id":"35a0f8b9a766b5ef","repo":"sipeed/picoclaw","slug":"no-agent-available-for-session-q","errorCode":null,"errorMessage":"no agent available for session %q","messagePattern":"no agent available for session %q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/agent/steering.go","lineNumber":406,"sourceCode":"\tif err := al.ensureHooksInitialized(ctx); err != nil {\n\t\tal.activeTurnStates.Delete(sessionKey)\n\t\treturn \"\", err\n\t}\n\tif err := al.ensureMCPInitialized(ctx); err != nil {\n\t\tal.activeTurnStates.Delete(sessionKey)\n\t\treturn \"\", err\n\t}\n\n\tsteeringMsgs := al.dequeueSteeringMessagesForScopeWithFallback(sessionKey)\n\tif len(steeringMsgs) == 0 {\n\t\tal.activeTurnStates.Delete(sessionKey)\n\t\treturn \"\", nil\n\t}\n\n\tagent := al.agentForSession(sessionKey)\n\tif agent == nil {\n\t\tal.activeTurnStates.Delete(sessionKey)\n\t\treturn \"\", fmt.Errorf(\"no agent available for session %q\", sessionKey)\n\t}\n\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()","sourceCodeStart":388,"sourceCodeEnd":424,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/agent/steering.go#L388-L424","documentation":"Error \"no agent available for session %q\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/agent/steering.go:406 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"}