{"record":{"id":"7ca2a397a79a739a","repo":"sipeed/picoclaw","slug":"hook-aborted-turn-during-after-llm-s","errorCode":null,"errorMessage":"hook aborted turn during after_llm: %s","messagePattern":"hook aborted turn during after_llm: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/agent/turn_coord.go","lineNumber":613,"sourceCode":"\t\t\t\tSource:      \"askSideQuestion\",\n\t\t\t\tTracePath:   \"turn.llm.response\",\n\t\t\t\tturnContext: cloneTurnContext(turnCtx),\n\t\t\t},\n\t\t\tContext:  cloneTurnContext(turnCtx),\n\t\t\tModel:    llmModel,\n\t\t\tResponse: resp,\n\t\t})\n\t\tswitch decision.normalizedAction() {\n\t\tcase HookActionContinue, HookActionModify:\n\t\t\tif llmResp != nil && llmResp.Response != nil {\n\t\t\t\tresp = llmResp.Response\n\t\t\t}\n\t\tcase HookActionAbortTurn, HookActionHardAbort:\n\t\t\treason := decision.Reason\n\t\t\tif reason == \"\" {\n\t\t\t\treason = \"hook requested turn abort\"\n\t\t\t}\n\t\t\treturn \"\", fmt.Errorf(\"hook aborted turn during after_llm: %s\", reason)\n\t\t}\n\t}\n\tif sideSuppressReasoning {\n\t\tresp.Reasoning = \"\"\n\t\tresp.ReasoningContent = \"\"\n\t\tresp.ReasoningDetails = nil\n\t}\n\n\treturn sideQuestionResponseContent(resp), nil\n}\n\nfunc (al *AgentLoop) isolatedSideQuestionProvider(\n\tagent *AgentInstance,\n\tbaseModelName string,\n\tcandidate providers.FallbackCandidate,\n) (providers.LLMProvider, string, *config.ModelConfig, func(), error) {\n\tif agent == nil {\n\t\treturn nil, \"\", nil, func() {}, fmt.Errorf(\"isolatedSideQuestionProvider: no agent available for /btw\")","sourceCodeStart":595,"sourceCodeEnd":631,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/agent/turn_coord.go#L595-L631","documentation":"Error \"hook aborted turn during after_llm: %s\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/agent/turn_coord.go:613 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"}