Skip to content

feat(composer): pick an open GitHub issue from a # menu - #451

Merged
edenreich merged 3 commits into
mainfrom
feat/composer-issue-menu
Nov 7, 2026
Merged

edenreich merged 3 commits into
mainfrom
feat/composer-issue-menu

Conversation

@edenreich

@edenreich edenreich commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #441

Summary

Typing # in the composer opens a menu of the project's open GitHub issues as #<number> <title>, the menu the infer chat 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 on main, and reuses it.

Changes

  • backend/src/composer.rs: a list_issues command that returns number, title and state. The feat(composer): pick a project file from an @ menu #449 command became a shared ask_project and a generic parse_list, so list_files and list_issues are each a mock branch plus one call. DESKTOP_MOCK answers two fixed issues.
  • frontend/lib/mentions.ts: the token pattern also accepts #, filterIssues matches number or title, and menuRows builds 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, no gh, no auth) shows no menu.
  • frontend/lib/tauri.ts: the Issue type and listIssues.
  • Tests: bun test cases for # detection, filterIssues and menuRows, a Rust parser test, and e2e/tests/composer-issue-menu.yaml.

Verification

Notes for review

@edenreich
edenreich marked this pull request as ready for review November 7, 2026 18:30
Base automatically changed from feat/composer-file-menu to main November 7, 2026 18:31
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
edenreich force-pushed the feat/composer-issue-menu branch from cef5218 to bb4d730 Compare November 7, 2026 18:35
@edenreich
edenreich merged commit 9580a2e into main Nov 7, 2026
1 check passed
@edenreich
edenreich deleted the feat/composer-issue-menu branch November 7, 2026 19:07
@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.55.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-maintainer inference-gateway-maintainer Bot added the released Shipped in a release label 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

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Pick an open GitHub issue from a # menu in the composer

1 participant