fix(delegate-task): extend default sync poll timeout to 30 minutes
Keep synchronous subagent runs from timing out after 10 minutes when no explicit override is configured. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -3,6 +3,17 @@ const { describe, expect, test } = require("bun:test")
|
|||||||
import { __resetTimingConfig, __setTimingConfig, getDefaultSyncPollTimeoutMs } from "./timing"
|
import { __resetTimingConfig, __setTimingConfig, getDefaultSyncPollTimeoutMs } from "./timing"
|
||||||
|
|
||||||
describe("timing sync poll timeout defaults", () => {
|
describe("timing sync poll timeout defaults", () => {
|
||||||
|
test("default sync timeout is 30 minutes", () => {
|
||||||
|
// #given
|
||||||
|
__resetTimingConfig()
|
||||||
|
|
||||||
|
// #when
|
||||||
|
const timeout = getDefaultSyncPollTimeoutMs()
|
||||||
|
|
||||||
|
// #then
|
||||||
|
expect(timeout).toBe(30 * 60 * 1000)
|
||||||
|
})
|
||||||
|
|
||||||
test("default sync timeout accessor follows MAX_POLL_TIME_MS config", () => {
|
test("default sync timeout accessor follows MAX_POLL_TIME_MS config", () => {
|
||||||
// #given
|
// #given
|
||||||
__resetTimingConfig()
|
__resetTimingConfig()
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ let MIN_STABILITY_TIME_MS = 10000
|
|||||||
let STABILITY_POLLS_REQUIRED = 3
|
let STABILITY_POLLS_REQUIRED = 3
|
||||||
let WAIT_FOR_SESSION_INTERVAL_MS = 100
|
let WAIT_FOR_SESSION_INTERVAL_MS = 100
|
||||||
let WAIT_FOR_SESSION_TIMEOUT_MS = 30000
|
let WAIT_FOR_SESSION_TIMEOUT_MS = 30000
|
||||||
const DEFAULT_POLL_TIMEOUT_MS = 10 * 60 * 1000
|
const DEFAULT_POLL_TIMEOUT_MS = 30 * 60 * 1000
|
||||||
let MAX_POLL_TIME_MS = DEFAULT_POLL_TIMEOUT_MS
|
let MAX_POLL_TIME_MS = DEFAULT_POLL_TIMEOUT_MS
|
||||||
let SESSION_CONTINUATION_STABILITY_MS = 5000
|
let SESSION_CONTINUATION_STABILITY_MS = 5000
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user