Repository navigation
perf(gateway): skip clean transcript reconcile workers - #117342
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
vincentkoc
added a commit
that referenced
this pull request
Aug 1, 2026
* origin/main: perf(gateway): skip clean transcript workers (#117342)
vincentkoc
added a commit
to Alix-007/openclaw
that referenced
this pull request
Aug 1, 2026
* origin/main: fix(test/ui): prevent shared history pollution (openclaw#117348) fix(openrouter): apply image request transport policy (openclaw#117336) perf(gateway): skip clean transcript workers (openclaw#117342) test(testing): assert relay smoke readiness fix(testing): activate relay live smoke transport feat(channels): record account lifecycle facts and retire inferred health vocabularies (openclaw#117300) fix(canvas): remove unsupported snapshot delay hint (openclaw#117326) refactor(agents): fold cache TTL pruning into prompt projection (openclaw#117313) fix(canvas): honor paired-node invocation deadlines (openclaw#117316) fix(system-agent): make exit-and-run-a-terminal guidance surface-correct (openclaw#114633) fix(ai): assistant text blocks are run together on replay (openclaw#115743) refactor(agents): canonicalize subagent execution state (openclaw#117267)
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 2, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 2, 2026
* origin/main: perf(gateway): skip clean transcript workers (openclaw#117342)
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 2, 2026
* origin/main: fix(test/ui): prevent shared history pollution (openclaw#117348) fix(openrouter): apply image request transport policy (openclaw#117336) perf(gateway): skip clean transcript workers (openclaw#117342) test(testing): assert relay smoke readiness fix(testing): activate relay live smoke transport feat(channels): record account lifecycle facts and retire inferred health vocabularies (openclaw#117300) fix(canvas): remove unsupported snapshot delay hint (openclaw#117326) refactor(agents): fold cache TTL pruning into prompt projection (openclaw#117313) fix(canvas): honor paired-node invocation deadlines (openclaw#117316) fix(system-agent): make exit-and-run-a-terminal guidance surface-correct (openclaw#114633) fix(ai): assistant text blocks are run together on replay (openclaw#115743) refactor(agents): canonicalize subagent execution state (openclaw#117267)
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.
What Problem This Solves
Fixes Gateway startup scaling poorly with configured agent count even when every agent transcript projection is already clean. On the benchmark fixture, 12 agents took 6.101 seconds to reach readiness and spent 3.513 seconds in the startup phase labeled
plugins.bootstrap.Why This Change Was Made
Transcript reconciliation previously spawned one Node Worker per configured agent, then each Worker opened SQLite and discovered there was no projection work. The SQLite owner now runs one short preflight transaction that sweeps orphaned index rows and uses the existing indexed query to decide whether repair is needed. Clean projections return immediately; dirty projections keep the existing Worker, bounded chunk commits, ownership claims, and post-worker orphan sweep.
The transaction re-reads authoritative SQLite state immediately before the decision. The injectable Worker factory exists only to prove a clean projection cannot spawn a Worker.
User Impact
Gateways with several configured agents start and restart materially faster when their transcript indexes are current. Repair behavior for dirty or imported transcripts is unchanged.
Evidence
Blacksmith Testbox before/after, identical 3-run cases with one warmup:
/readyzp50: 6.101s → 2.772s (54.6% faster).plugins.bootstrapp50: 3.513s → 306ms (91.3% faster)./readyzp50: 2.951s → 2.566s (13.1% faster).Runs:
Provenance: PR #108851 introduced blocking startup transcript reconciliation. This repair keeps that correctness gate and removes only zero-work Worker creation.