You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(config): make hardcoded values configurable via environment variables
Add three new configuration options that can be overridden by environment variables:
- OPENCODER_MAX_FILE_SIZE: Maximum file size for reading files (default: 1MB)
- OPENCODER_LOG_BUFFER_SIZE: Buffer size for logger formatting (default: 2KB)
- OPENCODER_TASK_PAUSE_SECONDS: Pause duration between tasks (default: 2s)
Changes:
- Add max_file_size, log_buffer_size, task_pause_seconds to Config struct
- Update Config.loadFromEnv() to parse new environment variables
- Update fsutil.readFile() to accept max_size parameter
- Update Logger to use dynamic buffer allocation based on buffer_size
- Thread config values through all modules that need them
- Update all tests to include new config fields
This allows users to tune opencoder behavior without code changes.
Signed-off-by: leocavalcante <[email protected]>
0 commit comments