Self-hosted: set your own search window and auto-resolve timing

Self-hosted installations can now change two limits that were fixed before: how far back message search looks, and how often conversations are checked for auto-resolve. Message search is also more reliable when OpenSearch has problems.

Search further back

Message search covers the last 90 days by default. Set SEARCH_TIME_RANGE_LIMIT_DAYS to a different number of days, for example 180, to change it. The new limit applies to standard search, advanced search and the search date picker.

Auto-resolve timing

AUTO_RESOLVE_MIN_MINUTES sets the shortest inactivity period an account can choose for auto-resolve, and AUTO_RESOLVE_CRON sets how often the auto-resolve check runs. The defaults are 10 minutes and every 5 minutes.

The two work together. A 5 minute minimum only helps if the check also runs more often, for example every minute. Running the check more often creates more background jobs for every account, so make sure your server can handle the extra load.Search keeps working if OpenSearch fails

If your search service (OpenSearch) has a problem, message search now falls back to standard search, so your team still gets results.

Set these as environment variables (in .env, your Docker Compose file or Helm values) and restart Chatwoot. They are available from v4.19.0.