feat(webui): always show right sidebar and implement left vertical carousel

This commit is contained in:
yiling
2026-06-15 15:37:10 +08:00
parent d8aaed5212
commit 68a1714e7f
5 changed files with 401 additions and 299 deletions
+7 -5
View File
@@ -203,11 +203,13 @@ describe('Sandbox Network isolation integration', () => {
// Mock SandboxManager.initialize to behave like a process-global singleton
let registeredCallback: SandboxAskCallback | null = null
const initializeSpy = vi.spyOn(SandboxManager, 'initialize').mockImplementation(async (config, cb) => {
if (!registeredCallback) {
registeredCallback = cb || null
}
})
const initializeSpy = vi
.spyOn(SandboxManager, 'initialize')
.mockImplementation(async (config, cb) => {
if (!registeredCallback) {
registeredCallback = cb || null
}
})
const resetSpy = vi.spyOn(SandboxManager, 'reset').mockImplementation(async () => {
// In the real SandboxManager, reset clears the global initialization promise and servers,
// which allows subsequent initialize calls to register a new callback.