mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 17:10:25 +00:00
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:
@@ -47,10 +47,10 @@ describe("runCommandWithTimeout", () => {
|
||||
|
||||
it("kills command when no output timeout elapses", async () => {
|
||||
const result = await runCommandWithTimeout(
|
||||
[process.execPath, "-e", "setTimeout(() => {}, 10)"],
|
||||
[process.execPath, "-e", "setTimeout(() => {}, 5_000)"],
|
||||
{
|
||||
timeoutMs: 30,
|
||||
noOutputTimeoutMs: 4,
|
||||
timeoutMs: 2_000,
|
||||
noOutputTimeoutMs: 200,
|
||||
},
|
||||
);
|
||||
|
||||
@@ -61,9 +61,9 @@ describe("runCommandWithTimeout", () => {
|
||||
|
||||
it("reports global timeout termination when overall timeout elapses", async () => {
|
||||
const result = await runCommandWithTimeout(
|
||||
[process.execPath, "-e", "setTimeout(() => {}, 10)"],
|
||||
[process.execPath, "-e", "setTimeout(() => {}, 5_000)"],
|
||||
{
|
||||
timeoutMs: 4,
|
||||
timeoutMs: 200,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user