Skip to content

fix(ux): VS Code extension frictions (Lane K) - #8280

Merged
EffortlessSteven merged 1 commit into
mainfrom
fix/ux-vscode
Oct 17, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
fix/ux-vscode

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Lane K of the #7842 fix-lane plan. Two ux issues in the VS Code extension; one was already fixed by merged sibling work, one is fixed here.

#7677 — bare "Copy Receipt Command" palette title hides its scope

Sibling-fixed, not re-fixed. Verified against current origin/main (5707fbb): the bare title is now ripr: Copy Receipt Command (Receipt Status), contributed once, alongside ripr: Copy Receipt Command (Top Repair Packet) and ripr: First PR - Copy Receipt Command, so all three receipt scopes are distinguishable in the palette. Landed via PR #7982 (merged 2026-10-14, merge commit 30a505b, confirmed ancestor of origin/main); the issue was closed by that merge.

Refs #7677

#7678 — eight contiguous ripr entries in the editor context menu

Verified still current at origin/main (contributes.menus.editor/context declared eight entries, groups ripr@1–ripr@8, three near-identical clipboard commands).

Fix (manifest-only, per the issue's suggested direction):

  • Copy Repair Packet at Cursor stays at the top level (highest-frequency action, already keybound at Ctrl+Alt+Shift+P / Cmd+Alt+Shift+P).
  • The remaining seven top-packet copy/inspection commands move behind a contributed ripr.editorContext submenu labeled ripr, keeping the same editorTextFocus && resourceLangId guard on every entry.
  • command_menus_manifest.test.ts updated: pins the one top-level action plus the submenu entry, the seven submenu commands in stable order, the language guard inside the submenu, and that payload-bound commands stay out of both surfaces.
  • README context-menu paragraph updated; changelog.d/7678-editor-context-submenu.md added.

Closes #7678

Proof

  • editors/vscode: npm ci, npm run compile, npm run package — all three pass (VSIX dist/ripr-0.11.0.vsix, 411 files).
  • Manifest assertions from the test suite re-run directly against the edited package.json (editor/context shape, submenu order, when-clauses, no dangling command ids, code-action-only exclusion).
  • No forbidden tokens in the diff (unwrap(/expect(/panic!(/proven/killed/survived/untested/adequate).

Non-goals

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 16, 2026 23:47
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 16, 2026 23:47
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available. Your 50 included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: c1df4ad4-b628-4a7a-84f2-6105c14e9fb6
📥 Commits

Reviewing files that changed from the base of the PR and between 5707fbb and 8bf290f.

📒 Files selected for processing: 4
  • changelog.d/7678-editor-context-submenu.md
  • editors/vscode/README.md
  • editors/vscode/package.json
  • editors/vscode/test/suite/command_menus_manifest.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • Test asserts submenu id exists in contributes.submenus but does not assert submenu.label === 'ripr'; a label typo/rename would still pass the menu-shape tests.

Verification questions

  • Confirm tied-with-deepStrictEqual assertion orders topLevelCommands and submenus lists separately; assertions remain order-sensitive and will fail on any reordering.
  • Confirm submenu shape and grouping contract: package.json declares a single contributed submenu (ripr.editorContext, label ripr) and exactly one submenu entry on editor/context pointing to it at ripr@2. The seven cockpit commands move into menus['ripr.editorContext'] in the same order as before, renumbered to ripr@1–ripr@7. No editor.context.copy/editor.context.clipboard plugins or re-ordering of the top-level group was added.

Refuted

  • Adding a top-level submenu in editor/context will surface a new 'ripr' item in unsupported file types (e.g. .json, .md).; refuted because: The editor/context entry retains the exact editorTextFocus && resourceLangId =~ /^(rust\|typescript\|typescriptreact\|javascript\|javascriptreact\|python)$/ when-clause it had before; the submenu is only rendered when that clause evaluates true.

Test proof

  • Focused HEAD proof failed (exit 101): cargo test --locked --package vscode-extension --test command_menus_manifest. This is a current failure, not a red/green witness.

Parked follow-ups

  • old: copyTopRepairPacket group 'ripr@2' at top level; new: same command under submenu ripr@1 — a stale test asserting only the flat list would still pass pre-change. This is a real coverage gap but only in the old test, which is replaced.
  • Group-numbering leak: the seven moved commands are renumbered @1..@7 inside the submenu but the two top-level entries keep @1/@2 from the old scheme; cosmetic only since sorting is still stable within each surface.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

@EffortlessSteven
EffortlessSteven merged commit a1ea790 into main Oct 17, 2026
26 checks passed
@EffortlessSteven
EffortlessSteven deleted the fix/ux-vscode branch October 17, 2026 00:23

Copy link
Copy Markdown
Member Author

Bounded Lane K follow-up from post-merge qualification: verified_current at current main faf7ca01b0a3363f0d4ca676b5f33eaf6433c5ca (2026-10-17 UTC). Routing to the originating #8280 / #7842 owner; this does not reopen the delivered #7678 UX change or claim a competing implementation.

The VS Code job 117282394110 checked out d22644616d3879af44450ad46f137d118ebf0079. Install, compile, package and Xvfb preparation succeeded. xvfb-run -a npm run test:e2e executed 380 passing, 1 pending, 1 failing, then exited 1:

Command Menus Manifest
  every menu and keybinding command id is a contributed command
AssertionError [ERR_ASSERTION]: menu/keybinding references unregistered command undefined
at Context.<anonymous> (out/test/suite/command_menus_manifest.test.js:200:20)

This is a deterministic test-contract mismatch, rather than an environment/setup failure. The new valid submenu entry supplies submenu: "ripr.editorContext". The generic wiring test maps every menu entry to entry.command, so the submenu contributes undefined and line 238 rejects it. The dedicated submenu tests pass.

I ran the actual entire manifest suite directly from pinned Git objects with Node v24.19.0 stripTypeScriptTypes, adapting only its three imports to VM bindings and reading the manifest/README/docs from the same revision. No dependency installation, extension build, VS Code host, or CI rerun was used. This isolates the assertion; it is not a replacement claim for full E2E qualification.

Exact revision Manifest suite Native exit
45d0e44632de94e22d95add6f23e172b821ba932 (before submenu) 6 pass, 0 fail 0
a1ea790e923ae6036efdd9457ffc16ea2ad93348 (#8280 landed) 6 pass, same 1 failure 1
f3fa41d265e1fb51f280d6d8d5f0c4967c362025 (fixture patch parent) 6 pass, same 1 failure 1
d22644616d3879af44450ad46f137d118ebf0079 (fixture patch landed) 6 pass, same 1 failure 1
faf7ca01b0a3363f0d4ca676b5f33eaf6433c5ca (current main) 6 pass, same 1 failure 1

All four post-submenu revisions have identical manifest blob 5b55606b3c6783e75ee3201b1a7db6a4d4532486 and test blob bc6fb2b47e256b932feec25f884dd6609a1f28cc. Thus this failure is inherited across #8287: its four-file Rust test-fixture patch changes neither input, and the assertion already fails on its exact parent. Five local executions took 675 ms total inside the harness; peak RSS was 46,180 KiB. The raw hosted job log and reproducible harness/receipts are retained in /workspace/scratch/3742-gate-corpus-proof/postmerge-* and repro-command-menus.cjs.

Reproduce the landed snapshot in this workspace: node --max-old-space-size=128 /workspace/scratch/3742-gate-corpus-proof/repro-command-menus.cjs d22644616d3879af44450ad46f137d118ebf0079 (expected exit 1). Replace the SHA with 45d0e44632de94e22d95add6f23e172b821ba932 for the pre-submenu control (expected exit 0).

Recommended bounded acceptance for the existing owner: preserve the submenu UX and language guards; make the wiring invariant understand command versus submenu entries; continue rejecting unknown command/keybinding IDs and unknown submenu IDs. Refute the repair by separately substituting an unregistered command and an unregistered submenu, then run the focused manifest suite before qualified E2E. No product-menu regression has been established by this failing assertion.

The same native run's Rust-only and Perl/release-proof jobs passed. This does not establish whole-main green; Analytics run 38993677307 was still running at the parent handoff and has not been rechecked here. Existing GitHub search 403 holds remain in force, so I have not claimed an exhaustive absence of another repair and am routing evidence to the known originating owner instead of creating a new issue or writer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ux(vscode): editor context menu shows eight contiguous ripr entries, three near-identical clipboard commands

1 participant