constants

package
v0.165.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 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
	ToolCallMinShowTime       = 400 * time.Millisecond // Minimum time to show tool call before hiding
	ParallelToolsTickInterval = 500 * time.Millisecond // Parallel tools UI refresh interval
	TimerUpdateThrottle       = 100 * time.Millisecond // Minimum time between timer updates (e.g., bash command duration)
	RenderThrottleInterval    = 33 * time.Millisecond  // Throttle interval for streaming content rendering (~30 FPS)

	// 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 (
	// Minimum display times for better UX
	MinToolDisplayTime    = 400 * time.Millisecond
	ToolUpdateThrottle    = 50 * time.Millisecond
	SpinnerUpdateInterval = 200 * time.Millisecond
	StatusRefreshInterval = 500 * time.Millisecond
)

UITransitionTiming contains timing constants for UI state transitions

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 channels-manager, 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