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:
@@ -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,
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user