perf(runtime): bound caches, scans, and background work - #564
Open
beruro wants to merge 15 commits into
Open
Conversation
beruro
force-pushed
the
junyu/async-resource-lifecycle
branch
from
July 30, 2026 07:07
9c4d6e6 to
eb16aff
Compare
beruro
force-pushed
the
junyu/runtime-resource-bounds
branch
from
July 30, 2026 07:07
87c9201 to
7d574a2
Compare
beruro
force-pushed
the
junyu/async-resource-lifecycle
branch
from
July 30, 2026 07:49
eb16aff to
59189c0
Compare
beruro
force-pushed
the
junyu/runtime-resource-bounds
branch
from
July 30, 2026 07:49
7d574a2 to
cbb7a55
Compare
beruro
force-pushed
the
junyu/async-resource-lifecycle
branch
from
July 30, 2026 08:04
59189c0 to
a739c82
Compare
beruro
force-pushed
the
junyu/runtime-resource-bounds
branch
from
July 30, 2026 08:04
cbb7a55 to
3b7055f
Compare
Pre-commit hook ran. Total eslint: 10, total circular: 0
Pre-commit hook ran. Total eslint: 10, total circular: 0
beruro
force-pushed
the
junyu/async-resource-lifecycle
branch
from
July 30, 2026 15:09
a739c82 to
d16c8e5
Compare
Pre-commit hook ran. Total eslint: 10, total circular: 0
beruro
force-pushed
the
junyu/runtime-resource-bounds
branch
from
July 30, 2026 15:12
3b7055f to
e1ce75f
Compare
…e-lifecycle' into HEAD # Conflicts: # src/api/http/project/client.ts # src/modules/ProjectManager/WorkItems/hooks/useWorkItemsData.ts # src/store/session/sessionAtom/loaders.ts
beruro
marked this pull request as draft
August 10, 2026 03:35
beruro
force-pushed
the
junyu/async-resource-lifecycle
branch
2 times, most recently
from
August 10, 2026 05:24
fb403e6 to
5f991c2
Compare
beruro
marked this pull request as ready for review
August 11, 2026 05:16
Pre-commit hook ran. Total eslint: 0, total circular: 0
Pre-commit hook ran. Total eslint: 1, total circular: 0
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.
Problem
Repository, project, sidebar, benchmark, file-index, webview, git-watcher, Kanban impact, and Git History paths could duplicate in-flight work, retain unbounded cache/surface state, miss authoritative invalidation, or continue hidden/background work beyond the owning lifecycle.
Solution
Potential risks
Performance audit
Verdict: pass with documented safety valves. Active operations keep one owner per scope/store, equal requests coalesce, late generations cannot publish, retained caches/surfaces have explicit caps, and hidden work suspends.
Verification
Validated locally after merging current #562 head
8618af370into head98e9304dewithout conflicts:pnpm install --frozen-lockfile— PASS. The optional legacynode-sassnative postinstall warning did not block installation or checks.pnpm typecheck— PASS.cargo test -p git watch::tests::watcher_tests -- --nocapture— PASS, 17 tests.git diff --cached --checkbefore the merge commit — PASS.Because this stacked PR targets
junyu/async-resource-lifecycle, full frontend/Rust CI may not run until #562 lands and this PR is retargeted todevelop.UI evidence
The Git History capped state uses the existing placeholder action composition. No new visual change was introduced by this base merge; focused state-transition tests cover when the action appears.