{"record":{"id":"af9cdadbb1b6be58","repo":"sipeed/picoclaw","slug":"isolatedsidequestionprovider-w","errorCode":null,"errorMessage":"isolatedSideQuestionProvider: %w","messagePattern":"isolatedSideQuestionProvider: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/agent/turn_coord.go","lineNumber":645,"sourceCode":"\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\")\n\t}\n\n\tmodelCfg, err := al.sideQuestionModelConfig(agent, baseModelName, candidate)\n\tif err != nil {\n\t\treturn nil, \"\", nil, func() {}, fmt.Errorf(\"isolatedSideQuestionProvider: %w\", err)\n\t}\n\n\tfactory := al.providerFactory\n\tif factory == nil {\n\t\tfactory = providers.CreateProviderFromConfig\n\t}\n\tprovider, modelID, err := factory(modelCfg)\n\tif err != nil {\n\t\treturn nil, \"\", nil, func() {}, fmt.Errorf(\"isolatedSideQuestionProvider: %w\", err)\n\t}\n\n\tcleanup := func() {\n\t\tcloseProviderIfStateful(provider)\n\t}\n\treturn provider, modelID, modelCfg, cleanup, nil\n}\n\nfunc (al *AgentLoop) sideQuestionModelConfig(\n\tagent *AgentInstance,\n\tbaseModelName string,\n\tcandidate providers.FallbackCandidate,\n) (*config.ModelConfig, error) {\n\tif agent == nil {\n\t\treturn nil, fmt.Errorf(\"sideQuestionModelConfig: no agent available for /btw\")\n\t}\n\n\tif name := modelAliasFromCandidateIdentityKey(candidate.IdentityKey); name != \"\" {","sourceCodeStart":627,"sourceCodeEnd":663,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/agent/turn_coord.go#L627-L663","documentation":"Context wrapper in isolatedSideQuestionProvider around sideQuestionModelConfig: resolving the model configuration for the /btw isolated provider failed — the wrapped %w typically names an unresolvable model name or missing model entry in config. Distinct from the sibling 'no agent available' guard, which fires one line earlier; here an agent exists but its model config cannot be built.","triggerScenarios":"Thrown at pkg/agent/turn_coord.go:645 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the wrapped error to see which model-config lookup failed","Ensure the side-question model name resolves in the configured ModelList","Set an explicit side-question model in config","Fall back to the base model name for /btw questions when the dedicated one is unavailable"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","contentChangedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}