Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions trae_agent/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,14 +397,14 @@ def resolve_config_value(
config_value: int | str | float | None,
env_var: str | None = None,
) -> int | str | float | None:
"""Resolve configuration value with priority: CLI > ENV > Config > Default."""
"""Resolve configuration value with priority: CLI > Config > ENV > Default."""
if cli_value is not None:
return cli_value

if env_var and os.getenv(env_var):
return os.getenv(env_var)

if config_value is not None:
return config_value

if env_var and os.getenv(env_var):
return os.getenv(env_var)

return None