feat: add tested Termux install path and EOF-aware gh auth#6201
feat: add tested Termux install path and EOF-aware gh auth#6201adybag14-cyber wants to merge 22 commits into
Conversation
2725b0b to
3ef7edc
Compare
3ef7edc to
6b3614f
Compare
|
Quick progress update from live Termux/Android
|
- keep API/access-token, OAuth device-code, and session-token flows distinct - add explicit third interactive path for session tokens - persist and resolve pool-backed chatgpt-web session tokens - cover interactive selection and runtime resolution with tests
- add a dedicated 'hermes auth browser chatgpt-web' command - launch a Termux-owned Chromium session under Termux:X11 with DevTools enabled - capture __Secure-next-auth.session-token and store the resulting Hermes credential - cover parser and bootstrap flow with targeted tests
- expose the Termux browser bootstrap as option 4 in interactive chatgpt-web auth - route option 4 directly to the browser bootstrap command - cover the interactive menu path with tests
|
Progress update: I checked the Hermes logs and reproduced the ChatGPT Web failure after auth/model selection. There were two issues: |
9fd57e4 to
1ccc944
Compare
|
Termux/Android support merged via PR #6834. Your 13 Termux commits were cherry-picked onto current main with your authorship preserved in git log. The ChatGPT Web provider portion was excluded from this salvage — it needs a separate discussion (reverse-engineered private API, ToS considerations, maintenance burden). If you'd like to pursue that as a standalone PR, happy to review it separately. Thanks for the thorough Termux work — the install script, TermuxAudioRecorder, narrow-terminal TUI adaptations, and docs are all solid contributions. |
Summary
.[termux]extra and docsgh auth login --with-tokenflows by adding stdin close/EOF support and PTY fallback logicValidation
bash -n scripts/install.shpython3 -m pytest tests/hermes_cli/test_doctor.py tests/tools/test_terminal_tool_pty_fallback.py tests/tools/test_process_registry.py -qpython3.11 -m venv .tmp-termux-verify-venv && source .tmp-termux-verify-venv/bin/activate && export ANDROID_API_LEVEL=$(getprop ro.build.version.sdk) && python -m pip install -e '.[termux]' -c constraints-termux.txtNotes
.[all]remains unsupported on Android becausevoicedepends onfaster-whisper -> ctranslate2, which has no Android wheels.