Skip to content

AppConstants

Category: Core

Source: app_constants.dart

Application-wide configuration constants.

Status: part of the proposed core data model — see docs/plans/2026-04-29-harness-layers.md. Originally lived in config/constants.dart; relocated so strategies can depend on these values without crossing the harness boundary.

Classes

AppConstants

Application-wide configuration constants.

Centralizes magic values for timeouts, limits, and defaults to improve maintainability and enable easy tuning of behavior.

Properties

PropertyTypeDescription
versionconst StringPackage version — sourced from pubspec.yaml via tool/gen_version.dart. Do not edit by hand; bump pubspec.yaml and run just gen (or just release <version>).
maxConversationBlocksconst int
ctrlCDoubleTapWindowconst Duration
bashTimeoutSecondsconst int
grepTimeoutSecondsconst int
shellCompletionTimeoutMsconst int
defaultOllamaBaseUrlconst String
defaultTitleModelconst String
maxVisibleDropdownItemsconst int
atFileHintCacheTtlSecondsconst int
atFileHintMaxTreeEntriesconst int
atFileHintMaxTreeDepthconst int
maxSubagentDepthconst int
bashMaxLinesDefaultconst int
globMaxEntriesconst int
maxFileExpansionBytesconst int
debugLogBodySizeLimitconst int
inputAreaDivisorconst int
maxInputVisibleLinesconst int
webFetchTimeoutSecondsconst int
webFetchMaxBytesconst int
webFetchDefaultMaxTokensconst int
webSearchTimeoutSecondsconst int
webSearchDefaultMaxResultsconst int
pdfMaxBytesconst int
pdfTimeoutSecondsconst int
browserNavigationTimeoutSecondsconst int
browserActionTimeoutSecondsconst int
browserDockerPortconst int
browserDockerImageconst String

Released under the MIT License.