{"record":{"id":"4391a2e9e5513fdf","repo":"sipeed/picoclaw","slug":"asksidequestion-no-agent-available-for-btw","errorCode":null,"errorMessage":"askSideQuestion: no agent available for /btw","messagePattern":"askSideQuestion: no agent available for /btw","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/agent/turn_coord.go","lineNumber":366,"sourceCode":"\tcm, err := factory(al.cfg.Agents.Defaults.ContextManagerConfig, al)\n\tif err != nil {\n\t\tlogger.WarnCF(\"agent\", \"Failed to create context manager, falling back to legacy\", map[string]any{\n\t\t\t\"name\":  name,\n\t\t\t\"error\": err.Error(),\n\t\t})\n\t\treturn &legacyContextManager{al: al}\n\t}\n\treturn cm\n}\n\nfunc (al *AgentLoop) askSideQuestion(\n\tctx context.Context,\n\tagent *AgentInstance,\n\topts *processOptions,\n\tquestion string,\n) (string, error) {\n\tif agent == nil {\n\t\treturn \"\", fmt.Errorf(\"askSideQuestion: no agent available for /btw\")\n\t}\n\n\tquestion = strings.TrimSpace(question)\n\tif question == \"\" {\n\t\treturn \"\", fmt.Errorf(\"askSideQuestion: %w\", fmt.Errorf(\"Usage: /btw <question>\"))\n\t}\n\n\tif opts != nil {\n\t\tnormalizeProcessOptionsInPlace(opts)\n\t\tresolved, err := resolveTurnProfileOptions(al.GetConfig(), *opts)\n\t\tif err != nil {\n\t\t\treturn \"\", err\n\t\t}\n\t\t*opts = resolved\n\t}\n\n\tvar media []string\n\tvar channel, chatID, senderID, senderDisplayName string","sourceCodeStart":348,"sourceCodeEnd":384,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/agent/turn_coord.go#L348-L384","documentation":"Error \"askSideQuestion: no agent available for /btw\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/agent/turn_coord.go:366 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"}