93e5c51116
Co-authored-by: nova28 <17953305+nova28@users.noreply.github.com> Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
37 lines
1.4 KiB
Go
37 lines
1.4 KiB
Go
// Package constants provides application-wide constants and timeouts.
|
|
package constants
|
|
|
|
import "time"
|
|
|
|
// Timeouts for various operations.
|
|
const (
|
|
// AgentLaunchTimeout is the maximum time to wait for agent launch,
|
|
// including worktree creation and setup script execution.
|
|
AgentLaunchTimeout = 6 * time.Minute
|
|
|
|
// SetupScriptTimeout is the maximum time to wait for a setup script to complete.
|
|
SetupScriptTimeout = 5 * time.Minute
|
|
|
|
// CleanupScriptTimeout is the maximum time to wait for a cleanup script to complete.
|
|
CleanupScriptTimeout = 5 * time.Minute
|
|
|
|
// TaskDeleteTimeout is the maximum time to wait for task deletion,
|
|
// including cleanup scripts and worktree removal.
|
|
TaskDeleteTimeout = 2 * time.Minute
|
|
|
|
// SessionNewTimeout is the maximum time for ACP session/new. Session creation
|
|
// can initialize providers, plugins, and MCP servers before the agent responds.
|
|
SessionNewTimeout = 2 * time.Minute
|
|
|
|
// SessionLoadTimeout is the maximum time for ACP session/load (resume).
|
|
// Session loading may involve deserializing large conversation histories.
|
|
SessionLoadTimeout = 2 * time.Minute
|
|
|
|
// StepHistoryWriteTimeout bounds the ADR 0015 session_step_history audit
|
|
// insert issued after a step transition has already been durably
|
|
// persisted. It runs on context.WithoutCancel so a client disconnect (or
|
|
// turn-end context cancellation) cannot drop the audit row for a
|
|
// transition that already committed.
|
|
StepHistoryWriteTimeout = 5 * time.Second
|
|
)
|