{"record":{"id":"8f41cdd7342f6de3","repo":"Wox-launcher/Wox","slug":"llm-stream-callback-not-found-callbackid","errorCode":null,"errorMessage":"llm stream callback not found: ${callbackId}","messagePattern":"llm stream callback not found: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"wox.plugin.host.nodejs/src/jsonrpc.ts","lineNumber":291,"sourceCode":"  const callbackId = request.Params.CallbackId\n  await plugin.API.leavePluginQueryCallbacks.get(callbackId)?.(ctx)\n}\n\nasync function onLLMStream(ctx: Context, request: PluginJsonRpcRequest) {\n  const plugin = pluginInstances.get(request.PluginId)\n  if (plugin === undefined || plugin === null) {\n    logger.error(ctx, `plugin not found: ${request.PluginName}, forget to load plugin?`)\n    throw new Error(`plugin not found: ${request.PluginName}, forget to load plugin?`)\n  }\n\n  const callbackId = request.Params.CallbackId\n  const streamType = request.Params.StreamType as AI.ChatStreamDataType\n  const data = request.Params.Data\n  const reasoning = request.Params.Reasoning ?? \"\"\n  const callbackFunc = plugin.API.llmStreamCallbacks.get(callbackId)\n  if (callbackFunc === undefined || callbackFunc === null) {\n    logger.error(ctx, `llm stream callback not found: ${callbackId}`)\n    throw new Error(`llm stream callback not found: ${callbackId}`)\n  }\n\n  callbackFunc({\n    Status: streamType,\n    Data: data,\n    Reasoning: reasoning,\n    ToolCalls: [] // currently we don't support toolcalls from host\n  })\n}\n\nasync function query(ctx: Context, request: PluginJsonRpcRequest) {\n  const plugin = pluginInstances.get(request.PluginId)\n  if (plugin === undefined || plugin === null) {\n    logger.error(ctx, `plugin not found: ${request.PluginName}, forget to load plugin?`)\n    throw new Error(`plugin not found: ${request.PluginName}, forget to load plugin?`)\n  }\n\n  const query = getMethod(ctx, request, \"query\")","sourceCodeStart":273,"sourceCodeEnd":309,"githubUrl":"https://github.com/Wox-launcher/Wox/blob/1659730fcb37154f26497e07308b1f8789d659fe/wox.plugin.host.nodejs/src/jsonrpc.ts#L273-L309","documentation":"Error \"llm stream callback not found: ${callbackId}\" thrown in Wox-launcher/Wox.","triggerScenarios":"Thrown at wox.plugin.host.nodejs/src/jsonrpc.ts:291 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":"1659730fcb37154f26497e07308b1f8789d659fe","analyzedAt":"2026-08-15T23:31:07.596Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}