Repository navigation
feat(composer): pick an open GitHub issue from a # menu - #451
Merged
Merged
Conversation
A list_issues command sends the frame for the chat's project dir and answers each issue's number, title and state. It shares the request path with list_files, answers an empty list on any failure and fixed issues in DESKTOP_MOCK.
Typing # in the composer opens a menu of #<number> <title> rows filtered by number or title, and Enter inserts #<number>. It reuses the @ menu's token detection and keys, so a # inside a word such as C# or a URL fragment opens nothing, and a project without issues shows no menu.
edenreich
force-pushed
the
feat/composer-issue-menu
branch
from
November 7, 2026 18:35
cef5218 to
bb4d730
Compare
Contributor
|
🎉 This PR is included in version 0.55.0 🎉 The release is available on GitHub release 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 #441
Summary
Typing
#in the composer opens a menu of the project's open GitHub issues as#<number> <title>, the menu theinferchat TUI offers. Picking one inserts#<number>, which the CLI's worker expands into the issue's content before the run (inference-gateway/cli#1716, infer v0.246.0).It builds on the
@menu from #449, now onmain, and reuses it.Changes
backend/src/composer.rs: alist_issuescommand that returns number, title and state. The feat(composer): pick a project file from an @ menu #449 command became a sharedask_projectand a genericparse_list, solist_filesandlist_issuesare each a mock branch plus one call.DESKTOP_MOCKanswers two fixed issues.frontend/lib/mentions.ts: the token pattern also accepts#,filterIssuesmatches number or title, andmenuRowsbuilds the rows for either trigger. A#inside a word (C#,page#intro) opens nothing.frontend/components/Composer.tsx: issues are fetched next to the files, once per project. Both menus share one state, key handling and render block. A project with no issues (no git repo, nogh, no auth) shows no menu.frontend/lib/tauri.ts: theIssuetype andlistIssues.bun testcases for#detection,filterIssuesandmenuRows, a Rust parser test, ande2e/tests/composer-issue-menu.yaml.Verification
bun run build,cargo fmt --check,cargo clippy -- -D warnings,cargo check,cargo test.bun test212 passed,cargo test -p desktop-e2epasses.mainafter feat(composer): pick a project file from an @ menu #449 and feat(transcript): show cancelled tool calls and conversation optimization #450 were squash-merged. The only conflict was theComposer.tsximports (feat(agents): run an agent chat as its Markdown agent through the CLI #448'sagentPinsModelnext to this PR'smenuRowsandIssue). After the rebase:bun test218 passed,cargo test220 passed, clippy and fmt clean.composer-issue-menu.yaml7/7,composer-file-menu.yaml7/7,stop-pending-tool.yamlandnext-step-suggestion.yaml.history-recall.yamlfailed once at its ArrowUp step and passed on two reruns. Nothing in this diff touches an empty composer, so it reads as a timing flake.Notes for review
docs/browser-extension-protocol.md. The e2e runs inDESKTOP_MOCK, over the mock issues.