Skip to content

fix: restore ClientTransaction bootstrap on current X pages - #91

Open
stoner-byte wants to merge 2 commits into
jackwener:mainfrom
stoner-byte:codex/fix-client-transaction-bootstrap
Open

stoner-byte wants to merge 2 commits into
jackwener:mainfrom
stoner-byte:codex/fix-client-transaction-bootstrap

Conversation

@stoner-byte

Copy link
Copy Markdown

Summary

  • bootstrap ClientTransaction from https://x.com/home instead of the stripped root page
  • require xclienttransaction 1.0.3 or newer and refresh uv.lock for the current numeric ondemand module mapping
  • add a regression test covering the current two-stage module index and hash layout

Why both changes are required

The root page does not expose the ondemand.s bundle. The home route does, but the checked-in xclienttransaction 1.0.1 expects the old direct hash layout and cannot resolve the current numeric module mapping. The regression test fails with 1.0.1 and passes with 1.0.3.

This includes the path change proposed in #74 and adds the dependency floor required by the checked-in lockfile.

Related: #69, #73, #78, #88.

Validation

  • uv run ruff check .
  • uv run mypy twitter_cli
  • uv run pytest -q: 243 passed, 6 deselected
  • uv lock --check
  • git diff --check
  • live bootstrap generated X-Client-Transaction-Id successfully

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.

1 participant