Skip to content

Correct stale comments in the pane split buttons, OSC sanitizer, and relay fixtures; align the PNG decoder's pixel bound; test reading-position messages - #1889

Open
dormouse-bot wants to merge 1 commit into
mainfrom
fix/nightly-stale-comments-2026-11-25
Open

dormouse-bot wants to merge 1 commit into
mainfrom
fix/nightly-stale-comments-2026-11-25

Conversation

@dormouse-bot

Copy link
Copy Markdown
Collaborator

Fixes from tonight's rolling survey: five comments that no longer match the code, one unreachable bound in the PNG decoder that disagreed with the editor's, and unit tests for the reading-position messages in the Tool protocol. Behavior is unchanged on every reachable path. dor-tools-lib and dor-tools-builtin tests and lib's tsc -b pass locally.

  • dor-tools-builtin/viewer/image/png.ts: decodePng declined past its own MAX_PIXELS = 1 << 27 and said "too large to edit", while the editor's bound is MAX_EDIT_PIXELS = 1 << 26 (docs/specs/dor-tools-builtin.md -> "Image editor"). Its only caller, decodeImage, gates on imageEditability first, which reads the same IHDR, so the branch could never fire. The decoder now uses MAX_EDIT_PIXELS, so the backstop and the gate agree.
  • dor-tools-lib/test/protocol.test.mjs: the frame-message test said every frame message carries a dirty state, but view messages don't, and view-read, view-apply, and view were unit-tested only through one happy-path round trip in frame.test.mjs. A new test covers accepting and dropping each kind, rejecting malformed positions, and the Reading position unavailable. fallback. These parsers read messages from an untrusted framed page.
  • PaneActionButtons.tsx: the SplitButtons doc said every header shows them only at its widest tier. The browser header also renders them in its overflow popover (SurfacePaneHeader.tsx, placement === 'popover' || placement === 'full'), as layout.md's table says.
  • osc-sanitize.ts: it cited a heading alert.md doesn't have ("notification protocols"). It now cites "Terminal reports".
  • workspace-control.ts: it cited dor-cli.md -> "dor workspace" for what --auto answers, which that section doesn't state. The comment states the fact itself, so the citation is gone.
  • ScanInvitation.test.tsx: the comment said the fake throws from a track's stop(). It throws from getTracks().
  • relay/test/fixtures.mjs: the header named the config-mapping and entrypoint suites as its consumers. Neither imports it. The actual consumers are the static-file and setup-password-store suites.

…relay fixtures; align the PNG decoder's pixel bound; test reading-position messages
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 03b9e02
Status: ✅  Deploy successful!
Preview URL: https://3a9c8109.mouseterm.pages.dev
Branch Preview URL: https://fix-nightly-stale-comments-2-szmz.mouseterm.pages.dev

View logs

This branch was successfully deployed

1 active deployment
dormouse/preview — 03b9e025 Deployed Nov 25, 2026 by argos-ci[bot]
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.

1 participant