fix(chatgpt): discover archived conversations - #53
Merged
NishantJoshi00 merged 1 commit intoSep 17, 2026
Merged
NishantJoshi00 merged 1 commit into
NishantJoshi00 merged 1 commit into
Conversation
ChatGptStore::discover() only paginated /backend-api/conversations?...&order=updated, the same query chatgpt.com's main sidebar uses. That endpoint excludes archived conversations, which live behind a separate is_archived=true filter (mirroring the web app's Settings -> Archived Chats panel). Any archived Codex/ChatGPT conversation was therefore invisible to `txcript list --from chatgpt` / `view` / MCP `list_sessions` until manually unarchived. Split pagination into a list_conversations(is_archived) helper and call it for both the active and archived states, merging the results. Fixes skillsynchq#52. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This was referenced Sep 17, 2026
Collaborator
|
LGTM, will merge this when CI passes |
NishantJoshi00
approved these changes
Sep 17, 2026
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.
Fixes #52.
What changed
ChatGptStore::discover()only paginatedGET /backend-api/conversations?...&order=updated, the same query chatgpt.com's main sidebar uses. That endpoint excludes archived conversations, which live behind a separateis_archived=truefilter (mirroring the web app's Settings → Archived Chats panel). Any archived Codex/ChatGPT conversation was invisible totxcript list --from chatgpt/view/ MCPlist_sessionsuntil manually unarchived.Split pagination into a
list_conversations(is_archived)helper and call it for both the active (is_archived=false) and archived (is_archived=true) states, merging the results.Before / after
Testing
live_store_uses_get_only_and_preserves_auth_headersfor the extra request.discover_includes_archived_conversations, asserting both an active-list row and an archived-list row are returned, and that the two requests carryis_archived=false/is_archived=truerespectively.cargo test -p txcript --lib(61 passed),cargo clippy -p txcript --lib --all-features(clean).Not affected: the local Codex CLI harness (
src/harness/codex.rs) reads~/.codex/sessions/**/rollout-*.jsonloff disk directly and has no archived concept, so it was never in scope here.