deepseek-ai/deepseek-harness · error · Error
workspace domain is inconsistent: session '${sessionId}' is
Error message
workspace domain is inconsistent: session '${sessionId}' is accounted by both workspace '${holder}' and workspace '${id}' What it means
Error "workspace domain is inconsistent: session '${sessionId}' is accounted by both workspace '${holder}' and workspace '${id}'" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/workspace/workspace/src/index.ts:543
`workspace domain is inconsistent: workspace '${orphan as WorkspaceId}' is absent from registry order`,
)
}
const paths = new Map<string, WorkspaceId>()
const accounted = new Map<SessionId, WorkspaceId>()
for (const [id, record] of table.entries()) {
const pathHolder = paths.get(record.path)
if (pathHolder !== undefined) {
throw new Error(
`workspace domain is inconsistent: path '${record.path}' is claimed `
+ `by both workspace '${pathHolder}' and workspace '${id}'`,
)
}
paths.set(record.path, id)
for (const sessionId of record.sessionIds) {
const holder = accounted.get(sessionId)
if (holder !== undefined) {
throw new Error(
`workspace domain is inconsistent: session '${sessionId}' is accounted `
+ `by both workspace '${holder}' and workspace '${id}'`,
)
}
accounted.set(sessionId, id)
}
}
}
private rebuildEntities(): void {
this.entities.clear()
for (const id of this.requireState().workspaceIds) {
const record = this.requireTable().get(id) as WorkspaceRecord
this.entities.set(id, new WorkspaceEntity(this.host, id, record))
}
}
private async replaceHeaderIndex(headers: readonly SessionHeader[]): Promise<void> {View on GitHub (pinned to b150a551b8)
Solutions
- Detach the session from one of the two workspaces so it is accounted exactly once.
When it happens
Trigger: Thrown at packages/workspace/workspace/src/index.ts:543 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/fed3e6b83eecd42d.
Report an issue: GitHub.