deepseek-ai/deepseek-harness · error · WorkspaceOrderInvalidError
cannot reorder unknown workspace '${workspaceId}'
Error message
cannot reorder unknown workspace '${workspaceId}' What it means
Error "cannot reorder unknown workspace '${workspaceId}'" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/workspace/workspace/src/index.ts:213
* published. Unknown ids are an idempotent no-op for domain callers.
* @param id - Workspace registration to remove.
* @returns `true` when a record was deleted, `false` when it was unknown.
*/
delete(id: WorkspaceId): Promise<boolean> {
return this.enqueueOperation(() => this.deleteKnown(id))
}
/**
* Move one workspace within the durable display order, DOM-insertBefore-like.
* With an anchor it lands before that workspace; without one it appends.
* @param id - Workspace to move.
* @param beforeId - Workspace anchor; omitted appends.
* @returns the complete committed workspace order.
*/
insertBefore(id: WorkspaceId, beforeId?: WorkspaceId): Promise<readonly WorkspaceId[]> {
return this.enqueueOperation(async () => {
const state = this.requireState()
if (!state.workspaceIds.includes(id)) throw new WorkspaceOrderInvalidError(id)
if (beforeId !== undefined && !state.workspaceIds.includes(beforeId)) {
throw new WorkspaceOrderInvalidError(beforeId)
}
if (beforeId === id) return state.workspaceIds
const without = state.workspaceIds.filter(workspaceId => workspaceId !== id)
const at = beforeId === undefined ? without.length : without.indexOf(beforeId)
const workspaceIds = [...without.slice(0, at), id, ...without.slice(at)]
if (sameIds(workspaceIds, state.workspaceIds)) return state.workspaceIds
await this.setState({ ...state, workspaceIds })
return workspaceIds
})
}
/**
* The registry-global archive set: sessions hidden from every grouping
* surface. Archiving never touches workspace accounting — an archived
* session keeps its `sessionIds` slot so unarchiving restores its position.
* @returns the archived session ids in archive order.View on GitHub (pinned to b150a551b8)
Solutions
- Pass a workspace id that exists in the registry when reordering.
When it happens
Trigger: Thrown at packages/workspace/workspace/src/index.ts:213 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/dd3eaf922964262d.
Report an issue: GitHub.