Repository navigation
Description
Problem
Opening a specific GitHub issue by number in the Codev VS Code extension is a multi-step round-trip today:
Cmd+Shift+Pto open the palette- Type "Codev: Search Backlog..."
- The Quick Pick opens, populated from the live backlog
- Type the issue number, scan the filtered rows, press Enter
- The issue opens via
codev.viewBacklogIssue
Two friction points compound:
- No direct "open #N" command. The existing
codev.searchBacklogis a Quick Pick over the backlog rows; it filters by typed text but you still have to scan the filtered list and pick. There is no command that accepts a typed issue number and opens it directly, regardless of whether the issue is in the current backlog set. - No keybinding on any issue command.
package.jsoncontributes.keybindingshas zero entries for issue affordances. Every invocation goes throughCmd+Shift+P.
A related gap: the search-backlog approach only works on issues currently in the backlog set. Closed issues, archived issues, and arbitrary numbers (e.g. an issue you saw in a Slack link) cannot be opened through any Codev affordance.
Proposal
Two small additions:
A. New command: codev.openIssueByNumber
A direct-input command that:
- Prompts via
vscode.window.showInputBoxfor an issue number (numeric validation, support#1234and1234forms). - Fetches the issue via the existing forge contract (the same path
codev.viewBacklogIssueuses today). Works for open AND closed issues; not limited to the backlog set. - Opens it in the preview via
codev.viewBacklogIssueso the placement / focus / reuse behavior is identical to the sidebar-click path (which PR [AIR #1074] vscode: align backlog issue-preview placement with count-then-pick (remove focus side-effect) #1076 already aligned with the builder-terminal count-then-pick model). - If the issue does not exist, surfaces a clean error message ("Codev: issue Codev process fleet drives macOS memory-pressure kills: shellper husk sweep + fleet observability #1234 not found in this repository").
The command is palette-discoverable (Codev: Open Issue by Number...).
B. Default keybinding
Bind codev.openIssueByNumber to Cmd+K I / Ctrl+K I by default. Verified against bundled VS Code 1.125.0 default keybindings (vs-code-default-keybindings JSON at codebling/master): cmd+k i is unbound; cmd+k cmd+i is workbench.action.showHover (near-collision worth knowing, same pattern as Codev's existing Cmd+K B near-collision with setSelectionAnchor : the two chords are distinct in VS Code's grammar, the release-vs-hold of Cmd between keys differentiates them).
Why Cmd+K I specifically:
- Mnemonic
IforIssue. - Joins the existing Codev
K-prefix family (Cmd+K BforforwardSelectionToBuilder,Cmd+K AforaddArchitectfrom feat(vscode): Architects tree — Add Architect UI, Cmd+K A picker, label casing #841). - Avoids
Cmd+Iwhich is taken by VS Code's chat (per the empty-editor placeholder screenshot of bundled VS Code:Ctrl+Cmd+Iis the chat shortcut).
Plan-gate decisions to lock at plan-approval
- Input validation shape. Accept
1234,#1234, full URLs (https://github.com/owner/repo/issues/1234)? Lean: numeric +#-prefixed; URL parsing is a follow-up if real users paste links. - Error message on not-found. Quick info message (transient) vs modal error vs status-bar drop. Lean: quick info; matches the existing affordance vocabulary.
- Cross-repo support. This codev workspace is bound to one forge / repo via
.codev/config.json. Should the command acceptowner/repo#1234for cross-repo? Lean: no for v1; same-repo only; cross-repo is a separate concern. - Should the command also accept PRs? GitHub treats issues and PRs as the same numeric space. Accepting
1091and resolving to a PR preview if that's what the number is = useful. Lean: yes; route PRs to the PR-detail flow (codev.referencePRInArchitect's sibling viewer, or open the PR in browser if no preview surface). Bikeshed at plan. - Keybinding default vs opt-in. Lean: ship
Cmd+K Ias the default; matches the precedent ofCmd+K BandCmd+K A(both default-shipped). Users override inkeybindings.jsonif it conflicts with their personal setup.
Acceptance criteria
-
codev.openIssueByNumberregistered as a palette-discoverable command (titleCodev: Open Issue by Number...). - Invoking it prompts via
showInputBoxfor a numeric issue ID (accepting1234and#1234). - On valid input, the command fetches the issue via the existing forge contract used by
codev.viewBacklogIssueand opens the preview. Works on issues NOT currently in the backlog set (closed, archived, arbitrary numbers). -
Cmd+K I/Ctrl+K Ibound as the default keybinding. - On a non-existent issue number, surfaces a clean error message; no exception leak.
- Unit test for the input parser (
1234,#1234, whitespace, empty, non-numeric all handled). - When-clause gating: keybinding active globally (not scoped to a particular editor / view); the command is universally useful.
- No regression to
codev.searchBacklog,codev.viewBacklogIssue,codev.openBacklogIssue, or the existing keybinding-free state of other issue commands.
Out of scope
- A "search for issues" feature beyond what
codev.searchBacklogalready offers (this is direct-number-input, not search). - Cross-repo issue resolution.
- Reverse-lookup for PRs (covered in plan-gate decision Installation Process Failures - Multiple Steps Being Skipped #4 if accepted).
- Modifying the existing
codev.searchBacklogQuick Pick behavior. - Status-bar entry for the issue action; the keybinding + palette is the v1 surface.
Protocol selection
Small, well-scoped, no design ambiguity beyond the five plan-gate items above (all locked leans). One new command + one new keybinding + parser tests. Roughly 60-100 LOC including tests.
- AIR is the natural fit. Single-pass autonomy, review goes in the PR body.
- BUGFIX is a poor fit (this is additive, not a bug fix).
- PIR would be overkill (no design ambiguity worth a dev-approval gate; the existing sidebar-click and search-Quick-Pick flows already define the placement/focus behavior this command inherits).
Related
- [AIR #1074] vscode: align backlog issue-preview placement with count-then-pick (remove focus side-effect) #1076 / PR [AIR #1074] vscode: align backlog issue-preview placement with count-then-pick (remove focus side-effect) #1076: backlog issue-preview placement (the
codev.viewBacklogIssueflow this command's preview path inherits) - PR vscode: Forward file/symbol/hunk/selection references into the builder PTY (#789) #1023 / vscode: inject file/hunk reference into builder PTY from the unified-diff editor (codelens) #789: codelens-driven file/hunk injection in the diff editor (sibling
K-prefix keybinding family precedent:Cmd+K B) - feat(vscode): Architects tree — Add Architect UI, Cmd+K A picker, label casing #841 / PR feat(vscode): Architects tree — Add Architect UI, Cmd+K A picker, UPPERCASE labels #1082: Add Architect UI (sibling
K-prefix keybinding precedent:Cmd+K A) - vscode: keyboard shortcut to forward the symbol/hunk under the cursor to the builder (codelens keyboard equivalent) #1073: cursor-forward keyboard shortcut (sibling
K-prefix proposal:Cmd+K H; this issue follows the same verification + near-collision pattern) packages/vscode/src/commands/search-backlog.ts: existing closest-related Quick Pickpackages/vscode/src/commands/view-issue.ts: the preview path this command's open step calls intopackages/vscode/package.jsoncontributes.commands: where the new command + keybinding land
Activity
amrmelsayed commentedon Jun 29, 2026
On it! Working on this with the PIR protocol (plan + dev-approval gates before PR).
[PIR #1096] Plan draft
[PIR #1096] Plan revised: fold in palette-clarity rename of openBackl…
[PIR #1096] Plan revised: command is openIssueById / 'Open Issue by ID'
[PIR #1096] Add codev.openIssueById command + Cmd+K I, disambiguate p…
[PIR #1096] Update thread: implement phase complete
[PIR #1096] Open Issue by ID opens in browser; thread url through iss…
[PIR #1096] Clarify url contract doc: browser URL + per-forge source …
[PIR #1096] Emit issue url from gitlab/gitea/linear issue-view script…
[PIR #1096] Review + retrospective
[PIR #1096] Update thread: PR #1123 opened, consult APPROVE, pr gate …