Bind local Plannotator servers to loopback by default (#533)

* Harden review agent job launch endpoints

* Stabilize agent job auth tests

* Drop review agent job token gating

* Align useAgentJobs with upstream formatting

* Allow remote sessions to bind all interfaces
This commit is contained in:
David han (Bart)
2026-04-13 23:00:05 +09:00
committed by GitHub
parent e410ac2568
commit c2dadc9717
7 changed files with 49 additions and 6 deletions
+2 -1
View File
@@ -9,7 +9,7 @@
* PLANNOTATOR_PORT - Fixed port to use (default: random locally, 19432 for remote)
*/
import { isRemoteSession, getServerPort } from "./remote";
import { isRemoteSession, getServerHostname, getServerPort } from "./remote";
import type { Origin } from "@plannotator/shared/agents";
import { type DiffType, type GitContext, runVcsDiff, getVcsFileContentsForDiff, canStageFiles, stageFile, unstageFile, resolveVcsCwd, validateFilePath } from "./vcs";
import { getRepoInfo } from "./repo";
@@ -348,6 +348,7 @@ export async function startReviewServer(
for (let attempt = 1; attempt <= MAX_RETRIES; attempt++) {
try {
server = Bun.serve({
hostname: getServerHostname(),
port: configuredPort,
async fetch(req, server) {