Gateway: add commands.list method#17054
Closed
advaitpaliwal wants to merge 2 commits into
Closed
Conversation
thewilloftheshadow
force-pushed
the
main
branch
from
February 15, 2026 18:46
bfc1ccb to
f92900f
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
This was referenced Apr 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
commands.listthat returns the chat command registry.args[](when present) and normalizes staticchoicesvalues to{ value, label }pairs.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
commands.list(read-scoped) and includes it in the gateway method list.commands.listnow returns commandargsand static argchoices(dynamic/function choices are omitted).Security Impact (required)
No)No)No)No)No)Repro + Verification
Environment
Steps
commands.listas anoperatorclient withoperator.read.Expected
argsand staticchoices.Evidence
pnpm build && pnpm check && pnpm testHuman Verification (required)
src/gateway/server-methods/commands.test.ts).key, fallback category togeneral, and normalization of string choices.Compatibility / Migration
Yes)No)No)Failure Recovery (if this breaks)
commands.list.Risks and Mitigations
commands.listis inREAD_METHODSwith a unit test verifyingoperator.readis required.AI-assisted disclosure
This PR was authored with AI assistance (Codex). Tests were run locally.
Greptile Summary
Added gateway WebSocket method
commands.listthat returns chat command registry metadata. The method is properly scoped tooperator.read, included in gateway method discovery, and normalizes command args by:nativeNameas fallback tokeyfor the command namecategoryto"general"{ value, label }pairsundefined)The implementation includes comprehensive test coverage verifying scope gating and payload mapping. No changes to web hook wiring or orchestrator HTTP route removal (intentionally deferred to follow-up PR).
Confidence Score: 5/5
Last reviewed commit: 2fdbe86