Repository navigation
Conversation
Hash PDF contents before launching a summary, reopen an existing ChatGPT conversation for the same document, and focus in-progress handoffs instead of uploading again. Preserve Shift-click to start a separate new chat and add regression coverage for reuse, pending uploads, and fresh-chat overrides. Co-authored-by: Codex Web <noreply@openai.com>
Populate the ChatGPT composer before transferring PDF bytes, permit sending as soon as the file is registered while its upload remains active, and recover composer contents after hydration. Keep background tabs eligible for submission and pause readiness timeouts while the page is inactive. Add end-to-end content-script regression coverage for background submission, unfinished uploads, composer replacement, and conversation reuse. Co-authored-by: Codex Web <noreply@openai.com>
Extend the in-progress PDF source relay and duplicate-upload guard to ten minutes so a slowly loading background ChatGPT tab does not lose its transfer. Keep conversation URL tracking alive for that window and cover refocusing an older pending upload in regression tests. Co-authored-by: Codex Web <noreply@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Every click of Summarize with ChatGPT sends a new attachment for the same PDF, creating
(1),(2), and other duplicate Library entries.Fix
This reuses the existing conversation rather than automating ChatGPT's undocumented Library picker, and it does not delete previously created duplicates.
Reliable submission, including background tabs
tests/chatgpt-summary-handoff.test.mjscovering pre-upload composition, sending with upload progress active, hidden tabs, hydration and reuse, plus a delayed-pending regression.Verification
tests/chatgpt-summary-popup.test.mjs.