bash return values are truncated to 0-255: 401 % 256 = 145, 429 % 256 = 173. This caused _handle_api_response / _handle_openai_api_response to return 145 instead of 401, so the reauth prompt was never triggered and the script exited silently with code 1. Fix: use global _API_RET variable in both functions, read via ret=$_API_RET in ai-deepseek and ai-kimi launchers. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
28 KiB
Executable File
28 KiB
Executable File