Skip to content

fix(testing): stop the threads preview importing the removed Boat notice - #81

Merged
zereight merged 1 commit into
mainfrom
fix/threads-preview-boat-import
Dec 2, 2026
Merged

zereight merged 1 commit into
mainfrom
fix/threads-preview-boat-import

Conversation

@zereight

@zereight zereight commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

What changed

scripts/testing/threads-preview.tsx no longer imports BOAT_OFFER_NOTICE, and no longer has the line that marked that notice as seen (?boatOffer). Two lines, test preview only; no product code changes.

Why

The renderer smoke (control-omb ui, Ubuntu 24.04) job has never passed on main. Of the 64 completed main CI runs (47 pushes and 17 nightly runs, 2026-11-14 to 2026-12-01), it failed in 35, was skipped in 27 (2026-11-22 14:04Z to 2026-11-28 03:20Z) and was not part of 2. The latest run, 46698074578, fails 10 of its 12 files with errors such as no element is named "Message Pepper" and the room's sidebar row did not happen within 30000ms. The first run, 43559151244 (915596c, 2026-11-14), failed 12 of 13; one of those, browser-evidence, failed on a different assertion (expected +0 to be 1).

All 10 have one cause. src/lib/notices.ts no longer exports BOAT_OFFER_NOTICE, so the browser refuses the preview module and /__threads.html renders nothing:

SyntaxError: The requested module '/src/lib/notices.ts' does not provide an export named 'BOAT_OFFER_NOTICE'

In run 46698074578, the two passing files (browser-evidence, browser-fill) do not open the renderer.

How it was verified

Branch from main 5ac2194, macOS, Node v26 with NODE_OPTIONS=--no-experimental-webstorage (CI uses Node 24). The isolated fixture is node --experimental-strip-types scripts/control-omb.ts ui launch; the probes are scripts/control-omb.ts ui eval|snapshot|screenshot against it.

Before shows an empty page and a module SyntaxError; after shows Pepper's chat with its message box, and the renderer smoke files pass.

check Before (main 5ac2194) After (this branch)
#root child elements on /__threads.html 0 1
import('/scripts/testing/threads-preview.tsx') in the page SyntaxError: … does not provide an export named 'BOAT_OFFER_NOTICE' loaded
textbox "Message Pepper" in the snapshot none present
OMB_UI_E2E=1 pnpm exec vitest run scripts/testing/control-omb-ui.e2e.test.ts 3 failed (3): no element is named "Message Pepper", "You", "Claude Sonnet 5", the same as CI passes as part of the next row
the 12 files of the CI ui-smoke step, same command line as .github/workflows/ci.yml 10 failed in CI run 46698074578 Test Files 12 passed (12), Tests 20 passed (20), 214 s

oxlint scripts/testing/threads-preview.tsx exits 0. pnpm typecheck does not cover scripts/, so it says nothing about this file.

This PR's CI

Run 46788880591, read at 2026-12-02 10:50 KST:

  • renderer smoke (control-omb ui, Ubuntu 24.04) passes on Ubuntu: Test Files 12 passed (12), Tests 20 passed (20).
  • The failing jobs come from elsewhere, not this one-file change:
    • package + smoke: DEB desktop entry is missing "Name=OpenMyBot". The nightly main run 46621767146 and feat(guardrails): add a log mode that records matching calls without blocking them #80's run 46711138086 fail with the same error.
    • relay typecheck + tests + fuzz + audit: pnpm audit reports GHSA-37g9-w4hg-h9qr (ws >=8.0.0 <8.23.0) against ws 8.22.0 in relay/pnpm-lock.yaml, which has not changed since 2026-11-11. This PR does not touch relay/. main pushes skip this job; the nightly run 46621767146 passed the audit and failed later in pnpm test.
    • behavior evals: the judge prompt checksum (open-ended-v1.md), failing on main too.
    • vitest shards 2 and 3: 7 files (CloudAccountSettings, BotThreads, App.cloud-add-web, BotApiCard.dom, touch-actions, color-utilities, evals/live/live-suite), all already failing on main. Shards 1 and 4–8 were still running.

Screenshots

Before (main): /__threads.html is blank.

before

After: Pepper's chat with Message Pepper.

after

Not covered

  • 21 e2e files outside the CI step load this preview, by a text search: 16 spawn control-omb ui launch with no --entry, which defaults to it (scripts/testing/control-omb-ui.ts:437), and 5 mount it by path (automations-journey, cline-ui, team-conversation-share, team-private-default, team-side-switch). verify-threads.ts, verify-routines.ts and verify-automation-reports.ts load it too. None of them could have passed while the module failed to load (inferred, not run on main). The 5 that mount it by path were run locally with this fix: 15 of their 21 tests pass and 6 fail:
    • cline-ui: the agent-browser session socket path is 118 bytes against a 103-byte limit, because this checkout's path is long. This is a local environment limit.
    • automations-journey (3), team-conversation-share (1), team-private-default (1): Matcher did not succeed in time. Not investigated here.
    • The 16 ui launch files and the verify scripts were not run.
  • Other main CI failures (vitest shards, behavior evals) have separate causes and are not touched.

Checklist

  • pnpm typecheck and pnpm test pass locally: not run in full. The 12 renderer smoke files pass, and typecheck does not cover scripts/.
  • Server behavior changes come with tests: no server change
  • No dist-server/ edits
  • macOS-only code is platform-gated: none added
  • No secrets in logs, responses, events, or argv

scripts/testing/threads-preview.tsx imported BOAT_OFFER_NOTICE, which
src/lib/notices.ts no longer exports since the fork removed Boat's offer
(#3, 49a6b94). The import came in with upstream 9432243 and merged
without a conflict in #26 (915596c). The browser refuses the module, the
preview's #root stays empty, and every renderer smoke test that opens
/__threads.html fails to find its first element.

Drop the import and the line that marked the notice as seen, as upstream
did in 32a7890. scripts/ is outside every tsconfig, so typecheck could
not catch the missing export.
@zereight
zereight merged commit 8c67e9d into main Dec 2, 2026
13 of 25 checks passed
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