fix(renderer): stop background Harness refresh storms - #37
Merged
BytePioneer-AI merged 5 commits intoAug 26, 2026
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
readyor terminallynotInstalledcheckingor reported a retryable error, while keeping explicit connection diagnostics as a forced full refreshRoot cause
A terminal missing Harness (for example DeepSeek Harness returning
notInstalled,retryable: false) kept the aggregate availability state non-ready. Window focus and Renderer lifecycle callbacks then re-ran inspection for every Harness, including ready Pi, Claude Code, and Grok runtimes. Update lifecycle callbacks could similarly call update checks again before backoff state was advanced. The resulting background request churn matched the repeatedLoading models...transitions and the request bursts observed before Windows app-server fatal exits.Tests
npm test: 152 TypeScript test files passed, 1 skipped; 1213 tests passed, 15 skipped; Rust workspace tests passednpm run lintnpm run typechecknpm run format:checknpm run buildLive candidate validation
Built and deployed the same Renderer bundle on Windows and macOS:
harness/inspect = 4), one update check, zero app-server closes across repeated focus/tool-output cycles and a 10-minute soakharness/inspect = 4) with no recurring availability refreshes during the same observation windowready; DeepSeek HarnessnotInstalledwithretryable: false; update check successful