Skip to content

A framework TypeScript edit reaches pages without a build #4112

Closed

Description

@max-sixty

An edit to browser/framework/*.ts doesn't reach any page until someone runs the build, and nothing says so. It's the same failure #3886 removes for stylesheets.

Reproduced. I appended an export to browser/framework/presentation.ts and read the serving runtime before and after. leaf.runtime_selection.read_runtime() kept the same identity (49f65a6da1771589) and kept serving the kernel, and the served presentation.js lacked the export. The kernel's freshness check hashes only .js files, so a .ts edit never makes it stale. pnpm run check catches the mismatch at landing, not while someone is developing.

Proposal. Write the framework as JavaScript with JSDoc types, which tsc checks with checkJs, as tsconfig.runtime.json already does for browser/runtime/, though without strict. The source would then be what's served, as #3886 makes it for CSS. That deletes the compiled copy in browser/vendor/browser-runtime/ and the kernel's copy of it, about 2,680 lines, along with the TypeScript compile step, its import rewriting and the amaro dependency.

Cost. Rewriting about 570 type-bearing lines of the framework's roughly 2,640, plus domain.ts (188 lines), in JSDoc syntax. This is an estimate from the lines that differ between source and compiled output; nobody has tried the rewrite.

Waits on the user: the framework took its TypeScript form on 22 October, so keeping or reversing that language choice is Max's call.

This was written by Claude Code on behalf of max-sixty

Activity

  1. added
    backlog
    next
    dev-velocity
    waits-on-user
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogdev-velocitynextwaits-on-user

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions