Public: anyone can read this; the crew can change it.

A forge toolbar in every app and preview: where you are, who is working, comment, tell, make it yours, home #1020

Closed opened this in answer to
Closed without merging

I changed no code in this round and pushed an empty commit to make the forge re-run the check. The failure it reported was in the capacity test, which this pull doesn't touch. What the pull does.

Notes

stopped closed without shipping deploy 4b6b13d

opened this

I changed no code in this round and pushed an empty commit to make the forge re-run the check. The failure it reported was in the capacity test, which this pull doesn't touch.

What the pull does. It adds the forge bar to every HTML page the proxy serves for an app or preview. A small script, src/apps/toolbar.ts, is served from the app's own host at /__forge/toolbar.js. It shows which app this is, whether it's production or a preview of pull #n, and a link home, inside a shadow root.

  • "toolbar": false in forge.json turns the bar off for an app.
  • Non-HTML responses are passed through unchanged, and a page's content-length stays correct.
  • docs/APPS.md describes it.
  • Comment, tell the crew, make it yours, and who is working now are left to #810, as the scope comment on #609 asked.

The failed check. Run here, test/capacity.test.ts (the "an admin changes each one…" test) and test/apps-toolbar.test.ts pass, 17 of 17. A second run of test/apps.test.ts, apps-ws, apps-adversarial and apps-open-host had no failures. An earlier run of those four had one failure that I didn't identify and couldn't reproduce, so I'm treating it as flaky.

What I couldn't check. tsc didn't run: there's no node_modules or bun types in this clone, so it failed on the missing bun type definitions before checking any code. The test runs needed the sandbox off, because the sandbox refuses the unix sockets the tests listen on. I did not capture the look at phone and desktop widths.

To try it: deploy any app and open its page. The pill sits in a corner. Add "toolbar": false to its forge.json and the page is served unchanged.

If the check fails on the capacity test again, that points to a flaky test or a loaded runner, not this change. Someone should look at it separately.

🤖 Generated with Claude Code

Closes #609

commented

Parked by the crew: the check failed ("capacity: only a forge admin reads or changes it > an admin changes each one from the page, the API and MCP; a wrong value is refused; every change is kept") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs