Skip to content

Make native Insert-menu readiness checks complete without an animation-frame stall #88

Closed

Description

@BinaryOutlook

The installed-VSIX Insert-menu suite stalls before its first insertion scenario, leaving that capability unverified in the audited local environment. Make readiness detection bounded and observable so the suite reaches real menu actions or reports a useful failure.

Priority: P2 / Medium — test infrastructure and coverage. No broken Insert command was demonstrated. Related feature work is tracked by the closed #25; this issue concerns its test harness.

Reproduction and findings

Follow the guarded native setup with the identified package, a fresh owned profile/workspace, actual converters, and a free debugging port. Then run from the repository root, using the same setup options:

node test/native/export-smoke.cjs run --suite insert-menu

Observed: CDP watchdog expired: Runtime.evaluate before any successful Insert-menu scenario receipt. Mode switching and target selection completed. A second diagnostic with a bounded 10-second wait isolated the unresolved expression to two nested requestAnimationFrame callbacks in openInsert, before menu activation.

Eight other focused native suites completed with 43 successful scenarios, and the full browser suite passed. Those results do not fill this native coverage gap. Existing hosted CI success also does not explain the local stall.

Scope and acceptance criteria

  • Determine why readiness does not settle in the affected native/CDP context; do not assume a production menu failure or a proven scheduler cause.
  • Use a meaningful bounded readiness condition and preserve useful diagnostics for timeout/focus/frame state.
  • Run the complete native Insert-menu suite with actual interactions and zero hidden retries, retaining scenario receipts.
  • Keep minimum-supported VS Code and current supported native lanes working; avoid replacing the condition with an unexplained fixed sleep.

Source evidence

The wait is at openInsert (the animation-frame expression is line 19 in this revision). Retain the original failure as an unresolved harness result until a fresh run verifies the correction.

Build identity and verification boundary

Recorded during the 2026-09-27 audit of #80 at ffbdad524d393aa783760f4829cb995d8b9d6405 (package version 0.4.0), using Node 24.21.0 on macOS ARM64. The tested product source was unmodified. This is an unreleased development snapshot.

The native run used VS Code 1.138.0 and the clean development VSIX with SHA-256 b813d91c719b8530ea2bbce18dcf924fd605ed7fc0f689d2b5a2f1305d3092fe in an isolated owned profile. This report concerns a harness timeout; it does not establish a broken Insert command.

Reproduce and validate changes using the checkout's build guide and testing guide. Keep evidence synthetic and sanitized.

Activity

  1. added
    bug
    on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions