Skip to content

fix: improve ChatGPT client reliability and response detection#78

Open
Julian194 wants to merge 1 commit intonicobailon:mainfrom
Julian194:fix/chatgpt-client-reliability
Open

fix: improve ChatGPT client reliability and response detection#78
Julian194 wants to merge 1 commit intonicobailon:mainfrom
Julian194:fix/chatgpt-client-reliability

Conversation

@Julian194
Copy link
Copy Markdown

Fixes a few issues with the ChatGPT client that surfaced as ChatGPT updated their frontend:

  • Default model to auto — appends ?model=auto to avoid inheriting a previous model selection
  • Updated DOM selector — ChatGPT now uses <section> for conversation turns alongside <article>/<div>, added to selector list
  • Fixed response completion detection — the stable/finished check was nested inside !stopVisible, meaning it could miss completions where the stop button disappeared quickly. Flattened the logic so finishedVisible is checked regardless.
  • Auto-navigate to new chat — if the page loads with an existing conversation (happens when ChatGPT remembers the last session), navigate to a fresh chat before submitting the prompt

- Default to ?model=auto for consistent model selection
- Add section selector for updated ChatGPT DOM structure
- Fix response completion logic (stable + finished detection)
- Auto-navigate to new chat when stale conversation detected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant