Repository navigation
feat(pi-extension): autocomplete /ponytail arguments - #1080
Merged
DietrichGebert merged 4 commits intoOct 13, 2026
Merged
Conversation
Wire getArgumentCompletions into the /ponytail command, mirroring Pi's built-in /mcp pattern: first word completes the modes (lite, full, ultra, off) plus status and default; default <mode> completes runtime levels on the second word. Unknown or extra words return null.
Merged
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
pi.registerCommand("ponytail", { description: PONYTAIL_COMMAND_DESCRIPTION, + getArgumentCompletions: (prefix) => completePonytailArgs(prefix), handler: async (args, ctx) => ... })Mirrors the built-in
/mcpcommand completion pattern (startsWith filter,nullwhen nothing matches, trailing space afterdefaultso the secondlevel opens immediately).
reviewis deliberately not offered: it issession-only and rejected by
parsePonytailCommand(#377).Evidence
/ponytail doffers nothing;defaultaccepts modes users cannot discover.After:
/ponytail d→default→/ponytail default→ off/lite/full/ultra.npm testinpi-extension/: 29 pass, 0 fail, including the new/ponytail autocompletes modes, commands and default <mode>(8 assertions:full list, prefix filter, both
defaultlevels, no-match →null).node scripts/check-rule-copies.js✅ ·node scripts/check-versions.js✅Fixes pi-extension: argument completion for /ponytail #1081
npm testat the repo root has one pre-existing failure onmain(
csv: correct pandas one-liner passes) — the local env lackspandas,documented in CONTRIBUTING. Verified it fails on a clean tree via
git stash.Merge Danger
Door: two-way — additive, UI-only; Pi versions without
getArgumentCompletionsignore the field.Blast Radius: pi-extension only.