合并 AI 设计多会话客户端
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

整合 Enter 发送与多会话交互,保留服务端持久 Conversation Session,并补齐迁移、回归、Electron E2E 与 canonical 文档。
This commit is contained in:
2026-08-11 16:18:52 +08:00
32 changed files with 2417 additions and 804 deletions

View File

@@ -32,10 +32,6 @@ import { logger } from '../utils/logger';
import { warmupNetworkOptimization } from '../utils/uv-env';
import { resolvePythonRuntime, resolveUvRuntime } from '../utils/python-runtime';
import { initTelemetry } from '../utils/telemetry';
import {
getOrCreateAgentGatewaySessionClientId,
rotateAgentGatewaySessionClientId,
} from '../utils/store';
import { isQuitting, setQuitting } from './app-state';
import { applyProxySettings } from './proxy';
@@ -456,12 +452,7 @@ async function initialize(): Promise<void> {
});
const imageWorkspace = localImageWorkspaceEnabled
? new LocalImageWorkspace({ userDataDir: app.getPath('userData') })
: new WorksSquareDesignWorkspace({
eventSessionClientIdStore: {
getOrCreate: getOrCreateAgentGatewaySessionClientId,
rotate: rotateAgentGatewaySessionClientId,
},
});
: new WorksSquareDesignWorkspace();
imageWorkspaceModule = imageWorkspace;
if (consumeWorksSquareStartupRuntimeCleanupRequired()) {
await clearManagedWorksSquareRuntimeBestEffort({