Commit 3975303
committed
fix(gh-search): add smart defaults and fix duplicate results
- Default GitHub search to open issues (state: open, type: issue)
- Add explicit deduplication in search results using Set to track seen IDs
- Update command description to document default behavior
- Users can still override defaults with --state and --type flags
This improves UX by:
1. Eliminating need to specify 'open' in queries (defaults to open)
2. Fixing duplicate results bug where same issue appeared 3-5 times
3. Making search behavior more intuitive (90% of searches want open issues)
Tested:
- Default search returns only open issues
- No duplicate results
- Can override with --state closed or --type pull_request1 parent ffbc759 commit 3975303
File tree
2 files changed
+12
-6
lines changed- packages
- cli/src/commands
- subagents/src/github
2 files changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | | - | |
106 | | - | |
| 105 | + | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | | - | |
148 | | - | |
| 147 | + | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
184 | 190 | | |
185 | 191 | | |
186 | 192 | | |
| |||
0 commit comments