constants

package
v0.180.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Agent service processing delays
	AgentIterationDelay       = 20 * time.Millisecond  // Delay between agent iterations
	AgentToolExecutionDelay   = 20 * time.Millisecond  // Delay during tool execution
	AgentStatusTickerInterval = 200 * time.Millisecond // Status update ticker interval
	DrainQueueRetryInterval   = 300 * time.Millisecond // Re-check interval while queued work waits behind a busy agent

	// UI component timing for smooth transitions
	ToolCallUpdateThrottle = 50 * time.Millisecond // Minimum time between tool call updates

	// Test timing delays
	TestSleepDelay = 100 * time.Millisecond // Standard delay in tests for timing-sensitive operations
)

TaskTransitionTiming contains constants for task state transition delays to improve UX when tasks transition from queued → working → completed

View Source
const (
	SlowUpdateThreshold     = 100 * time.Millisecond
	JobRunningLongThreshold = 5 * time.Minute
)

ObservabilityTiming contains thresholds for the single-ingress instrumentation: the Bubble Tea Update loop is single-threaded, so a slow handler is a UI freeze, and a background job that overruns is worth a one-time warning.

View Source
const ApprovalTimeout = 5 * time.Minute

ApprovalTimeout is how long the agent waits for a tool-approval decision before auto-rejecting, in every delivery path (chat TUI prompt, headless IPC under the daemon, and channel auto-reject).

View Source
const (
	// EventChannelBufferSize is the buffer size for the agent event channel
	EventChannelBufferSize = 100
)

Agent configuration constants

View Source
const GitCommandTimeout = 10 * time.Second

GitCommandTimeout bounds ad-hoc git shells (branch lookups, log, rev-parse) so a wedged git process can't hang the UI or system-prompt build.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL