Commit 12ca406
Quiet boot: skip no-op Discord embed edits + sweep only on real drops (#44)
* feat(discord): add RenderCanonicalizer + RustPlusBot.Discord.Tests project
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test(discord): cover canonicalizer fallback; walk non-row components
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(discord): add RenderGate no-op edit detector
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(discord): gate no-op embed edits in DiscordChannelMessenger singleton
Skips PATCHes whose render matches the last successful send; adds
RetryMode.AlwaysRetry + 30s timeout so bursts degrade to slow catch-up.
Also registers RenderGate/DiscordChannelMessenger in the three
feature registration tests that build a real DI graph (Alarms, Events,
Players) since they wire cross-layer singletons manually instead of
via AddDiscordBot.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(connections): carry IsConnected/WasConnected on ConnectionStatusChangedEvent
WasConnected is computed from in-process published history, not the
persisted store (which would still say Connected right after boot).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(switches): sweep embeds unreachable only on a drop from Connected
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(alarms): sweep embeds unreachable only on a drop from Connected
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(storage): sweep embeds unreachable only on a drop from Connected
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(discord): register slash commands off the gateway Ready handler
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(discord): offload workspace heal + connection start off the Ready chain
Live verification showed these two handlers, not command registration, were what kept the gateway's Ready-blocking warning firing.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* docs: fix Ready-offload comment + stale storage relay summary
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(discord): include select-menu option emote in canonical render
Copilot review: an option-emoji-only change previously canonicalized
identically and the gate would skip the edit. Also documents why
_publishedStatuses records before bus delivery (observed-state
semantics protect the drop sweep against failed deliveries).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 567fd9c commit 12ca406
32 files changed
Lines changed: 802 additions & 201 deletions
File tree
- src
- RustPlusBot.Abstractions/Events
- RustPlusBot.Discord
- Posting
- RustPlusBot.Features.Alarms
- Posting
- Relaying
- RustPlusBot.Features.Connections/Supervisor
- RustPlusBot.Features.Events/Posting
- RustPlusBot.Features.Pairing/Hosting
- RustPlusBot.Features.Players/Posting
- RustPlusBot.Features.StorageMonitors
- Posting
- Relaying
- RustPlusBot.Features.Switches
- Posting
- Relaying
- RustPlusBot.Features.Workspace/Hosting
- tests
- RustPlusBot.Discord.Tests
- Posting
- RustPlusBot.Features.Alarms.Tests
- Hosting
- RustPlusBot.Features.Connections.Tests
- RustPlusBot.Features.Events.Tests
- RustPlusBot.Features.Players.Tests
- RustPlusBot.Features.StorageMonitors.Tests
- Hosting
- RustPlusBot.Features.Switches.Tests
- Hosting
- RustPlusBot.Features.Workspace.Tests/Hosting
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
72 | 83 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
77 | 95 | | |
78 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
79 | 101 | | |
80 | | - | |
| 102 | + | |
81 | 103 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | 104 | | |
86 | 105 | | |
87 | 106 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
Lines changed: 39 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
11 | 20 | | |
12 | 21 | | |
| 22 | + | |
13 | 23 | | |
14 | 24 | | |
15 | | - | |
16 | 25 | | |
17 | 26 | | |
18 | 27 | | |
19 | 28 | | |
20 | 29 | | |
21 | 30 | | |
22 | | - | |
23 | | - | |
| 31 | + | |
24 | 32 | | |
25 | 33 | | |
26 | 34 | | |
| |||
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| 48 | + | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
| |||
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
53 | 65 | | |
54 | 66 | | |
55 | 67 | | |
56 | 68 | | |
57 | 69 | | |
| 70 | + | |
58 | 71 | | |
59 | 72 | | |
60 | 73 | | |
| |||
68 | 81 | | |
69 | 82 | | |
70 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
71 | 87 | | |
72 | 88 | | |
73 | 89 | | |
74 | 90 | | |
75 | 91 | | |
| 92 | + | |
76 | 93 | | |
77 | 94 | | |
78 | 95 | | |
| |||
83 | 100 | | |
84 | 101 | | |
85 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
86 | 109 | | |
87 | 110 | | |
88 | 111 | | |
| |||
91 | 114 | | |
92 | 115 | | |
93 | 116 | | |
94 | | - | |
95 | 117 | | |
96 | 118 | | |
97 | 119 | | |
98 | 120 | | |
99 | | - | |
100 | | - | |
| 121 | + | |
101 | 122 | | |
102 | 123 | | |
103 | 124 | | |
104 | 125 | | |
105 | 126 | | |
106 | 127 | | |
107 | 128 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 129 | + | |
112 | 130 | | |
113 | 131 | | |
114 | 132 | | |
| |||
129 | 147 | | |
130 | 148 | | |
131 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
132 | 155 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
0 commit comments