Skip to content

Skip identical POSTs after a GraphQL query ID refresh - #4

Merged
LuciusChen merged 1 commit into
stablefrom
fix/skip-identical-graphql-post-retry
Nov 27, 2026
Merged

LuciusChen merged 1 commit into
stablefrom
fix/skip-identical-graphql-post-retry

Conversation

@LuciusChen

Copy link
Copy Markdown
Owner

A live bookmark test returned HTTP 404. The signed-in X web client successfully bookmarked the same post using the query ID and JSON payload already sent by the CLI. The query ID provider currently returns that same ID on refresh.

Propagate the original error when a refresh produces the same ID. A different ID still triggers one POST retry. This removes a redundant request. The cause of the initial 404 remains open.

The regression test observed two identical POSTs before the change and one afterward. Ruff, mypy, and all 318 offline tests pass.

@LuciusChen
LuciusChen marked this pull request as ready for review November 27, 2026 14:23
@LuciusChen
LuciusChen merged commit b54ba88 into stable Nov 27, 2026
6 checks passed
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