feat: add reddit post command#1247
Draft
xiaohei-info wants to merge 1 commit intojackwener:mainfrom
Draft
Conversation
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.
Summary
opencli reddit postbrowser command for creating text posts via Reddit's web composerWhy
Upstream already ships several Reddit browser commands, but it does not currently expose
reddit post.In live debugging against Reddit's current web composer, the tricky failure mode was not simple button clicking or backend/network failure. The submit pipeline could reach Reddit's internal
onPostSubmit -> getRecaptchaToken -> checkSubredditRuleViolations -> submitPostFormpath and still no-op because flair looked selected in the UI while the real composer form still consideredflairinvalid.This patch adds a text-post command and commits flair against the actual composer form registry so the submit path can proceed.
What changed
clis/reddit/post.jsclis/reddit/post.test.jscli-manifest.jsonreddit postin the Reddit adapter docs and adapter indexVerification
Ran locally in the upstream repo:
Results:
clis/reddit/read.test.jspassedclis/reddit/post.test.jspassedpost [options] <subreddit> <title> <text> Create a text post in a subreddit via the Reddit web composerAdditional real-world validation before porting upstream:
r/AI_AgentsNotes