{"record":{"id":"3d03479dbc599821","repo":"deepseek-ai/deepseek-harness","slug":"title-invalid","errorCode":"title-invalid","errorMessage":"error.message","messagePattern":"error\\.message","errorType":"error_code","errorClass":"SessionTitleInvalidError","httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/api-proxy.ts","lineNumber":2249,"sourceCode":"      },\n\n      async rename(request) {\n        const { sessionId, title } = request.payload\n        const found = await agentFor(sessionId)\n        if ('error' in found) return err(request, found.error)\n        const titles = ctx.get('sessionTitle')\n        if (titles === undefined) {\n          return err(request, { code: 'internal', message: 'renaming is unavailable: this deployment mounts no session-title service', details: {} })\n        }\n        try {\n          const accepted = titles.rename(found.agent.session, title)\n          return ok(request, { title: accepted.title, seq: accepted.eventSeq })\n        } catch (error: unknown) {\n          // Only the input's fault maps to title-invalid (the message is\n          // product-user-visible in the rename dialog); liveness and disposal\n          // races are deployment trouble, not a bad title.\n          if (error instanceof SessionTitleInvalidError) {\n            return err(request, {\n              code: 'title-invalid',\n              message: error.message,\n              details: { sessionId },\n            })\n          }\n          return err(request, {\n            code: 'internal',\n            message: `failed to rename session \"${sessionId}\": ${String(error)}`,\n            details: {},\n          })\n        }\n      },\n\n      async fork(request) {\n        const { sessionId, atSeq } = request.payload\n        let source: SessionReadState\n        try {\n          source = await readSessionState(sessionId)","sourceCodeStart":2231,"sourceCodeEnd":2267,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/api-proxy.ts#L2231-L2267","documentation":"Error \"error.message\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/host/apiproxy/src/api-proxy.ts:2249 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the forwarded error message in the response or logs and fix the underlying failure it names."],"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"}