Repository navigation
feat(daemon): expose list_issues and expand #N over AG-UI - #1716
Merged
Merged
Conversation
A daemon client can now ask for the current project's open GitHub issues through a list_issues panel frame, relayed like the other project-scoped requests and answered with number, title and state, and an empty list where the issue service's IsAvailable() is false. The serve worker expands #N tokens in run_agent_input user messages before the run, the way the chat TUI does: the expansion moved into agent/domain (ExpandIssueReferences, FormatIssueBlock) so the TUI delegation and the worker share one implementation. Refs: #1711 Refs: #1711
3 tasks
inference-gateway-maintainer
Bot
marked this pull request as ready for review
November 6, 2026 16:59
inference-gateway-maintainer
Bot
requested a review
from a team
as a code owner
November 6, 2026 16:59
Closed
6 tasks
A run input is expanded on the worker's stdin reader, so an unbounded list of #N tokens stalled interrupt and approval frames behind sequential gh calls. Tokens past the first ten distinct issues now stay raw. The duplicate fetch timeout goes, since the issue service already bounds each call, and formatIssueBlock is unexported.
3 tasks
Contributor
|
🎉 This PR is included in version 0.246.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This was referenced Nov 7, 2026
Closed
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 #1711
Summary
A daemon client of the
infer daemonAG-UI binding can now show the#issue autocomplete and send issue references like the chat TUI: a new project-scopedlist_issuesframe answers with the project's open issues (number, title and state, an empty list wherever the TUI's trigger shows nothing), and the serve worker expands#Ntokens inrun_agent_inputuser messages before the run. The#Nexpansion moved intointernal/agent/domainso the TUI delegation and the worker share one implementation. The remaining input-trigger gaps the audit found are tracked in #1714 (@files) and #1715 (/shortcuts).Changes
list_issuespanel frame andissuesreply ininternal/presentation/headless/panel.go, backed byagentdomain.GitHubIssueService: answered with number, title and state as the service's list returns them, and an empty list when the service is nil, itsIsAvailable()is false, or the list call fails. The answer rides the existingframeWriter, so it carries the lowercase app-frametypethe protocol reserves for non-run traffic.internal/container/container.gowires the worker's issue service into the panel;internal/sessions/registry.goaddslist_issuesto the daemon's project-scoped request vocabulary and routes theissuesreply to the requester only.#Nexpansion extracted toagent/domain.ExpandIssueReferencesandagent/domain.FormatIssueBlock(the regex moved along, and the expansion now fetches at most 10 distinct issues per message, leaving later tokens raw). The chat TUI'sexpandIssueReferencesnow delegates, andheadlessControl.enqueueRunInputapplies the same expansion torun_agent_inputtext parts, logging failed fetches and leaving those tokens in place so the model still sees the raw reference.docs/browser-extension-protocol.mddocumentslist_issues->issuesin a GitHub issues section and the#Nexpansion in the run-input bullets,docs/ag-ui-output.mddocuments the worker-side expansion in the serve worker section, and the project-scoped request list includeslist_issues.issuesreply reaches only its requester, and a worker test that a#123token in a run input reaches the queue as the issue block, plus the unchanged TUI processor suite now running through the shared function.Downstream
list_issuesfor their#menus - the frame is additive and both ignore unknown frame types, so no coordinated release is needed.@and/gaps stay tracked in [FEATURE] Expose @ file autocomplete and @path expansion over the daemon binding #1714 and [FEATURE] Expose slash shortcut completion over the daemon binding #1715.