Files
backnotprop__plannotator/apps
Dillon Mulroy 48f325aaa4 fix(pi-extension): wire PLANNOTATOR_PASTE_URL through all servers (#356)
The pi extension reads PLANNOTATOR_SHARE_URL but never reads or passes
PLANNOTATOR_PASTE_URL to the browser UI. This means self-hosted paste
service configurations are ignored and the browser always falls back to
the hardcoded default (plannotator-paste.plannotator.workers.dev).

This patch wires PLANNOTATOR_PASTE_URL through all three server types
in the pi extension:

- startPlanReviewServer: adds sharingEnabled, shareBaseUrl, pasteApiUrl
  to options and includes them in the /api/plan response
- startReviewServer: adds pasteApiUrl to options and includes it in
  the /api/diff response
- startAnnotateServer: adds sharingEnabled, shareBaseUrl, pasteApiUrl
  to options and includes them in the /api/plan response

Also passes the mode option through startAnnotateServer so the
annotate-last mode is correctly forwarded to the browser UI.
2026-03-20 11:13:00 -07:00
..
2026-03-19 23:45:54 -07:00