fix(twitter): restore readers and harden reply flow - #65
Open
kannch8765 wants to merge 5 commits into
Open
Conversation
Align the collect step with AutoCLI’s interceptor buffer, accept current X timeline_v2 user timelines, and use the supported scroll option names for notifications.
Port the current OpenCLI reply flow concepts: use X’s dedicated reply composer, verify inserted text, support both submit button variants, and require fresh success evidence before reporting success.
Author
|
Live Windows/X smoke test on the PR branch:
Tested with the same authenticated Chrome/X session described in #64 using a Windows x86-64 release build of this branch. |
This was referenced Sep 9, 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 #64
Summary
collectto read the samewindow.__autocli_interceptedbuffer populated by AutoCLI's browser interceptortimeline_v2user timelines infollowersandfollowingcount/delayscroll fields innotificationstwitter replyusing the current OpenCLI flow: dedicated reply composer, text verification, both submit-button variants, and fresh success evidence before reporting successThe three empty reader commands shared a single runtime bug: the interceptor writes to
window.__autocli_intercepted, whileCollectStepwas still reading the old OpenCLI namewindow.__opencli_intercepted. Only these three Twitter adapters currently usecollect, which matches the affected surface in #64.OpenCLI references
This ports behavior from the current upstream reference implementation and its later X compatibility fixes, including:
jackwener/OpenCLI@f4637486— followers rewrite after the old intercept flow brokejackwener/OpenCLI@7c5bafd/jackwener/OpenCLI@90e4cb9— following fixes and current timeline/query handlingjackwener/OpenCLI@f321a609/jackwener/OpenCLI@da3eb951/jackwener/OpenCLI@ca25f148— reply submission hardening and success verificationjackwener/OpenCLI@56360604— current followerstimeline_v2parsingValidation
cargo test -p autocli-pipeline --lib -- --skip steps::download::tests::test_download_with_url_in_data— 73 passedcargo test -p autocli-discovery --lib— 3 passedcargo check -p autocli— passednode --checktimeline_v2fixtures return expected rows for both followers and followingc0969e2, so it is an existing baseline failure unrelated to this patch