Skip to content

feat(daemon): expose list_shortcuts over AG-UI - #1718

Merged
edenreich merged 1 commit into
mainfrom
feat/issue-1715
Nov 6, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/issue-1715

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Resolves #1715

Summary

A daemon client of the infer daemon AG-UI binding can now fill its / menu like the chat TUI: a new project-scoped list_shortcuts frame answers with the shortcut registry's entries, the built-in commands and the YAML-defined custom shortcuts, each with the name, description, usage and kind the TUI shows. Skills stay on the existing list_skills frame.

Changes

  • New list_shortcuts panel frame and shortcuts reply in internal/presentation/headless/panel.go, backed by the worker's shortcuts.Registry. Entries are sorted by name, and a worker without a registry answers with an empty list. The answer rides the existing frameWriter, so it carries the lowercase app-frame type.
  • internal/container/container.go wires the registry into the panel. internal/sessions/registry.go adds list_shortcuts to the project-scoped request vocabulary and routes the shortcuts reply to the requester only.
  • The command-or-shortcut check moved from the TUI autocomplete to shortcuts.Kind with the KindCommand and KindShortcut constants, so the TUI badge and the frame share one implementation.
  • Docs: docs/browser-extension-protocol.md gains a Shortcuts section and lists list_shortcuts among the project-scoped requests. docs/ag-ui-output.md already covers the panel requests as list_* and links there, so it is unchanged.
  • Tests: a panel case with one built-in and one custom shortcut, an empty-registry case, and a daemon relay case that the shortcuts reply reaches only its requester.

Notes for review

  • The frame only lists. The worker does not run a /<name> it receives in a run_agent_input message, so a client runs what it offers: a snippet shortcut through completion_request, anything else through its own command surface. A worker-side command surface is left for a follow-up if the clients want one.
  • Clients merge the list with list_skills themselves. The docs state the TUI's precedence: on a name clash the registry entry wins.

Downstream

  • The browser extension and the desktop app can consume list_shortcuts for their / menus. The frame is additive and both ignore unknown frame types, so no coordinated release is needed.
  • Docs follow-up for inference-gateway/docs is not filed yet.

A daemon client can now list the shortcut registry for its / menu: built-in
commands and custom shortcuts with the name, description, usage and kind the
chat TUI shows. Skills stay on list_skills.
@edenreich
edenreich requested a review from a team as a code owner November 6, 2026 17:57
@github-project-automation github-project-automation Bot moved this to Todo in 2026 Nov 6, 2026
@edenreich
edenreich merged commit 04d7a0a into main Nov 6, 2026
1 check passed
@edenreich
edenreich deleted the feat/issue-1715 branch November 6, 2026 17:58
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.246.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 7, 2026
@edenreich edenreich moved this from Todo to Done in 2026 Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[FEATURE] Expose slash shortcut completion over the daemon binding

1 participant