Fork of backnotprop/plannotator with reduced surface area

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.


Author Dillon Mulroy Committer GitHub Date Commit Parent 29f09d32
+40 -2
2 changed files
+40 -2
2 changed files