fix: prune stale Discord slash commands before creating - #19366
fix: prune stale Discord slash commands before creating#19366aaronsagents-stack wants to merge 2 commits into
Conversation
|
Thanks for identifying the Discord 100-command reconciliation failure. The slash-sync portion has already landed on current main: Problems
Suggested changes
This is an automated hermes-sweeper review. |
SummarySeven PRs address Discord error 30032 through two related causes: #46078 caps the desired command set at 100, while #19366, #24371, #29134, #40699, #50890, and #50992 delete obsolete remote commands before creating replacements. #19366 additionally introduces a separate create_channel action that is not part of the slash-sync failure. Related pull requests
Duplicates#19366, #24371, #29134, #40699, #50890, and #50992 substantially duplicate the delete-before-create reconciliation change; #50890 was directly salvaged by #50992, while #46078 is complementary because it caps an intrinsically oversized desired set. Suggested consolidationKeep #19366 open only with the salvage path identified by the maintainer-bot review: author action to rebase onto main and split out create_channel for review against the current tool action/schema paths, dropping the obsolete slash-sync hunk. The sync fix is already evidenced on main by merged commit e9b86f3 at plugins/platforms/discord/adapter.py:1897-1914 with coverage at tests/gateway/test_discord_sync_limit.py:61-140; treat #24371, #29134, #40699, and #50890 as closed duplicates/superseded work, with merged #46078 and #50992 retained as the two complementary reference implementations. Complex graphflowchart TD
classDef open fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a
classDef merged fill:#dcfce7,stroke:#15803d,color:#14532d
classDef closed fill:#e5e7eb,stroke:#6b7280,color:#1f2937
classDef unverified fill:#f3f4f6,stroke:#9ca3af,color:#374151
classDef best stroke-width:3px,stroke:#b45309
classDef target stroke-width:3px,stroke:#4338ca
subgraph Dup19366 ["PRs duplicating each other"]
P19366["PR #19366 (open)"]
P24371["PR #24371 (closed)"]
P29134["PR #29134 (closed)"]
P40699["PR #40699 (closed)"]
P50890["PR #50890 (closed)"]
P50992["PR #50992 (merged)"]
end
class P19366 open
class P24371 closed
class P29134 closed
class P40699 closed
class P50890 closed
class P50992 merged
class P19366 target
click P19366 "https://github.com/NousResearch/hermes-agent/pull/19366"
click P24371 "https://github.com/NousResearch/hermes-agent/pull/24371"
click P29134 "https://github.com/NousResearch/hermes-agent/pull/29134"
click P40699 "https://github.com/NousResearch/hermes-agent/pull/40699"
click P50890 "https://github.com/NousResearch/hermes-agent/pull/50890"
click P50992 "https://github.com/NousResearch/hermes-agent/pull/50992"
Graph: solid arrow = fixes / best fix, dashed arrow = partial or unverified (see edge label); boxed group = PRs duplicating each other; amber border = best fix; indigo border = target; gray node = closed (state tag in the node label). Cross-PR triage: Reviewed 7 pull requests and 0 issues in this complex. Each diff was read against this issue; Assessment working set: 58 kB of PR diffs, 13 kB of issue/PR text, 9 kB of discussion (11 comments), 0 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch. |
Summary
Test plan
Notes
The observed failure was Discord error 30032: maximum number of application commands reached (100). Desired Hermes commands are ~40; the app had 76 stale commands, mostly legacy per-skill commands. The reconcile order was creating before pruning, so it hit the cap before cleanup could happen.