Skip to content

fix(runtime): apply rate-limit and auto-mode config changes immediately#116

Merged
alexk-dev merged 1 commit intomainfrom
fix/runtime-config-immediate-apply
Feb 24, 2026
Merged

fix(runtime): apply rate-limit and auto-mode config changes immediately#116
alexk-dev merged 1 commit intomainfrom
fix/runtime-config-immediate-apply

Conversation

@alexk-dev
Copy link
Owner

Summary

  • fix TokenBucketRateLimiter so existing buckets are recreated when runtime limits change, ensuring new rate-limit values apply immediately for global, channel, and llm scopes
  • add regression tests that reproduce and protect immediate-apply behavior for updated global, channel, and llm limits
  • fix AutoModeScheduler startup and tick behavior so runtime toggling of auto-mode feature is respected without restart: scheduler initializes even when feature is off at boot and each tick re-checks runtime flag
  • add regression tests for auto-mode runtime toggle behavior (disabled at startup, disabled at tick time, and disabled->enabled between ticks)

@sonarqubecloud
Copy link

@alexk-dev alexk-dev merged commit 3d2fb81 into main Feb 24, 2026
17 checks passed
@alexk-dev alexk-dev deleted the fix/runtime-config-immediate-apply branch February 24, 2026 13:55
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