deepseek-ai/deepseek-harness · error · ManualCompactionError

busy

busy

Error message

manual compaction requires an idle agent with no waking queued work

What it means

Error "manual compaction requires an idle agent with no waking queued work" thrown in deepseek-ai/deepseek-harness.

Source

Thrown at packages/compaction/compaction-basic/src/index.ts:414

                await this.ctx.sessions.flush(agent.session)
              },
            },
            operationSignal,
          )
        } catch (error: unknown) {
          if (agentSignal.aborted && operationSignal.reason === agentSignal.reason) {
            throw new ManualCompactionError(
              'cancelled',
              'manual compaction was cancelled',
              { cause: error },
            )
          }
          operationSignal.throwIfAborted()
          throw error
        }
      })
    } catch (error: unknown) {
      throw new ManualCompactionError(
        'busy',
        'manual compaction requires an idle agent with no waking queued work',
        { cause: error },
      )
    }
  }

  /** Bind the effective token meter and dynamically dispatched summarizer hook. */
  private regionDependencies(): { meter: TokenMeter; summarize: RegionSummarize } {
    return {
      meter: this.ctx.tokenMeter,
      summarize: (input, owner, abort) => this.summarize(input, owner, abort),
    }
  }
}

export default BasicCompactionEngine

View on GitHub (pinned to b150a551b8)

Solutions

  1. Wait until the agent is idle with no queued waking work, then run manual compaction.

When it happens

Trigger: Thrown at packages/compaction/compaction-basic/src/index.ts:414 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/df0661683cb87852. Report an issue: GitHub.