fix: Bad Request: No valid session ID provided (#405) (#427)

This commit is contained in:
cheestard
2025-11-19 18:17:37 +08:00
committed by GitHub
parent 07adeab036
commit 1869f283ba
12 changed files with 459 additions and 38 deletions

View File

@@ -45,6 +45,7 @@ describe('OAuth Service', () => {
tokenUrl: 'http://auth.example.com/token',
},
},
enableSessionRebuild: false,
},
});
@@ -55,7 +56,9 @@ describe('OAuth Service', () => {
it('should not initialize OAuth when not configured', () => {
mockLoadSettings.mockReturnValue({
mcpServers: {},
systemConfig: {},
systemConfig: {
enableSessionRebuild: false,
},
});
initOAuthProvider();
@@ -80,6 +83,7 @@ describe('OAuth Service', () => {
},
],
},
enableSessionRebuild: false,
},
});