deepseek-ai/deepseek-harness · error · TypeError
tmux-context: refreshIntervalMs must be a non-negative safe
Error message
tmux-context: refreshIntervalMs must be a non-negative safe integer, got ${String(refreshIntervalMs)} What it means
Error "tmux-context: refreshIntervalMs must be a non-negative safe integer, got ${String(refreshIntervalMs)}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/context/tmux-context/src/index.ts:202
&& event.data.source.kind === 'plugin'
&& event.data.source.plugin === name) {
const [block] = event.data.content
if (block?.type !== 'text') return undefined
const newline = block.text.indexOf('\n')
const state = newline === -1 ? '' : block.text.slice(newline + 1)
return { state, time: event.time }
}
}
return undefined
}
/** Reject refresh intervals that cannot represent an exact elapsed-millisecond threshold. */
function validateRefreshInterval(refreshIntervalMs: number | undefined): void {
if (refreshIntervalMs !== undefined && (
!Number.isSafeInteger(refreshIntervalMs)
|| refreshIntervalMs < 0
)) {
throw new TypeError(
`tmux-context: refreshIntervalMs must be a non-negative safe integer, got ${String(refreshIntervalMs)}`,
)
}
}
/**
* Register a prepended pre-step listener for the lifetime of `ctx`.
* @param ctx - plugin context; the listener is disposed with it.
* @param config - durable refresh scheduling configuration.
* @throws when the refresh interval is invalid.
*/
export function apply(ctx: Context, config: Config): void {
const refreshIntervalMs = config.refreshIntervalMs
validateRefreshInterval(refreshIntervalMs)
ctx.on('agent/pre-step', async (
{ agent, turn, step, signal },
next,View on GitHub (pinned to b150a551b8)
Solutions
- Set refreshIntervalMs to a non-negative safe integer.
When it happens
Trigger: Thrown at packages/context/tmux-context/src/index.ts:202 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/ce012bd4c61c0944.
Report an issue: GitHub.