{"record":{"id":"ce012bd4c61c0944","repo":"deepseek-ai/deepseek-harness","slug":"tmux-context-refreshintervalms-must-be-a-non-nega","errorCode":null,"errorMessage":"tmux-context: refreshIntervalMs must be a non-negative safe integer, got ${String(refreshIntervalMs)}","messagePattern":"tmux-context: refreshIntervalMs must be a non-negative safe integer, got (.+?)","errorType":"validation","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"packages/context/tmux-context/src/index.ts","lineNumber":202,"sourceCode":"      && event.data.source.kind === 'plugin'\n      && event.data.source.plugin === name) {\n      const [block] = event.data.content\n      if (block?.type !== 'text') return undefined\n      const newline = block.text.indexOf('\\n')\n      const state = newline === -1 ? '' : block.text.slice(newline + 1)\n      return { state, time: event.time }\n    }\n  }\n  return undefined\n}\n\n/** Reject refresh intervals that cannot represent an exact elapsed-millisecond threshold. */\nfunction validateRefreshInterval(refreshIntervalMs: number | undefined): void {\n  if (refreshIntervalMs !== undefined && (\n    !Number.isSafeInteger(refreshIntervalMs)\n    || refreshIntervalMs < 0\n  )) {\n    throw new TypeError(\n      `tmux-context: refreshIntervalMs must be a non-negative safe integer, got ${String(refreshIntervalMs)}`,\n    )\n  }\n}\n\n/**\n * Register a prepended pre-step listener for the lifetime of `ctx`.\n * @param ctx - plugin context; the listener is disposed with it.\n * @param config - durable refresh scheduling configuration.\n * @throws when the refresh interval is invalid.\n */\nexport function apply(ctx: Context, config: Config): void {\n  const refreshIntervalMs = config.refreshIntervalMs\n  validateRefreshInterval(refreshIntervalMs)\n\n  ctx.on('agent/pre-step', async (\n    { agent, turn, step, signal },\n    next,","sourceCodeStart":184,"sourceCodeEnd":220,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/context/tmux-context/src/index.ts#L184-L220","documentation":"Error \"tmux-context: refreshIntervalMs must be a non-negative safe integer, got ${String(refreshIntervalMs)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/context/tmux-context/src/index.ts:202 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set refreshIntervalMs to a non-negative safe integer."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}