Repository navigation
Commit b40c0f1
Fix banner intent gate: drop focus signal, scope hysteresis
Cursor Bugbot caught two real gating bugs:
- ChatView autofocuses the composer on every thread open, so "composer
focused" was always true and the banner showed during passive reading
anyway. Draft content is now the only intent signal.
- revealedBranchMismatchKey was never cleared, so a mismatch that
resolved and later recurred bypassed the gate. The key now resets
whenever the active mismatch changes or resolves.
Co-Authored-By: Claude Fable 5 <[email protected]>1 parent f64a69a commit b40c0f1
3 files changed
Lines changed: 21 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
317 | 316 | | |
318 | 317 | | |
319 | 318 | | |
320 | 319 | | |
321 | | - | |
| 320 | + | |
322 | 321 | | |
323 | 322 | | |
324 | 323 | | |
325 | | - | |
326 | | - | |
| 324 | + | |
327 | 325 | | |
328 | 326 | | |
329 | 327 | | |
330 | | - | |
| 328 | + | |
331 | 329 | | |
332 | 330 | | |
333 | 331 | | |
334 | 332 | | |
335 | 333 | | |
336 | 334 | | |
337 | 335 | | |
338 | | - | |
| 336 | + | |
339 | 337 | | |
340 | 338 | | |
341 | | - | |
| 339 | + | |
342 | 340 | | |
343 | 341 | | |
344 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
305 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
306 | 308 | | |
307 | 309 | | |
308 | 310 | | |
309 | | - | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
316 | | - | |
| 317 | + | |
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3825 | 3825 | | |
3826 | 3826 | | |
3827 | 3827 | | |
3828 | | - | |
3829 | | - | |
3830 | | - | |
| 3828 | + | |
| 3829 | + | |
3831 | 3830 | | |
3832 | 3831 | | |
3833 | 3832 | | |
| |||
3851 | 3850 | | |
3852 | 3851 | | |
3853 | 3852 | | |
3854 | | - | |
3855 | 3853 | | |
3856 | 3854 | | |
3857 | 3855 | | |
3858 | 3856 | | |
3859 | 3857 | | |
3860 | | - | |
3861 | | - | |
3862 | | - | |
| 3858 | + | |
| 3859 | + | |
| 3860 | + | |
| 3861 | + | |
| 3862 | + | |
| 3863 | + | |
| 3864 | + | |
| 3865 | + | |
3863 | 3866 | | |
3864 | 3867 | | |
3865 | 3868 | | |
| |||
5618 | 5621 | | |
5619 | 5622 | | |
5620 | 5623 | | |
5621 | | - | |
5622 | | - | |
5623 | | - | |
5624 | | - | |
5625 | | - | |
5626 | | - | |
5627 | | - | |
5628 | | - | |
5629 | | - | |
5630 | | - | |
5631 | | - | |
5632 | | - | |
5633 | | - | |
5634 | | - | |
| 5624 | + | |
5635 | 5625 | | |
5636 | 5626 | | |
5637 | 5627 | | |
| |||
0 commit comments