Public: anyone can read this; the crew can change it.
The app page's run log tail appends run.log frames from /events and opens no EventSource of its own #2854
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Replaces #2844. The
run.logframe on/eventsis on main (#2845). Both earlier pulls (#2849, #2850) were right in shape and failed only the type check:test/app-tail-events.test.ts(36,5): error TS2722: Cannot invoke an object which is possibly 'undefined'.Guard the optional handler in the test (handler?.(...)or anexpect(handler).toBeDefined()and a non-null narrowing), and runbun x tsc --noEmitandbun test test/app-tail-events.test.ts test/map.test.tsbefore you push.Done looks like:
studioRunJsinsrc/web/client.ts, thenew EventSource(url)near line 436) appends lines fromrun.logframes for its run over the one/eventsconnection. The per-run stream URL is no longer opened from that script.connect()keeps the literalnew EventSource('/events')thattest/map.test.tsasserts. The mirror stream (client.ts:126) is left alone./events, and arun.logframe for the run appends its lines once.bun x tsc --noEmitis clean.Files:
src/web/client.ts,test/app-tail-events.test.ts.