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:
YeonGyu-Kim
2026-03-12 01:14:26 +09:00
parent f6125c5efa
commit 6d5175b9b0
2 changed files with 12 additions and 1 deletions

View File

@@ -3,6 +3,17 @@ const { describe, expect, test } = require("bun:test")
import { __resetTimingConfig, __setTimingConfig, getDefaultSyncPollTimeoutMs } from "./timing"
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", () => {
// #given
__resetTimingConfig()

View File

@@ -3,7 +3,7 @@ let MIN_STABILITY_TIME_MS = 10000
let STABILITY_POLLS_REQUIRED = 3
let WAIT_FOR_SESSION_INTERVAL_MS = 100
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 SESSION_CONTINUATION_STABILITY_MS = 5000