Skip to content

Fix broken root npm test chain (renderer parse error, electron failures, && chaining) #790

Closed

Description

@currentbits

Root npm test is broken by pre-existing failures:

  1. Renderer suite: ERR_INVALID_TYPESCRIPT_SYNTAX at src/devCoder.ts:3644 — malformed spread ternary in thread create()
  2. electron suite: 2 failures in crew-notices and permission-modes suites
  3. Root test script uses && chaining so one suite's failure silently skips core/memory/stats

Fix all three, run each suite individually to verify green.

Activity

  1. added
    plan:doing
    plan:done
    and removed
    plan:doing
    on Aug 29, 2026
  2. currentbits commented on Aug 29, 2026

    @currentbits
    OwnerAuthor

    Fixed. Root causes: (1) malformed spread ternary + duplicate keys from merge damage in devCoder.ts/useCoder.ts killed the renderer suite under Node 22 type-stripping; (2) crew-notices driveUntil was a synchronous pump starved by startRun's new async bootstrap-note prefetch — now yields via setImmediate; (3) permission-modes opencode expectation was stale after --thinking landed in #751; (4) ThreadView summary mode (#461) was dead because collapseTimeline groups bypass the focus-fold message branch — summary mode now skips grouping. Root npm test now runs every suite via scripts/test-all.js and reports all failures. Verified: core 38, renderer 1853, electron 2941, memory 226, stats 25 — all green; typecheck clean.

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

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions