Skip to content

fix: retry unspecified GraphQL queries with live IDs - #77

Open
LuciusChen wants to merge 1 commit into
jackwener:mainfrom
LuciusChen:fix/issue-59-query-unspecified-retry
Open

LuciusChen wants to merge 1 commit into
jackwener:mainfrom
LuciusChen:fix/issue-59-query-unspecified-retry

Conversation

@LuciusChen

Copy link
Copy Markdown
Contributor

Summary

  • refresh the HomeTimeline and HomeLatestTimeline fallback query IDs from the current X web bundle
  • treat GraphQL Query: Unspecified / persisted-query-not-found responses as stale query IDs
  • invalidate the fallback and retry once through the existing live queryId resolver
  • apply the same behavior to GET and POST operations without retrying unrelated HTTP 0/network failures

The current X HomeTimeline bundle only sets forcePost when it includes
seenTweetIds, so this keeps twitter-cli's normal home feed request as GET.

Validation

  • python -m pytest -q — 246 passed, 6 deselected
  • ruff check .
  • mypy twitter_cli

Closes #59.

@c4nc

c4nc commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Same note as in my comment on #75: I've made a maintained fork (c4nc/twitter-cli) that cherry-picks your #75/#76/#77 with explicit attribution in the README; if the original repo resumes I'd rather help there. Thanks again.

This branch has not been deployed

No deployments
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.

error "HTTP 0: Query: Unspecified" for the for you feed

2 participants