fix: improve plugins functionality with server management

This commit is contained in:
2026-04-29 20:33:54 +02:00
parent b8f6d58d99
commit fa2cca6fa4
82 changed files with 1708 additions and 303 deletions

View File

@@ -196,9 +196,9 @@ export async function startLocalApiServer(settings: LocalApiSettings): Promise<S
currentError = null;
currentBindHost = pickBindHost(settings);
currentBindPort = settings.port;
const requestSettings = activeSettings;
const httpServer = createServer((req, res) => {
void handleRequest(req, res, activeSettings!).catch((error) => {
void handleRequest(req, res, requestSettings).catch((error) => {
console.error('[LocalApi] Unhandled request error:', error);
try {