mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 09:39:25 +00:00
* perf(gateway): prepare history workers before the first chat read
The history worker reached the full session lookup/runtime graph through
source candidate selection. Branch snapshots also imported their host list
coordinator and writer-side reexports. Extract the shared candidate owner
and isolate branch snapshots/cache from host coordination without changing
selection, admission, watermark reuse, restoration, or cleanup.
Prioritize complete history preparation, including the response encoder,
and allow only this worker operation during foreground browser loading.
Main-thread handler/optional preparation remains idle-only. Preserve the
post-ready barrier, root admission, shutdown joins, and worker custody;
ready never awaits this work. No schema, protocol, public SDK, configuration,
dependency, persistence, or update behavior changes.
Reproduction: three isolated seeded starts on Node 26, zero added RTT.
Cold chat.startup server ms: 2020,586,2041; visible ms: 4440,2246,3739.
Warm server ms: 12,12,12; visible ms: 544,12098,16714. The last two warm
outliers occurred before WebSocket connection, not in chat.startup.
Four interleaved rounds against a preserved build of main
|
||
|---|---|---|
| .. | ||
| database-schemas | ||
| full-release-validation | ||
| session-management-compaction | ||
| templates | ||
| test | ||
| AGENTS.default.md | ||
| api-usage-costs.md | ||
| credits.md | ||
| database-schemas.md | ||
| device-models.md | ||
| full-release-validation.md | ||
| memory-config.md | ||
| openclaw-ai.md | ||
| prompt-caching.md | ||
| pull-request-review-flow.md | ||
| release-performance-sweep.md | ||
| RELEASING.md | ||
| rich-output-protocol.md | ||
| rpc.md | ||
| secret-placeholder-conventions.md | ||
| secretref-credential-surface.md | ||
| secretref-user-supplied-credentials-matrix.json | ||
| session-management-compaction.md | ||
| test.md | ||
| token-use.md | ||
| transcript-hygiene.md | ||