Skip to content

id(web): tsc --noEmit red on main — image-upload.test.ts:423 Plugin<any> | null not assignable #3249

Closed

Description

@dezren39

Problem

bunx tsc --noEmit in pkgs/id/web fails on current main with one error:

src/image-upload.test.ts(423,7): error TS2345: Argument of type 'Plugin<any> | null' is not assignable to parameter of type 'Plugin<any>'.
  Type 'null' is not assignable to type 'Plugin<any>'.

Evidence

Found 2026-10-31 by repo-queue-worker lane E while verifying the #1463 fix (task 4739, disjoint files). Reproduced on a pristine checkout of main (8f24c7db5) in the same worktree with all local changes stashed: identical single error, exit 2. With the #1463 change applied, tsc output is identical — the error is pre-existing and unrelated. The web unit suite itself passes this file's tests; only the typecheck is red, which means the tsc --noEmit gate other id(web) tasks rely on currently cannot go green.

Acceptance

  • cd pkgs/id/web && bunx tsc --noEmit exits 0 on main (fix the nullability at image-upload.test.ts:423 or the callee's signature, whichever is intended)
  • bunx vitest run src/image-upload.test.ts still passes

Filed by repo-queue-worker lane E, 2026-10-31.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/lowNice to have; do when convenient
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/xsTrivial: expected under 30 minutes of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 31, 2026
  2. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: Found while verifying PR #3251 (the #1463 collab fix, merged) — disjoint files; the error reproduces identically on pristine main 8f24c7db5.

    Notes: Verified live at intake: the issue's evidence is a clean single-error reproduction (exit 2, one TS2345 at image-upload.test.ts:423) with local changes stashed, and the web unit suite passes the same file — only the typecheck gate is red. The body already carries acceptance criteria, so no body change was made. No merged PR fixes this (checked at intake).

    Risks: While tsc --noEmit is red on main, every id(web) task loses its typecheck gate — new type errors can hide behind this known one.

    Suggested approach: Fix the nullability at the test's call site or the callee signature (whichever the Plugin type intends), keeping the vitest file green per the body's acceptance list.

    — fleet monitor intake, 2026-10-31 fleet-monitor run (19:12 CDT)

  3. added
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    and removed on Nov 3, 2026
  4. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

    • Agent: queue worker (repo-worker-code), lane 7b47536b (openchamber scheduled lane)
    • Session / ID: task 8227
    • Found via: queue claim (coverage triage)
    • Task: still live at main 8912c837e — cd pkgs/id/web && bunx tsc --noEmit prints exactly one error (line moved 423 → 428): image-upload.test.ts(428,38): TS2345 Plugin<any> | null not assignable to Plugin<any>. The paste() helper passes the nullable plugin binding as the thisArg of handlePaste!.call(...), so the accepted fix is the test-helper nullability (plugin!), not a runtime change; bunx vitest run src/image-upload.test.ts remains green either way.
    • Expectation: follow-up fix enqueued as task 8459 into repo-health-code-pilot (small_fix, 45 min box): tsc must exit 0 with the vitest file still passing. Nothing blocked or escalated.
    • Links: task 8227 → follow-up 8459, main 8912c837e
  5. added
    work/assignedQueue worker lifecycle state
    and removed on Nov 3, 2026
  6. 6 remaining items

  7. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

    State: implementation complete, verified locally, CI pending.

    • Fix is live on the PR: handlePaste!.call(plugin!, …) (one line, pkgs/id/web/src/image-upload.test.ts).
    • cd pkgs/id/web && ./node_modules/.bin/tsc --noEmit → exit 0 (was exit 2, the only error in the project).
    • cd pkgs/id/web && ./node_modules/.bin/vitest run src/image-upload.test.ts → 47 passed.
    • CI: basic: production line limit (2500) was still queued (runner backlog) after a 5-minute poll; no failing check, CodeRabbit skipped.

    Resume condition: PR #5013's check green or the standing-criteria merge evaluation, then gh pr merge 5013 --merge. Nothing else is outstanding — no follow-up work, no other file touched.

  8. added
    queue/claimedQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 3, 2026
  9. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · resumed → merging

    Resume verification on this run (fresh, laptop, worktree ~/git/fleet/8459-3249-image-upload-plugin-null):

    • cd pkgs/id/web && bunx tsc --noEmit → exit 0.
    • cd pkgs/id/web && bunx vitest run src/image-upload.test.ts → 47 passed / 1 file.
    • Diff unchanged and minimal: one line, handlePaste!.call(plugin!, …) in the paste() helper.
    • PR fix(id/web): assert plugin non-null in image-upload paste helper (#3249) #5013: OPEN, not draft, no labels (not held, not Drew-owned), merge state UNSTABLE only because basic: production line limit (2500) has been queued 30+ minutes on a runner backlog — a bash-only guard that cannot be affected by a .ts test file, and the same check passed on this PR's previous head.
    • CodeRabbit: skipping.
  10. added a commit that references this issue on Nov 3, 2026
  11. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (merged)

    • Agent: queue worker (repo-worker-code), lane 8ac61616-3815-4e7b-b33d-840a3829154a (OpenChamber scheduled lane)
    • Session / ID: task 8459 (queue repo-health-code-pilot) — complete, outcome fixed_merged
    • Found via: resume of a parked claim
    • Task: id(web) tsc --noEmit TS2345 in image-upload.test.ts — fixed, merged, verified on main.
    • Expectation: nothing outstanding; no follow-up task needed.
    • Links: PR fix(id/web): assert plugin non-null in image-upload paste helper (#3249) #5013 · merge ff52c869eb9b29463ec50b7f75cec0b55e301afd · branch queue/8459-3249-image-upload-plugin-null

    Merged and verified on main:

    • PR fix(id/web): assert plugin non-null in image-upload paste helper (#3249) #5013 merged as ff52c869 (2026-11-03T16:46:35Z); origin/main:pkgs/id/web/src/image-upload.test.ts:428 now reads handlePaste!.call(plugin!, …).
    • Acceptance gates before merge, fresh on the laptop worktree: bunx tsc --noEmit → exit 0; bunx vitest run src/image-upload.test.ts → 47/47 passed.
    • CI note for the record: the PR's only PR-tier check (basic: production line limit (2500), a bash-only guard over pkgs/** .rs line counts) sat queued for ~35 minutes on a runner backlog and never started. It cannot be affected by a one-line .ts test-file diff, so the merge went ahead under the standing criteria (diff matches intent, targeted tests verified, no held/Drew-owned restriction).
    • Issue closed as completed; in-flight labels (work/assigned, queue/claimed, status/in-progress) removed.
  12. developing-today commented on Nov 3, 2026

    @developing-today
    Contributor

    agent-note:v1
    state: triaged (coverage pass)
    Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 30 (priority/low). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
    Found via: coverage pass 2026-11-03

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

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/lowNice to have; do when convenientqueue/queuedHas a queued queue tasksource/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions