Improve lenient reference handling across CLI commands#38
Merged
Conversation
There was a problem hiding this comment.
This PR significantly improves the robustness and consistency of reference handling across several CLI commands by hardening reference parsing in src/lib/refs.ts and enabling comma-separated references in search commands. The changes also route react/unreact and thread reply --notify through shared parsing logic, contributing to a more forgiving and consistent user experience. No issues were flagged during the review, indicating a well-executed and thoroughly tested set of improvements.
rfgamaral
approved these changes
Feb 18, 2026
ff368ea to
346fa06
Compare
github-actions bot
pushed a commit
that referenced
this pull request
Feb 20, 2026
# [2.2.0](v2.1.0...v2.2.0) (2026-02-20) ### Features * Improve lenient reference handling across CLI commands ([#38](#38)) ([bbf3a9b](bbf3a9b))
|
🎉 This PR is included in version 2.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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
src/lib/refs.ts(trim-aware parsing, strict numeric IDs, clearer error messaging, andresolveChannelId).search --channelandsearch --conversationto consume comma-separated refs (bare IDs,id:refs, and Twist URLs).react/unreactandthread reply --notifythrough shared ref parsing for more forgiving, consistent ID handling.src/__tests__/lib/refs.test.ts,src/__tests__/search.test.ts,src/__tests__/thread.test.ts, and newsrc/__tests__/react.test.ts, and syncSKILL_CONTENTdocs.What You Can Do Now
Inspiration
Validation:
npm testandnpm run type-checkpass.