Commit acc6eeb
committed
fix(context-scout): handle empty-state cleanly (upstream issue darrenhinde#310)
When the Context Discovery Protocol's Step 4 returns `source: none`,
context-scout was silently falling back to a generic
`Glob: .opencode/**/*` and reporting "no .opencode directory exists".
That misleads users (especially in monorepos) into thinking the project
must have a literal `.opencode/` folder, when the actual problem is that
no context bundle has been installed at any of the standard locations.
Adds a dedicated "Pattern 5: No Context Found (Empty State)" section to
the agent body with:
- The full set of locations that were searched (mirrors protocol Step 4)
- The three recovery options (`/install-context`, `.oac.json`, or
proceed without)
- A monorepo-specific note explaining context lookup happens at the
launch directory
- Two new "What NOT to Do" rules: never run a blanket glob when the
protocol returns `source: none`, and never continue the downstream
task without first surfacing the empty-state message.
Backports the spirit of upstream issue darrenhinde#310 (darrenhinde#310).1 parent 13b2852 commit acc6eeb
1 file changed
Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
222 | 275 | | |
223 | 276 | | |
224 | 277 | | |
| |||
230 | 283 | | |
231 | 284 | | |
232 | 285 | | |
| 286 | + | |
| 287 | + | |
233 | 288 | | |
234 | 289 | | |
235 | 290 | | |
| |||
0 commit comments