feat(FN-3314): align auth route assertion in agents routes test

Test FN-3314 completes its final step by refining an auth route assertion in the agents routes test, ensuring the test accurately validates the expected behavior.

Fusion-Task-Id: FN-3314
This commit is contained in:
Fusion
2026-05-04 14:58:58 -07:00
committed by gsxdsm
parent 3b4bb2d134
commit a66ddf2e7f
4 changed files with 24 additions and 13 deletions

View File

@@ -298,7 +298,7 @@ export function registerSettingsMemoryRoutes(ctx: ApiRoutesContext, deps: Settin
}
const token = generateRemoteToken();
await scopedStore.updateSettings({
await scopedStore.updateGlobalSettings({
remoteAccess: {
...remoteAccess,
tokenStrategy: {
@@ -646,7 +646,7 @@ export function registerSettingsMemoryRoutes(ctx: ApiRoutesContext, deps: Settin
const settings = await scopedStore.getSettings();
const remoteAccess = settings.remoteAccess ?? DEFAULT_GLOBAL_SETTINGS.remoteAccess;
await scopedStore.updateSettings({
await scopedStore.updateGlobalSettings({
remoteAccess: {
...remoteAccess,
activeProvider: provider,
@@ -676,7 +676,7 @@ export function registerSettingsMemoryRoutes(ctx: ApiRoutesContext, deps: Settin
if (provider === "tailscale" && settings.remoteAccess) {
const livePort = req.socket?.localPort;
if (Number.isFinite(livePort) && (livePort ?? 0) > 0 && livePort !== settings.remoteAccess.providers.tailscale.targetPort) {
await scopedStore.updateSettings({
await scopedStore.updateGlobalSettings({
remoteAccess: {
...settings.remoteAccess,
providers: {
@@ -764,7 +764,7 @@ export function registerSettingsMemoryRoutes(ctx: ApiRoutesContext, deps: Settin
}
const token = generateRemoteToken();
await scopedStore.updateSettings({
await scopedStore.updateGlobalSettings({
remoteAccess: {
...remoteAccess,
tokenStrategy: {