Home

dev / openkara

publicthedavidweng/OpenKara· sync paused
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(sources): do not keep a limit stop as a source error

merged
#706 opened by devfix/source-limit-is-not-sticky→main
Conversation2 Commits0
devopened this pull requestAuthor· 2 weeks ago

Summary

After a source stopped at its time or memory limit, Settings showed it as "Ready" next to "Source stopped at a time or memory limit. Retry or install a source update." with a primary Retry button. The source was usable: the next request already starts it fresh.

Changes

  • The supervisor drops a stopped instance without setting the source's last_error. The request that hit the limit still returns source_unavailable, and four failed starts still block the source until Retry or an update.
  • Contract note in source-host.md.

Test plan

  • cargo test --release --lib -- source_host: 52 passed. memory_and_stack_blow_ups_stop_the_source_even_when_caught now also runs maintenance and checks last_error stays empty; it fails without this change
  • cargo clippy --release --lib --tests: clean
  • Frontend: no changes

claude.ai/code/session_01N6gLNB1dzAQCEYjvHhcRPV

Files changed
…
coderabbitai[bot]commented· 2 weeks ago

[!WARNING]

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 43 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: thedavidweng/OpenKara
  • Branch: fix/source-limit-is-not-sticky
  • File: .coderabbit.yaml
  • Commit: 6d4fd5b
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 443141f5-5571-4265-a2d2-60a5dabbb4ad
Commits

Reviewing files that changed from the base of the PR and between 39502ae3981cf727f47a786147ab9e8acbb9c8e6 and 6d4fd5b99aff52e6536912d3231c69cc184caa53.

Files selected for processing: 3

  • docs/references/contracts/source-host.md
  • src-tauri/src/source_host/engine_tests.rs
  • src-tauri/src/source_host/supervisor.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
kilo-code-bot[bot]commented· 2 weeks ago

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • docs/references/contracts/source-host.md - contract note clarified; no issues
  • src-tauri/src/source_host/engine_tests.rs - added assertion that last_error stays None after a limit stop; valid and consistent with the change
  • src-tauri/src/source_host/supervisor.rs - dropped the changed flag and the last_error write on a dead instance in maintain(); the limit-stop error is still reported by the request that hit it via Shared::terminate() -> stopped_at_limit(), and running_locked/start_failures still gate repeated failures. No regression in publish paths.

Reviewed by free · Input: 158.7K · Output: 23.8K · Cached: 734.2K

Sign in to comment.

Merge readiness

Checking mergeability after the indexing worker computes the current branch state.

Autopilot

Debug

Reviews

Approved0
ReviewersNone yet

Configure an OpenRouter key in repository settings.