Skip to content

Dev-env/test debt: Node-26 jsonwebtoken drift, pre-existing V2PodChat TS error, flaky service-tier timeout #649

Description

@lilyshen0722

Three known irritants that cost time in every session (none block CI, which runs Node 20):

  1. Node 26 local drift: require('jsonwebtoken') throws (SlowBuffer/prototype) at suite load, blocking several backend suites AND all CLI/MCP .mjs jest suites locally (MODULE_NOT_FOUND variant). Workaround that works: mock jsonwebtoken in jest (proven in the 2026-07-03 hardening sprint). Options: pin a dev Node via .nvmrc/volta, or apply the jwt mock globally in test setup.
  2. Pre-existing TS error V2PodChat.tsx(~955): TS2322 — (override?: string) => Promise<void> not assignable to MouseEventHandler — exists on main, surfaced in every typecheck; 1-line fix (onClick={() => handleSend()}).
  3. Flaky service-tier E2E (uniform-10s-timeout pattern, noted 2026-06-01): intermittently fails the 200-test tier; currently handled by rerun. Deserves a real timeout bump or wait-for-condition.

All three are documented in the session memory; this issue makes them visible in the tracker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions