{"record":{"id":"f3df7c071027dac0","repo":"deepseek-ai/deepseek-harness","slug":"answered-error-code-answered-error-message-f3df7c","errorCode":null,"errorMessage":"${answered.error.code}: ${answered.error.message}","messagePattern":"\\$\\{answered\\.error\\.code\\}: \\$\\{answered\\.error\\.message\\}","errorType":"console","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/extensions/ui-cordis/src/client/index.ts","lineNumber":57,"sourceCode":"/** Mount every Cordis browser surface over the shared Host inventory. */\nexport function apply(ctx: ClientContext): void {\n  ctx.effect(() => ctx.locale.register(NS, { zh, en }), 'ui-cordis: dictionaries')\n\n  const port: CordisDynamicPort = {\n    stop: async (sessionId, pluginId) => {\n      const answered = await ctx.remote.dynamicCordisRunner.stopFromPanel(sessionId, pluginId)\n      if (!answered.ok) return { ok: false, message: `${answered.error.code}: ${answered.error.message}` }\n      if (answered.value.ok || answered.value.reason === 'not-running') return { ok: true }\n      return { ok: false, message: answered.value.message }\n    },\n    remove: async (sessionId, pluginId) => {\n      const answered = await ctx.remote.dynamicCordisRunner.undefineFromPanel(sessionId, pluginId)\n      if (!answered.ok) return { ok: false, message: `${answered.error.code}: ${answered.error.message}` }\n      return answered.value.ok ? { ok: true } : { ok: false, message: answered.value.message }\n    },\n    inventory: async () => {\n      const answered = await ctx.remote.dynamicCordisRunner.inventory()\n      if (!answered.ok) throw new Error(`${answered.error.code}: ${answered.error.message}`)\n      return answered.value\n    },\n  }\n  const inventory = createCordisInventory(port, (error) => {\n    console.error('[ui-cordis] reading the Cordis inventory failed:', error)\n  })\n  const runner = ctx.dynamicCordisRunner\n  const loaded = { getSnapshot: () => runner.getSnapshot(), subscribe: (fn: () => void) => runner.subscribe(fn) }\n  const runCards = new CordisRunCardRegistry()\n\n  ctx.effect(() => inventory.subscribe(() => {\n    const snapshot = inventory.getSnapshot()\n    if (snapshot.read) runner.reconcileApprovals(snapshot.rows)\n  }), 'ui-cordis: reconcile pending approvals')\n\n  ctx.remote.$on('cordis/dynamic-package', () => { inventory.refresh() })\n  ctx.remote.$on('cordis/dynamic-retract', () => { inventory.refresh() })\n  ctx.remote.$on('cordis/request-run', (request) => {","sourceCodeStart":39,"sourceCodeEnd":75,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/extensions/ui-cordis/src/client/index.ts#L39-L75","documentation":"Error \"${answered.error.code}: ${answered.error.message}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/extensions/ui-cordis/src/client/index.ts:57 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":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}