Skip to content

Respect reload cooldown even when segments were stripped#48

Open
ryanbr wants to merge 1 commit intomasterfrom
feat/respect-cooldown-on-stripped
Open

Respect reload cooldown even when segments were stripped#48
ryanbr wants to merge 1 commit intomasterfrom
feat/respect-cooldown-on-stripped

Conversation

@ryanbr
Copy link
Copy Markdown
Owner

@ryanbr ryanbr commented Apr 6, 2026

Change || to && so cooldown is always respected in the shouldReload condition. Previously hadStrippedSegments bypassed cooldown (always reloaded when segments were stripped). Now requires both conditions: segments stripped AND cooldown expired.

In the else block hadStrippedSegments is always true (CSAI-only path handles stripped=0). The || made cooldown irrelevant here — the && restores it as a consistent reload gate.

Change || to && so cooldown is always respected in the shouldReload
condition. Previously hadStrippedSegments bypassed cooldown (always
reloaded when segments were stripped). Now requires both conditions:
segments stripped AND cooldown expired.

In the else block hadStrippedSegments is always true (CSAI-only path
handles stripped=0). The || made cooldown irrelevant here — the &&
restores it as a consistent reload gate.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant