Skip to content

[FEATURE] Expose @ file autocomplete and @path expansion over the daemon binding #1714

Closed

Description

@inference-gateway-maintainer

Summary

A daemon client of the infer daemon AG-UI WebSocket binding (the desktop app and the extension) cannot use the @ file autocomplete the chat TUI has: the TUI lists project files via FileService.ListProjectFiles (internal/presentation/tui/autocomplete/autocomplete.go) and expands @<path> tokens through expandFileReferences in internal/presentation/tui/handlers/chat_message_processor.go before the message reaches the model. None of that is reachable over the binding: there is no list_files panel frame in internal/presentation/headless/panel.go, and the serve worker does not expand @<path> tokens in run_agent_input user messages (internal/presentation/headless/control.go).

This tracker was filed by the audit behind #1711, which landed the # issue autocomplete (list_issues) and the worker-side #N expansion in the same PR. The @ gap needs its own frame plus worker-side expansion, and must first reconcile two slightly different TUI behaviors: the TUI skips invalid refs and inlines a Markdown ## Summary for .md files, while headless --files expansion (internal/presentation/headless/headless.go) fails the run on invalid refs and inlines the whole file.

Acceptance Criteria

  • A client can list the current project's files over the daemon binding and the serve worker stdin (a list_files project-scoped frame or equivalent), answered the way FileService.ListProjectFiles returns them.
  • A run_agent_input user message containing @<path> is expanded by the worker the same way the TUI does: text files inlined, images referenced by path or attached per the model's vision support, invalid refs left in place.
  • docs/browser-extension-protocol.md and docs/ag-ui-output.md document the new frame, and the frames carry the lowercase app-frame type the protocol reserves for non-run traffic.
  • Tests cover the new frame in internal/presentation/headless and the daemon relay (internal/sessions).

Activity

  1. inference-gateway-releaser commented on Nov 7, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.246.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  2. moved this from Todo to Done in 2026on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions