Consolidate review feedback from PRs #26 and #6 into single mergeable change #38
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.
Multiple open PRs had unresolved review comments blocking merge. This consolidates the two substantive PRs (#26: runtime bug fixes, #6: reply targeting) with all reviewer feedback applied.
PR #26 — Runtime bug fixes + review feedback
console.log→stderrto avoid corrupting MCP StdioServerTransport protocol messages. Usesunknown[]per reviewer.lastMentionIdwithURLSearchParams(reviewer suggestion) to avoid refetching processed mentions each poll cycle.Array.isArray(response.data)before callingparseThread— prevents crash on unexpected API shapes.[...tweets].sort()instead of in-place mutation.parseThreadsignature narrowed fromany→unknown.processedMentionsSet at 10k, prune with safe{ value, done }iterator (not type assertion). Process mentions oldest-first so Set insertion order is chronological and pruning evicts correctly.PR #6 — Reply targeting fix + review feedback
mentionPostIdparam toanalyzeAndDecide()— replies now target the specific mention post instead of always targetingthread.root_post.id.anywith typed interface for Grok API response parsing.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.