deepseek-ai/deepseek-harness · error
session projection cache: ${trigger} write for "${session.id
Error message
session projection cache: ${trigger} write for "${session.id}" failed (cache stays stale): ${String(error)} What it means
Error "session projection cache: ${trigger} write for "${session.id}" failed (cache stays stale): ${String(error)}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/session/session-projection-cache/src/index.ts:249
// Clear pending timers with the plugin (their sessions outlive the cache).
this.ctx.effect(() => () => {
for (const state of this.dirty.values()) {
if (state.timer !== undefined) clearTimeout(state.timer)
}
this.dirty.clear()
}, 'sessionProjectionCache.timers')
}
/**
* One fail-soft durable checkpoint. Every caller has work by construction:
* the throttle triggers only fire dirty (markClean clears the timer with
* the counter) and the two mandatory points write unconditionally.
*/
private async flushSoft(session: Session, trigger: string): Promise<void> {
try {
await this.write(session)
} catch (error) {
this.ctx.logger.warn(`session projection cache: ${trigger} write for "${session.id}" failed (cache stays stale): ${String(error)}`)
}
}
/** Reset one session's dirty bookkeeping (its checkpoint is being written). */
private markClean(session: Session): void {
const state = this.dirty.get(session)
if (state === undefined) return
state.pending = 0
if (state.timer !== undefined) {
clearTimeout(state.timer)
state.timer = undefined
}
}
/** Replace one session's stored record with its log identity and a detached snapshot of `rows`. */
private async put(id: SessionId, identity: CheckpointIdentity, rows: ProjectionCheckpoint): Promise<void> {
const detached = snapshotJsonValue(rows)
if (detached === undefined) {View on GitHub (pinned to b150a551b8)
Solutions
- Check the projection cache storage (path, permissions, disk); the cache stays stale until a write succeeds.
When it happens
Trigger: Thrown at packages/session/session-projection-cache/src/index.ts:249 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/3121494cade0a9fb.
Report an issue: GitHub.