Commit 6ff7ea8
fix(stop): rely on bus bridge for legacy mycroft.stop; drain active_skills
Address CodeRabbit review on #777 (OVOS-STOP-1 conformance):
- handle_global_stop: drop the hand-rolled `mycroft.stop` emit. The
spec-tools MIGRATION_MAP bridges `ovos.stop -> mycroft.stop` and the bus
re-emits the legacy counterpart by default (emit_legacy ON during the
migration window), so the manual emit double-delivered to anyone on both
topics. Same fix as ovos-audio #171. Also switch the bare
`ovos.utterance.handled` string to `SpecMessage.UTTERANCE_HANDLED` for a
single source of truth (the only other spec-topic member in this file;
`mycroft.*` / `ovos.skills.converse.force_timeout` are not SpecMessage
members and stay as strings).
- _drain_global_stop_session: also clear `session.active_skills` (the
legacy recency list `get_active_skills` reads for stop-target routing),
atomically with active_handlers/converse_handlers/response_mode. Left
stale, a committed global_stop could route a later targeted stop to a
skill it already drained.
The two CI/pyproject nitpicks (dead bus-client git-ref + floor bump) were
already resolved upstream by 851c6e1 + 87b940d.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 87b940d commit 6ff7ea8
2 files changed
Lines changed: 27 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
95 | 93 | | |
96 | 94 | | |
97 | | - | |
98 | 95 | | |
99 | | - | |
| 96 | + | |
100 | 97 | | |
101 | 98 | | |
102 | 99 | | |
| |||
107 | 104 | | |
108 | 105 | | |
109 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
548 | 549 | | |
549 | 550 | | |
550 | 551 | | |
551 | | - | |
552 | | - | |
553 | | - | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
554 | 556 | | |
555 | 557 | | |
556 | 558 | | |
557 | 559 | | |
558 | 560 | | |
559 | 561 | | |
560 | 562 | | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
565 | 566 | | |
566 | 567 | | |
567 | 568 | | |
| |||
695 | 696 | | |
696 | 697 | | |
697 | 698 | | |
698 | | - | |
| 699 | + | |
699 | 700 | | |
700 | 701 | | |
701 | 702 | | |
| 703 | + | |
702 | 704 | | |
703 | 705 | | |
704 | 706 | | |
| |||
711 | 713 | | |
712 | 714 | | |
713 | 715 | | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
714 | 719 | | |
715 | 720 | | |
716 | 721 | | |
| |||
0 commit comments