Repository navigation
Description
Summary
In the desktop app (a client of the infer daemon AG-UI WebSocket binding), typing # in the chat input shows no dropdown of the project's GitHub issues. The TUI has this: internal/presentation/tui/autocomplete/autocomplete.go wires the # trigger to GitHubIssueService.ListIssues (internal/agent/domain/github.go), and internal/presentation/tui/handlers/chat_message_processor.go expands #N tokens into an issue block before the message reaches the model. None of this is reachable over the daemon protocol: the panel frames in internal/presentation/headless/panel.go are list_history, list_conversations, list_skills, list_models, select_model, set_mode, tool_request and completion_request (see docs/browser-extension-protocol.md, "Project-scoped requests"). There is no issues list, and the headless worker (internal/presentation/headless/control.go) does no #N expansion on a run_agent_input message.
The same audit shows other TUI input helpers with no daemon counterpart:
@file autocomplete (FileService.ListProjectFiles) and@<path>inline expansion (expandFileReferencesinchat_message_processor.go) - nolist_filesframe, no expansion in the worker.- Mid-text
/autocomplete lists both registry shortcuts and skills; the daemon only exposeslist_skills, so custom shortcuts and built-in commands are missing from a client's dropdown.
Goal: close the # gap and audit the TUI input triggers (#, @, /) and their message expansion against what the serve worker and daemon binding transmit. Fix every gap in one PR, or file a follow-up issue per gap that is out of scope, so a daemon client can match the TUI.
Acceptance Criteria
- A client can request the current project's open issues over the daemon binding and the serve worker stdin (a
list_issuesproject-scoped frame or equivalent), answered with number, title and state asGitHubIssueService.ListIssuesreturns them, and an empty list whereIsAvailable()is false. - A
run_agent_inputuser message containing#Nis expanded by the worker the same wayexpandIssueReferencesdoes in the TUI, so the model sees the issue body and comments. -
@file completion and@<path>expansion are either exposed and applied over the daemon the same way, or tracked in a linked follow-up issue. -
/completion over the daemon covers the same entries the TUI shows (shortcuts, built-in commands and skills), or the gap is tracked in a linked follow-up issue. -
docs/browser-extension-protocol.mdanddocs/ag-ui-output.mddocument every new frame, and the frames carry the lowercase app-frametypethe protocol reserves for non-run traffic. - Tests cover the new frames in
internal/presentation/headlessand the daemon relay.
Related
- [TASK] Refactor replace custom events and frames with standard AG-UI #1419 replaced the custom events and frames with standard AG-UI (closed).
- [FEATURE] infer daemon hosts the AG-UI WebSocket binding and supervises session workers #1399 and [FEATURE] Long-lived headless session worker that runs one AG-UI run per user_message #1398 introduced the daemon binding and the serve worker (closed).
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Nov 6, 2026
@infer can you work on this? use /ponytail:ponytail /domain-driven-design /clean-architecture /clean-code /go /go-concurrency /bubbles-v2 /bubbletea-v2
inference-gateway-maintainer commentedon Nov 6, 2026
Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.4· CLI:v0.244.0· Gateway:v0.63.1· View JobTodos
Pull Request
#1716
✅ Infer Result: Success
All memory entries saved. Marking the final todo complete and wrapping up:
Work complete. This is the summary posted to the issue:
Resolved: [FEATURE] Pressing on # and other shortcuts should be triggered over AG-UI
PR: #1716 (
fix/issue-1711->main, commit44cc0f5c, checked and marked ready for review). Tracks on Roadmap 2026 (project #8, now in QA).What changed
1.
list_issuesover the daemon binding and serve worker stdinlist_issuespanel frame answered with anissuesreply carryingnumber,titleandstateexactly asGitHubIssueService.ListIssuesreturns them (newest first). The reply is an empty list wherever the TUI's#trigger shows nothing: no service,IsAvailable()false, or a failed list call (internal/presentation/headless/panel.go).internal/sessions/registry.goaddslist_issuesto the project-scoped request vocabulary, and the daemon routes theissuesreply to the requester only.2.
#Nexpansion in the worker'srun_agent_inputagentdomain.ExpandIssueReferences+agentdomain.FormatIssueBlockininternal/agent/domain/github.go(same regex, same 5s per-fetch budget, failed fetches leave the raw token in place). The chat TUI's message processor now delegates, andheadlessControl.enqueueRunInputapplies the identical expansion to run input text parts - one implementation, so daemon clients get byte-identical expansion to the TUI.3. Audit gaps tracked, not silently dropped
@file completion and@<path>expansion: [FEATURE] Expose @ file autocomplete and @path expansion over the daemon binding #1714 (it needs alist_filesframe plus reconciling TUI skip-on-invalid vs headless fail-on-invalid behaviors)./completion covering built-in commands and custom shortcuts: [FEATURE] Expose slash shortcut completion over the daemon binding #1715 (onlylist_skillsexists today).4. Docs -
docs/browser-extension-protocol.mddocumentslist_issues/issuesand the#Nexpansion (project-scoped list updated),docs/ag-ui-output.mddocuments the worker-side expansion; both frames use the lowercase app-frametypethe protocol reserves for non-run traffic. Routing ticket for the docs site: inference-gateway/docs#1103.5. Tests - panel cases (served list + unavailable/failed/nil -> empty), a daemon-relay case proving the
issuesreply reaches only its requester, and a worker case proving#123reaches the queue as the issue block; the TUI processor suite now exercises the shared domain function.Verification
go build ./...,task lint(golangci-lint: 0 issues, imports + markdownlint pass),go test ./...(all touched packages green; the only two failures are pre-existing/environmental - theconfigcredentials test needs the runner's realOLLAMA_CLOUD_API_KEYenv fixture, and a timing-sensitivedaemonthreadreconnect test that passes in isolation and is untouched by this PR). The pre-commit gate (mod:tidy, mocks, fmt, lint) passed at commit, tree is clean, branch in sync.Skipped: an e2e serve-level test for the new frame - the headless panel and sessions relay unit tests cover it; risk: the desktop/extension clients need to adopt
list_issuesthemselves (additive, unknown types are ignored per protocol).Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.4· CLI:v0.244.0· Gateway:v0.63.1· Exit Code:0· Duration: 16m 51sTokens: 18,614,916 in · 55,162 out · 18,670,078 total (81 requests)
Tool calls: 108 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
feat(daemon): expose list_issues and expand #N over AG-UI
inference-gateway-releaser commentedon Nov 7, 2026
🎉 This issue has been resolved in version 0.246.0 🎉
The release is available on:
Your semantic-release bot 📦🚀