feat(cli): Increase /insight feature exposure via weighted tips#2019
Merged
tanzhenxin merged 1 commit intomainfrom Feb 28, 2026
Merged
feat(cli): Increase /insight feature exposure via weighted tips#2019tanzhenxin merged 1 commit intomainfrom
tanzhenxin merged 1 commit intomainfrom
Conversation
- Add weighted tip system to make certain tips appear more frequently - Set /insight tip to weight 3 (3x more likely than regular tips) - Add i18n translations for the new tip across all supported languages - Add comprehensive unit tests for weighted tip selection Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Contributor
📋 Review SummaryThis PR implements a weighted tip system to increase visibility of the 🔍 General Feedback
🎯 Specific Feedback🟡 High
🟢 Medium
🔵 Low
✅ Highlights
|
Contributor
Code Coverage Summary
CLI Package - Full Text ReportCore Package - Full Text ReportFor detailed HTML reports, please see the 'coverage-reports-22.x-ubuntu-latest' artifact from the main CI run. |
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.
TLDR
This PR increases the visibility of the new
/insightcommand by implementing a weighted tip system. The/insighttip now has a 3x higher chance of appearing in the startup tips rotation compared to other tips.Dive Deeper
The
/insightfeature was recently introduced but many users may not be aware of it. Startup tips are an effective way to surface features to users. To increase exposure without being overly repetitive, I've implemented a weighted random selection system:weightproperty (default weight: 1)/insighttip has weight 3, making it 3x more likely to appearThe feature has been internationalized across all supported languages (de, en, ja, pt, ru, zh).
Reviewer Test Plan
/insighttip ("Try /insight to generate personalized insights from your chat history.") should appear more frequently than otherscd packages/cli && npx vitest run src/ui/components/Tips.test.tsTesting Matrix
Linked issues / bugs
No linked issues
🤖 Generated with Qwen Code