mirror of
https://github.com/backnotprop/plannotator.git
synced 2026-09-14 14:17:26 +08:00
48f325aaa4
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.