deepseek-ai/deepseek-harness · error
settings-file: reload failed at %s; keeping the last good do
Error message
settings-file: reload failed at %s; keeping the last good document
What it means
Error "settings-file: reload failed at %s; keeping the last good document" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/settings/settings-file/src/index.ts:310
throw new TypeError(`settings-file: ${this.spec.filename} must be a map of namespace sections`)
}
return root as Record<string, unknown>
}
/**
* Re-read the document after a watcher event. Unchanged content (including
* this provider's own writes) is a no-op; an unreadable or unparsable
* document keeps the last good sections and warns — a live hot-reload must
* never take the process down. An invariant violation escaping a commit is
* not a reload failure and propagates to the queue's error surface.
*/
private async refresh(): Promise<void> {
if (this.closed) return
try {
await this.reconcileFromDisk()
} catch (error) {
if ((error as { code?: unknown } | null)?.code === 'INVARIANT') throw error
this.ctx.logger.warn('settings-file: reload failed at %s; keeping the last good document', this.spec.filename)
this.ctx.logger.warn(error)
}
}
/**
* Compare the on-disk text against the cache and publish any difference
* into the seam. Absence publishes the empty document; an unreadable or
* unparsable file throws, so each caller picks its policy — a reload warns
* and keeps the last good document, a write fails loud.
*/
private async reconcileFromDisk(): Promise<void> {
let text: string | undefined
try {
text = await readFile(this.spec.filename, 'utf8')
} catch (error) {
if (!isENOENT(error)) throw error
text = undefined
}View on GitHub (pinned to b150a551b8)
Solutions
- Fix the settings file syntax at the named path; the last good document is kept until a valid reload succeeds.
When it happens
Trigger: Thrown at packages/settings/settings-file/src/index.ts:310 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/42193545b952a6c8.
Report an issue: GitHub.