Skip to content

base red: the no-flicker test type-checks (unused Box, shadowed Event; from #33526) - #33545

Merged
lawrencecchen merged 2 commits into
feat-cmux-nextfrom
fix/base-red-flicker-test-box
Nov 3, 2026
Merged

lawrencecchen merged 2 commits into
feat-cmux-nextfrom
fix/base-red-flicker-test-box

Conversation

@lawrencecchen

@lawrencecchen lawrencecchen commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Tip web-lint red since b695980 (STATUS 8746), from #33526 (webviews/test/agent-pane-streaming-no-flicker.test.ts):

  • eslint(no-unused-vars): the outer type Box is never used. Each page.evaluate body declares its own Box (code there runs in the page and cannot see outer types). This PR removes the outer one.
  • 7 TypeScript errors (TS2339/TS2352/TS2769) in the page listener: the file declares its own type Event (the acpmux event, line 74), which shadows the DOM Event in onAnimation. The parameter is now globalThis.Event.

No test logic changes.

Verification

  • bunx vp lint test/agent-pane-streaming-no-flicker.test.ts in webviews/: 0 findings (base: the unused-var warning and 7 TS errors).
  • scripts/web-lint.sh: passed. python3 scripts/cmux-next/prepush-gate.py: no new violations.

Observed / Not run

  • Observed: the commands above, on this VM.
  • Not run: the browser test itself (a webviews browser lane runs only in CI or a cloud VM, never on a fleet Mac).

Changelog

none


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Fixes type-checking and lint errors in the no-flicker agent pane test so the webviews lint passes on this base.

  • Removes the unused outer Box type; each page.evaluate body declares its own.
  • Types the onAnimation parameter as globalThis.Event, since the file's own Event type (the acpmux event) shadowed the DOM Event and caused 7 TypeScript errors.

No test logic changes.

Written for commit 8440e0b. Summary will update on new commits.

View guided diff Turn on auto-fix

…globalThis.Event (the file's own Event type shadowed it; from #33526)
@lawrencecchen lawrencecchen added the risk:low Risk tier (docs/ci/risk-tiers.md) label Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

cmux status (one comment, edited in place; each line is updated by the job that owns it)

Review 8440e0b: HQ feed card · gallery before/after runs · checks

App of this head (app.zip, kept 1 day)

gh workflow run reload-build.yml -R manaflow-ai/cmux --ref feat-cmux-next -f tag=pr33545 -f ref=fix/base-red-flicker-test-box -f platform=macos -f backend_mode=local

Shipped in:

@lawrencecchen

Copy link
Copy Markdown
Contributor Author

Review (independent-subagent): SHIP at 8440e0b

Checked on a worktree of the head (base 0d430df):

  • Outer type Box is unused. Its only other names are inside the two page.evaluate bodies (lines 236 and 325), and each declares its own Box.
  • globalThis.Event is correct. type Event at line 74 (the acpmux event) is in the requireBrowserLane callback that encloses the page.evaluate body, so a bare Event resolved to it. webviews/tsconfig.json includes test with lib: ["DOM", ...], so globalThis.Event is the DOM Event. .target and .type resolve, the AnimationEvent / TransitionEvent casts are valid, and add/removeEventListener(kind, onAnimation, true) match an overload.
  • No runtime change. Only type annotations change. Bun strips them, and Playwright serializes the page.evaluate function with toString(), so the page gets the same JS.
  • bunx vp lint test/agent-pane-streaming-no-flicker.test.ts: head gives 0 findings, exit 0. Base gives 1 warning (no-unused-vars on Box, 222:8) and 7 TS errors (TS2339 / TS2352 / TS2769, lines 287 to 312), exit 1. bunx vp fmt --check on the file passes at head.

Not run: the browser lane test itself (it needs the Playwright browser lane). It is not necessary for a type-only change.

@lawrencecchen lawrencecchen added the ready-to-land Reviewed at this head; next-autoland merges it into feat-cmux-next when its only reds are base reds label Nov 3, 2026
@lawrencecchen
lawrencecchen merged commit 5493a4c into feat-cmux-next Nov 3, 2026
210 of 229 checks passed
@lawrencecchen
lawrencecchen deleted the fix/base-red-flicker-test-box branch November 3, 2026 10:11
teamleaderleo pushed a commit that referenced this pull request Nov 3, 2026
…; from #33526) (#33545)

* base red: the no-flicker test drops its unused outer Box type (each page.evaluate body declares its own; from #33526)

* base red: the no-flicker test's page listener types its parameter as globalThis.Event (the file's own Event type shadowed it; from #33526)
Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>

Agent-Session: https://cmux.com/deeplink/agent?id=aid-d60a77e16a11b66e2ecf
teamleaderleo added a commit that referenced this pull request Nov 3, 2026
* perf: batch transcript row measurements after content layout

Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
Agent-Session: https://cmux.com/deeplink/agent?id=aid-fc0fa4c5ed2467ab49a6

* base red: the no-flicker test type-checks (unused Box, shadowed Event; from #33526) (#33545)

* base red: the no-flicker test drops its unused outer Box type (each page.evaluate body declares its own; from #33526)

* base red: the no-flicker test's page listener types its parameter as globalThis.Event (the file's own Event type shadowed it; from #33526)
Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>

Agent-Session: https://cmux.com/deeplink/agent?id=aid-d60a77e16a11b66e2ecf

---------

Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
Co-authored-by: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com>

This branch was previously deployed

3 inactive deployments
artifacts — 8440e0bc Deployed Nov 3, 2026 by lawrencecchen via publish tree-addressed cmux-tui #105268
sentry-dsyms — 8440e0bc Deployed Nov 3, 2026 by lawrencecchen via upload cmux-tui dSYMs to Sentry #105268
ci-routing-agent — 8440e0bc Deployed Nov 3, 2026 by lawrencecchen via cmux-tui tree preflight #105268
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-land Reviewed at this head; next-autoland merges it into feat-cmux-next when its only reds are base reds risk:low Risk tier (docs/ci/risk-tiers.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant