{"record":{"id":"fbf78c6f4d72190d","repo":"deepseek-ai/deepseek-harness","slug":"response-result-error-message","errorCode":null,"errorMessage":"response.result.error.message","messagePattern":"response\\.result\\.error\\.message","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/client/ui-permission-presets/src/client/settings-store.ts","lineNumber":147,"sourceCode":"   * @returns nothing; {@link store} carries success or failure.\n   */\n  async select(preset: string): Promise<void> {\n    const state = this.store.getSnapshot()\n    const view = this.describeFace.getSnapshot().view?.namespaces\n      .find(entry => entry.ns === PERMISSION_SETTINGS_NS)\n    if (view === undefined || !state.writable || this.saving) return\n    this.saving = true\n    this.store.update((draft) => {\n      draft.status = 'saving'\n      draft.error = null\n    })\n    try {\n      const response = await this.api.settings.mutate({\n        ns: PERMISSION_SETTINGS_NS,\n        ops: [{ op: 'set', path: ['defaultPreset'], value: preset }],\n        expectedRevision: view.revision,\n      })\n      if (!response.result.ok) throw new Error(response.result.error.message)\n      this.saving = false\n      if (this.disposed) return\n      // The mirror publish reaches this row's own subscription, so the fold\n      // is also what republishes the accepted value here.\n      this.describeFace.acceptView(response.result.value)\n    } catch (error) {\n      this.saving = false\n      if (this.disposed) return\n      this.fail(error)\n    }\n  }\n\n  /** Stop following the mirror; later publishes leave the snapshot alone. */\n  dispose(): void {\n    this.disposed = true\n    this.following?.()\n    this.following = undefined\n  }","sourceCodeStart":129,"sourceCodeEnd":165,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/client/ui-permission-presets/src/client/settings-store.ts#L129-L165","documentation":"Error \"response.result.error.message\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/client/ui-permission-presets/src/client/settings-store.ts:147 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect response.result.error and handle the RPC failure."],"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"}