Gateway: add commands.list slash command metadata API#13537
Closed
Pyiner wants to merge 4 commits into
Closed
Conversation
Pyiner
force-pushed
the
codex/gateway-commands-list-api-gateway-only
branch
from
February 11, 2026 03:12
b666d82 to
4582963
Compare
Pyiner
force-pushed
the
codex/gateway-commands-list-api-gateway-only
branch
from
February 12, 2026 09:34
3c25c69 to
1fab58e
Compare
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.listto expose slash-command metadata for clients (including iOS)commands.listBehavior Changes
commands.listwith optional filters:provider,sessionKey,includePlugins,includeSkillskey,name,slash,description,scope,source, optionalaliases,category,nativeName,acceptsArgs,argssessionKeyincludePlugins=falseTests
pnpm checkpnpm exec vitest run src/gateway/server-methods/commands.test.ts src/gateway/protocol/index.test.tspnpm protocol:checkpython3 scripts/analyze_code_files.py --compare-to origin/main --threshold 1000 --strictCode word: lobster-biscuit
Sign-Off
Greptile Overview
Greptile Summary
Adds a new Gateway RPC method
commands.listand wires it into the gateway handler map (src/gateway/server-methods.ts) plus the advertised method list (src/gateway/server-methods-list.ts) and read-scope authorization. The new handler (src/gateway/server-methods/commands.ts) returns normalized slash-command metadata derived from the existing commands registry, optionally including skill commands resolved per-session agent viasessionKey, and plugin commands (included by default, withincludePlugins=falseto exclude). Includes unit tests validating response shape, plugin inclusion toggles, session-based skill resolution, and invalid-param rejection.Confidence Score: 4/5
(4/5) You can add custom instructions or style guidelines for the agent here!