Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/features/background-agent/constants.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { PluginInput } from "@opencode-ai/plugin"
import type { BackgroundTask, LaunchInput } from "./types"

export const TASK_TTL_MS = 30 * 60 * 1000
export const TERMINAL_TASK_TTL_MS = 30 * 60 * 1000
export const TASK_TTL_MS = 6 * 60 * 60 * 1000
export const TERMINAL_TASK_TTL_MS = 6 * 60 * 60 * 1000
export const MIN_STABILITY_TIME_MS = 10 * 1000
export const DEFAULT_STALE_TIMEOUT_MS = 2_700_000
export const DEFAULT_MESSAGE_STALENESS_TIMEOUT_MS = 3_600_000
export const DEFAULT_STALE_TIMEOUT_MS = 21_600_000
export const DEFAULT_MESSAGE_STALENESS_TIMEOUT_MS = 21_600_000
export const DEFAULT_MAX_TOOL_CALLS = 4000
export const DEFAULT_CIRCUIT_BREAKER_CONSECUTIVE_THRESHOLD = 20
export const DEFAULT_CIRCUIT_BREAKER_ENABLED = true
Expand Down
2 changes: 1 addition & 1 deletion src/features/tmux-subagent/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const defaultTmuxDeps: TmuxUtilDeps = {
getCurrentPaneId: defaultGetCurrentPaneId,
}

const DEFERRED_SESSION_TTL_MS = 5 * 60 * 1000
const DEFERRED_SESSION_TTL_MS = 60 * 60 * 1000
const MAX_DEFERRED_QUEUE_SIZE = 20
const MAX_CLOSE_RETRY_COUNT = 3
const MAX_ISOLATED_CONTAINER_NULL_STATE_COUNT = 2
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/runtime-fallback/auto-retry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { getLastUserRetryParts } from "./last-user-retry-parts"
import { extractSessionMessages } from "./session-messages"
import { getAgentDisplayName } from "../../shared/agent-display-names"

const SESSION_TTL_MS = 30 * 60 * 1000
const SESSION_TTL_MS = 6 * 60 * 60 * 1000

declare function setTimeout(callback: () => void | Promise<void>, delay?: number): RuntimeFallbackTimeout
declare function clearTimeout(timeout: RuntimeFallbackTimeout): void
Expand Down
2 changes: 1 addition & 1 deletion src/tools/delegate-task/timing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = 60000
const DEFAULT_POLL_TIMEOUT_MS = 30 * 60 * 1000
const DEFAULT_POLL_TIMEOUT_MS = 6 * 60 * 60 * 1000
let MAX_POLL_TIME_MS = DEFAULT_POLL_TIMEOUT_MS
let SESSION_CONTINUATION_STABILITY_MS = 5000

Expand Down
Loading