fix: trigger compaction on LLM timeout with high context usage (#46417)

Merged via squash.

Prepared head SHA: 619bc4c1fa
Co-authored-by: joeykrug <5925937+joeykrug@users.noreply.github.com>
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Reviewed-by: @jalehman
This commit is contained in:
Joseph Krug
2026-03-25 15:51:36 -04:00
committed by GitHub
parent 1b3a1246d0
commit d81593c6e2
11 changed files with 843 additions and 81 deletions

View File

@@ -83,6 +83,8 @@ beforeEach(() => {
originalNodeNoWarnings = process.env.NODE_NO_WARNINGS;
originalHideBanner = process.env.OPENCLAW_HIDE_BANNER;
originalForceStderr = loggingState.forceConsoleToStderr;
// Worker-thread Vitest runs do not reliably mutate the real process title,
// so capture writes at the property boundary instead.
Object.defineProperty(process, "title", {
configurable: true,
enumerable: originalProcessTitleDescriptor?.enumerable ?? true,