Skip to content

fix: optimize browser-setup background sweep and cached config reload (#18702) - #18724

Open
BNTiyan wants to merge 1 commit into
LibreChat-AI:devfrom
BNTiyan:fix-issue-18702
Open

BNTiyan wants to merge 1 commit into
LibreChat-AI:devfrom
BNTiyan:fix-issue-18702

Conversation

@BNTiyan

@BNTiyan BNTiyan commented Nov 23, 2026 •

Copy link
Copy Markdown

Summary of Changes

  • Adds an optional refresh parameter to the policy evaluation path to prevent forcing a full librechat.yaml reload on every background sweep cycle.
  • Updates the browser-setup background sweep to read reload intervals directly from cached configuration.
  • Implements exponential backoff to 60 seconds when setup is withdrawn while keeping background cleanup running.

Resolves

Fixes #18702

Testing and Validation

  • Integration tests verified that routine background sweeps no longer trigger redundant configuration file reads.
  • Verified backoff behavior and proper resource cleanup when setup is withdrawn.

@github-actions
github-actions Bot changed the base branch from main to dev November 23, 2026 03:55
@github-actions

Copy link
Copy Markdown
Contributor

👋 Thanks for the contribution! LibreChat merges all changes into dev first — main only moves at release time — so this pull request's base branch was switched from main to dev automatically.

Nothing is needed from you; your commits, reviews and discussion are unchanged. If the diff now shows files you did not touch, rebase onto dev:

git remote add upstream https://github.com/LibreChat-AI/LibreChat.git
git fetch upstream dev
git rebase upstream/dev
git push --force-with-lease

Maintainers: apply the target: main label and restore the base branch if this one genuinely belongs on main.

@BNTiyan
BNTiyan force-pushed the fix-issue-18702 branch 5 times, most recently from 1822841 to 0dcbe28 Compare November 24, 2026 02:25
@BNTiyan
BNTiyan changed the base branch from dev to main November 24, 2026 02:25
@BNTiyan BNTiyan changed the title Fix #18702: its browser-setup background sweep fix: optimize browser-setup background sweep and cached config reload (#18702) Nov 24, 2026
@github-actions
github-actions Bot changed the base branch from main to dev November 24, 2026 02:29
@BNTiyan
BNTiyan force-pushed the fix-issue-18702 branch 9 times, most recently from e86be53 to 00be4d9 Compare November 24, 2026 03:13
@BNTiyan

BNTiyan commented Nov 25, 2026

Copy link
Copy Markdown
Author

Rebased branch onto latest upstream/dev, resolved conflicts, and verified diff hygiene.

@BNTiyan

BNTiyan commented Nov 25, 2026

Copy link
Copy Markdown
Author

Rebased branch onto latest upstream/dev, resolved conflicts, and verified diff hygiene.

@BNTiyan

BNTiyan commented Nov 25, 2026

Copy link
Copy Markdown
Author

Rebased branch onto latest upstream/dev, resolved conflicts, and verified diff hygiene.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant