Commit 48f325a
authored
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.1 parent 29f09d3 commit 48f325a
2 files changed
Lines changed: 40 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| 294 | + | |
294 | 295 | | |
295 | 296 | | |
296 | 297 | | |
| |||
340 | 341 | | |
341 | 342 | | |
342 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
343 | 347 | | |
344 | 348 | | |
345 | 349 | | |
| |||
394 | 398 | | |
395 | 399 | | |
396 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
397 | 404 | | |
398 | 405 | | |
399 | 406 | | |
| |||
497 | 504 | | |
498 | 505 | | |
499 | 506 | | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
500 | 510 | | |
501 | 511 | | |
502 | 512 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
617 | 620 | | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
618 | 628 | | |
619 | 629 | | |
620 | 630 | | |
| |||
659 | 669 | | |
660 | 670 | | |
661 | 671 | | |
662 | | - | |
| 672 | + | |
663 | 673 | | |
664 | 674 | | |
665 | 675 | | |
| |||
751 | 761 | | |
752 | 762 | | |
753 | 763 | | |
| 764 | + | |
754 | 765 | | |
755 | 766 | | |
756 | 767 | | |
| |||
763 | 774 | | |
764 | 775 | | |
765 | 776 | | |
| 777 | + | |
| 778 | + | |
766 | 779 | | |
767 | 780 | | |
768 | 781 | | |
| |||
791 | 804 | | |
792 | 805 | | |
793 | 806 | | |
| 807 | + | |
794 | 808 | | |
795 | 809 | | |
796 | 810 | | |
| |||
991 | 1005 | | |
992 | 1006 | | |
993 | 1007 | | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
994 | 1012 | | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
995 | 1020 | | |
996 | 1021 | | |
997 | 1022 | | |
| |||
1004 | 1029 | | |
1005 | 1030 | | |
1006 | 1031 | | |
1007 | | - | |
| 1032 | + | |
1008 | 1033 | | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
1009 | 1037 | | |
1010 | 1038 | | |
1011 | 1039 | | |
| |||
0 commit comments