deepseek-ai/deepseek-harness · error · HarnessError

SESSION_QUERY_SEARCH_DISABLED

SESSION_QUERY_SEARCH_DISABLED

Error message

session search is disabled in this deployment

What it means

Sanitized boundary message for SESSION_QUERY_SEARCH_DISABLED: this deployment did not mount the session search capability. A fixed SAFE_SESSION_QUERY_FAILURES entry, not an exceptional fault — the tool result simply reports the feature is off.

Solutions

  1. Enable session search in the deployment configuration, or avoid the search operation in this deployment.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at packages/session-query/tool-session-query/src/service-boundary.ts:75 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24). Data as JSON: /api/errors/91709267ecb6a4f8. Report an issue: GitHub.

Appendix: source

Thrown at packages/session-query/tool-session-query/src/service-boundary.ts:75

  },
  SESSION_QUERY_INVALID_LINEAGE: {
    code: 'SESSION_QUERY_INVALID_LINEAGE',
    message: 'session lineage is invalid',
  },
  SESSION_QUERY_INVALID_SURFACE: {
    code: 'SESSION_QUERY_INVALID_SURFACE',
    message: 'session event history is invalid',
  },
  SESSION_QUERY_INVALID_WINDOW: {
    code: 'SESSION_QUERY_INVALID_WINDOW',
    message: 'session event window is invalid',
  },
  SESSION_QUERY_PERSISTENCE_FAILED: {
    code: 'SESSION_QUERY_PERSISTENCE_FAILED',
    message: 'session history storage is unavailable',
  },
  SESSION_QUERY_SEARCH_DISABLED: {
    code: 'SESSION_QUERY_SEARCH_DISABLED',
    message: 'session search is disabled in this deployment',
  },
  SESSION_QUERY_SESSION_NOT_FOUND: {
    code: 'SESSION_QUERY_SESSION_NOT_FOUND',
    message: 'session was not found',
  },
  SESSION_QUERY_STALE_CURSOR: {
    code: 'SESSION_QUERY_STALE_CURSOR',
    message: 'session history changed while paging; retry the complete search call',
  },
  SESSION_QUERY_SOURCE_CONFLICT: {
    code: 'SESSION_QUERY_TOOL_FAILED',
    message: 'session query operation failed',
  },
} satisfies Record<SessionQueryErrorCode, ModelSafeServiceFailure>

function unauthorizedTarget(): HarnessError {
  return new HarnessError(

View on GitHub (pinned to b150a551b8)