mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
25e86532a3
* fix(chatgpt): fix image generation detection and output path Three fixes for chatgpt image command: 1. Page navigation: ChatGPT redirects away from the conversation after sending. Poll for the /c/ URL after send, then periodically reload the conversation page during image wait to pick up asynchronously rendered images. 2. Composer selector: add fallback selectors for the chat input since ChatGPT uses different aria-labels across UI versions. 3. Output path: the default '~/Pictures/chatgpt' was passed as a literal string without tilde expansion, creating a directory named '~' in the working directory. Removed the string default and use os.homedir() fallback instead. Fixes #1206 * fix(chatgpt): fail fast on image export failures * fix(chatgpt): avoid reloads during image generation --------- Co-authored-by: jackwener <jakevingoo@gmail.com>