Skip to main content

Function: setHistoryLimit()

function setHistoryLimit(params: SetHistoryLimitParams): Promise<void>;

Defined in: electron/services/database/historyLimitManager.ts:88

Set the history retention limit and prune older history entries if needed.

Limit behavior:

  • 0 or negative: Disables history retention (unlimited)
  • Positive values below the configured minimum: raised to the rules-driven minimum (25 by default)
  • Positive values within the configured range: used as provided

Parameters

params

SetHistoryLimitParams

Parameters for setting history limit

Returns

Promise<void>

Throws

Error when database operations fail