Skip to content

Use core v0.40.0: one circuit-breaker state machine - #156

Merged
fylorn merged 1 commit into
devfrom
chore/core-v0.40.0
Sep 24, 2026
Merged

fylorn merged 1 commit into
devfrom
chore/core-v0.40.0

Conversation

@fylorn

@fylorn fylorn commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Core v0.40.0 (ThinkWatchProject/ThinkWatch-Core#155) moves the upstream breaker onto tw-breaker. The server edition's route and MCP breakers now run the same state machine.

The desktop keeps its own policy and rules:

  • policy: three consecutive failures, a 60-second cooldown, one probe;
  • fail open when every provider is down;
  • no breaker at all for a single provider.

A provider whose cooldown is over still reads "ok" on the upstreams page.

tw-api, CONTROL_API_VERSION and the message codes are unchanged. The core release has all three twcore builds.

Local checks: cargo clippy --all-targets -D warnings and cargo test in src-tauri pass, including the seam test against a real twcore.

🤖 Generated with Claude Code

Core v0.40.0 moves the upstream breaker onto tw-breaker, the state
machine the server edition's route and MCP breakers now run too. The
desktop keeps its policy — three consecutive failures, a 60-second
cooldown, one probe — and its own rules: fail open when every provider
is down, no breaker at all for a single provider. A provider whose
cooldown is over reads "ok" on the upstreams page, as before.

tw-api, CONTROL_API_VERSION and the message codes are unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@fylorn
fylorn merged commit 92740a1 into dev Sep 24, 2026
3 checks passed
@fylorn
fylorn deleted the chore/core-v0.40.0 branch September 24, 2026 04:20
@fylorn fylorn mentioned this pull request Sep 24, 2026
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