285. The site's trace viewer links back to the site (2026-11-22)
- Decision. The trace viewer on cp-lang.org (
/trace.html) is the debugger'stools/trace/index.htmlwithdata-context="site", a brand that links to/, and the viewer's own site nav pointed at Home, Learn, Docs and Playground. The site applies this at build time inweb/scripts/gen-debug.mjs; the tools file is unchanged, and exported traces still reset to standalone. - Why. The playground's Trace button opens the viewer in a new tab, and that tab had no way back to the site. The viewer already had a site-nav slot for the old
site/bundle, so the site only fills it in. - Reverse. Drop the rewrite in
web/scripts/gen-debug.mjsand write the viewer unchanged.