Commit 37f3f49
committed
Fix DetectIntent ordering bug and substring matching in parse hints
- Reorder DetectIntent checks so "unarchive" is checked before "archive"
(previously "unarchive" was always misclassified as "archive" because
the string contains the substring)
- Switch from substring matching to whole-word matching in both
DetectIntent and FindClosestPattern to prevent false positives
(e.g. "sunset" matching "set", "address" matching "add")
- Use lastIndexOf for PARSE_HINT marker in frontend to handle edge case
where LLM response contains the marker text
- Add regression tests for "unarchive my board" and "rename board"1 parent 58371a7 commit 37f3f49
File tree
3 files changed
+20
-12
lines changed- backend
- src/Taskdeck.Application/Services
- tests/Taskdeck.Application.Tests/Services
- frontend/taskdeck-web/src/utils
3 files changed
+20
-12
lines changedLines changed: 17 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
464 | 470 | | |
465 | | - | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
466 | 478 | | |
467 | | - | |
| 479 | + | |
468 | 480 | | |
469 | | - | |
| 481 | + | |
470 | 482 | | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | 483 | | |
478 | 484 | | |
479 | 485 | | |
| |||
490 | 496 | | |
491 | 497 | | |
492 | 498 | | |
493 | | - | |
| 499 | + | |
494 | 500 | | |
495 | 501 | | |
496 | | - | |
| 502 | + | |
497 | 503 | | |
498 | 504 | | |
499 | 505 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
| 863 | + | |
| 864 | + | |
863 | 865 | | |
864 | 866 | | |
865 | 867 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments