fix: pass appBaseUrl to generateLocalPairingOffer in daemon pair RPC (#1187)

Threads the configured app.baseUrl through daemonRuntimeConfig to generateLocalPairingOffer in the daemon pair RPC path, so `paseo daemon pair` honors a custom app.baseUrl when the daemon is already running.

Fixes #1494
Fixes #1186
This commit is contained in:
范东辉
2026-06-15 00:06:52 +08:00
committed by GitHub
parent a6ec352f07
commit 43e17c1e7c
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -1124,6 +1124,7 @@ export async function createPaseoDaemon(
{ {
listen: formatListenTarget(boundListenTarget ?? listenTarget), listen: formatListenTarget(boundListenTarget ?? listenTarget),
worktreesRoot: config.worktreesRoot, worktreesRoot: config.worktreesRoot,
appBaseUrl: config.appBaseUrl,
relay: { relay: {
enabled: relayEnabled, enabled: relayEnabled,
endpoint: relayEndpoint, endpoint: relayEndpoint,
+2
View File
@@ -624,6 +624,7 @@ export interface SessionOptions {
daemonVersion?: string; daemonVersion?: string;
daemonRuntimeConfig?: { daemonRuntimeConfig?: {
listen: string | null; listen: string | null;
appBaseUrl?: string;
relay: { relay: {
enabled: boolean; enabled: boolean;
endpoint: string; endpoint: string;
@@ -3872,6 +3873,7 @@ export class Session {
relayPublicEndpoint: relay?.publicEndpoint, relayPublicEndpoint: relay?.publicEndpoint,
relayUseTls: relay?.useTls, relayUseTls: relay?.useTls,
relayPublicUseTls: relay?.publicUseTls, relayPublicUseTls: relay?.publicUseTls,
appBaseUrl: this.daemonRuntimeConfig?.appBaseUrl,
includeQr: true, includeQr: true,
logger: this.sessionLogger, logger: this.sessionLogger,
}); });
@@ -352,6 +352,7 @@ export class VoiceAssistantWebSocketServer {
private readonly daemonRuntimeConfig: private readonly daemonRuntimeConfig:
| { | {
listen: string | null; listen: string | null;
appBaseUrl?: string;
relay: { relay: {
enabled: boolean; enabled: boolean;
endpoint: string; endpoint: string;
@@ -447,6 +448,7 @@ export class VoiceAssistantWebSocketServer {
daemonRuntimeConfig?: { daemonRuntimeConfig?: {
listen: string | null; listen: string | null;
worktreesRoot?: string; worktreesRoot?: string;
appBaseUrl?: string;
relay: { relay: {
enabled: boolean; enabled: boolean;
endpoint: string; endpoint: string;