deepseek-ai/deepseek-harness · error
skill-filesystem: failed to close watcher: ${errorMessage(er
Error message
skill-filesystem: failed to close watcher: ${errorMessage(error)} What it means
Error "skill-filesystem: failed to close watcher: ${errorMessage(error)}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/skill/skill-filesystem/src/index.ts:594
})()
}
private queueInvalidation(): void {
if (this.closing || this.invalidationQueued) return
this.invalidationQueued = true
queueMicrotask(() => {
this.invalidationQueued = false
/* v8 ignore next -- Effect teardown can win this queued microtask before provider disposal emits. */
if (this.closing) return
this.invalidate()
})
}
private async closeWatcher(watcher: WatchHandle): Promise<void> {
try {
await watcher.close()
} catch (error) {
this.ctx.logger.warn(`skill-filesystem: failed to close watcher: ${errorMessage(error)}`)
}
}
}
async function settleWatcherOpening(opening: Promise<void> | undefined): Promise<void> {
if (opening === undefined) return
try {
await opening
} catch {
// Watch startup already logged the underlying failure; teardown only contains it.
}
}
function resolveWatchConfig(config: Config): ResolvedWatchConfig {
const stabilityThresholdMs = config.watchStabilityThresholdMs ?? DEFAULT_WATCH_STABILITY_THRESHOLD_MS
const pollIntervalMs = config.watchPollIntervalMs ?? DEFAULT_WATCH_POLL_INTERVAL_MS
const maxProjects = config.watchMaxProjects ?? DEFAULT_WATCH_MAX_PROJECTS
assertPositiveInteger('watchStabilityThresholdMs', stabilityThresholdMs)View on GitHub (pinned to b150a551b8)
Solutions
- Inspect the watcher close error; it is logged during teardown and usually safe to ignore unless it repeats.
When it happens
Trigger: Thrown at packages/skill/skill-filesystem/src/index.ts:594 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/a04927ab60892eab.
Report an issue: GitHub.