Repository navigation
feat(tui): label slash autocomplete rows by kind (command, shortcut, skill, remote skill) - #1363
Merged
Merged
Conversation
…skill, remote skill) Replace the Catalog bool on ShortcutOption with a Kind string derived from the source: built-in registry shortcuts are command, YAML *CustomShortcut entries are shortcut, installed skills are skill and catalog skills are remote skill. The mid-text skills completion shows the same labels, remote skills keep the status-colored name, and the description column shrinks before the kind column at narrow widths.
inference-gateway-maintainer
Bot
marked this pull request as ready for review
September 27, 2026 15:47
inference-gateway-maintainer
Bot
requested a review
from a team
as a code owner
September 27, 2026 15:47
6 tasks
Contributor
|
@infer demo |
Contributor
Author
|
Model: Todos
Pull Request✅ Infer Result: SuccessDemo recorded: slash autocomplete with kind labelsThe recording (embedded above) walks the real chat TUI from this branch (commit e03fcc4) and shows the
Setup notes:
No code changes were made for this demo: the branch still contains exactly commit e03fcc4, Model: Tokens: 4,758,905 in · 40,296 out · 4,799,201 total (35 requests) Tool calls: 64 total · 100% success rate ArtifactsTracesStatsTriggered by edenreich · Infer Action · OSS |
edenreich
added a commit
that referenced
this pull request
Sep 27, 2026
## Summary `@infer /demo` on a PR (or `/demo` in chat) now has a procedure to follow: a new built-in `demo` skill, seeded into `~/.infer/skills` by `infer init` like `bug` and `tmux`. It records a short demo GIF of any project - CLI, TUI or GUI app - so it works in every org repo that runs infer-action with `record-demo`, desktop included. It replaces the demo procedure hardcoded in infer-action's `infer-action-record-demo` reminder (follow-up PR there shrinks it to a pointer to this skill). ## Why this shape Every rule comes from the 8 demo runs so far (#1355, #1348, #1359): | Observed | Skill rule | |---|---| | Procedure arrived at turn 28, after 3 takes and a committed `.mp4` (#1348) | "Record the demo" is the last todo, planned up front; recording after the work is pushed | | 4 GIFs in one comment - every probe take became a GIF (#1348, #1359) | Rehearse with `capture-pane` / Screenshot, record one take, convert only it to a fixed `~/.infer/artifacts/demo.gif` | | Take capped at 60 s before the interesting frame - one model turn per keystroke (#1359) | Whole take as one response of tool calls (`CallOrder` keeps them in order) | | Run died on `ImageDecode` of a GIF (API 400) (#1355, #1359) | Check a take via one PNG frame pulled with ffmpeg | | `pkill -f "infer chat"` matched the agent's own command line (#1355) | Quit with the app's own keys; no `pkill -f` / `killall` | | Own tmux sessions / xterms, not on the recorded display (#1348, #1359) | CI: only the `demo` session; GUI apps start there with `DISPLAY=:99` | | MP4 hard-linked into the repo and pushed (#1348) | `~/.infer/artifacts` is the delivery channel; recordings never enter the repo | | Wrong conclusions saved to memory in a run without recording (#1359) | No memories about demo mechanics - the skill is the source of truth | ## Changes - `internal/skills/builtins/demo/SKILL.md` - the skill - `internal/skills/builtins_test.go` - seeds and validates `demo`; description must route `/demo` - `docs/skills.md` - listed under built-in skills ## Verification - `go test ./internal/skills` green; pre-commit hook (mod:tidy, fmt, lint, markdownlint) passed on the commit - End-to-end check is `@infer /demo` on #1363 once this ships and infer-action/`.github` bump their CLI version ## Rollout 1. This PR, released (expected v0.215.0) 2. infer-action: reminder points at the skill, drops its own MP4->GIF conversion, allows `ffmpeg`, bumps default CLI version 3. `inference-gateway/.github`: bump `cli-version` and the infer-action tag Docs: follow-up `[DOCS]` issue for `inference-gateway/docs` still to be filed.
Contributor
|
🎉 This PR is included in version 0.215.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.

Resolves #1358
Summary
The
/autocomplete mixed four kinds of entries with no way to tell them apart; only catalog skills got a visual hint (status-tinted name). This replaces theCatalog boolonShortcutOptionwith aKindstring and renders a dim kind label on every slash row, matching the desktop composer (command,skill,remote skill) plusshortcutfor YAML shortcuts the desktop does not have. Docs follow-up already filed: inference-gateway/docs#844.Changes
ShortcutOption.Catalog boolwithShortcutOption.Kind string; new exported kindsKindCommand,KindShortcut,KindSkill,KindRemoteSkillin the autocomplete package*shortcuts.CustomShortcut(registry rows ->command/shortcut), and onagentdomain.Skill.Scope == SkillScopeCatalog(skill rows ->skill/remote skill); subcommand rows inherit the parent shortcut's kind; models, tools, files and issues rows stay unlabeledPadText) before the label at narrow widthsremote skillnames so "will be downloaded on first use" stays visually obviousskills-midtextmode gets the labels for free since it shares the render pathTestAutocomplete_KindLabelscovers one row of each kind, mid-text labels, the remote-skill tint, and label readability/alignment at a 60-column widthVerification
go test ./...green;task lintandtask vetclean; pre-commit hook (mod:tidy, mocks, fmt, lint) passed on the commit