Problem
The current utils/exit_codes.py is missing two important exit codes that are commonly needed when making API calls:
ERROR_TIMEOUT (code 7): For when a request times out
ERROR_RATE_LIMITED (code 8): For when we hit a rate limit
Expected Changes
In src/todopro_cli/utils/exit_codes.py:
- Add
ERROR_TIMEOUT = 7 with docstring comment
- Add
ERROR_RATE_LIMITED = 8 with docstring comment
- Add both to
code_names dict in get_exit_code_name()
- Add both to
descriptions dict in get_exit_code_description()
- Add both to
AGENT_ACTIONS dict with appropriate agent action suggestions
Notes
ERROR_TIMEOUT agent action: "Wait and retry with exponential backoff"
ERROR_RATE_LIMITED agent action: "Wait for rate limit window to reset, then retry"
Problem
The current
utils/exit_codes.pyis missing two important exit codes that are commonly needed when making API calls:ERROR_TIMEOUT(code 7): For when a request times outERROR_RATE_LIMITED(code 8): For when we hit a rate limitExpected Changes
In
src/todopro_cli/utils/exit_codes.py:ERROR_TIMEOUT = 7with docstring commentERROR_RATE_LIMITED = 8with docstring commentcode_namesdict inget_exit_code_name()descriptionsdict inget_exit_code_description()AGENT_ACTIONSdict with appropriate agent action suggestionsNotes
ERROR_TIMEOUTagent action: "Wait and retry with exponential backoff"ERROR_RATE_LIMITEDagent action: "Wait for rate limit window to reset, then retry"