Function: setHistoryLimit()
setHistoryLimit(
params:SetHistoryLimitParams):Promise<void>
Defined in: electron/utils/database/historyLimitManager.ts:131
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
Parameters for setting history limit
Returns
Promise<void>
Throws
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when database operations fail