[eric] windows 1.1.59: production webpack and framer-motion shim

This commit is contained in:
Eric
2026-05-26 00:29:17 -07:00
parent 7407e6cb37
commit bb2de72f6f
38 changed files with 66 additions and 171 deletions
-12
View File
@@ -291,19 +291,13 @@ export const fetchSession = createAsyncThunk(
export const launchAndSendFirstMessage = createAsyncThunk(
'agents/launchAndSendFirstMessage',
async ({ draftId, config, prompt, mode, model, provider, images, contextPaths, forcedTools, attachedSkills, selectedBrowserIds }: LaunchAndSendPayload) => {
// eslint-disable-next-line no-console
console.log('[diag][thunk] launchAndSendFirstMessage START draft=', draftId, 'mode=', mode, 'model=', model, 'provider=', provider);
const launchRes = await fetch(`${AGENTS_API}/launch`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(config),
});
// eslint-disable-next-line no-console
console.log('[diag][thunk] launch fetch ok=', launchRes.ok, 'status=', launchRes.status);
const launchData = await launchRes.json();
const session = launchData.session as AgentSession;
// eslint-disable-next-line no-console
console.log('[diag][thunk] launch parsed, sessionId=', session && session.id);
await fetch(`${AGENTS_API}/sessions/${session.id}/message`, {
method: 'POST',
@@ -476,15 +470,9 @@ export const searchHistory = createAsyncThunk(
export const resumeSession = createAsyncThunk(
'agents/resumeSession',
async ({ sessionId }: { sessionId: string }) => {
// eslint-disable-next-line no-console
console.log('[diag][thunk] resumeSession START', sessionId);
try {
const res = await fetch(`${AGENTS_API}/sessions/${sessionId}/resume`, { method: 'POST' });
// eslint-disable-next-line no-console
console.log('[diag][thunk] resumeSession fetch ok=', res.ok, 'status=', res.status);
const data = await res.json();
// eslint-disable-next-line no-console
console.log('[diag][thunk] resumeSession parsed, keys=', Object.keys(data || {}).join(','));
return data.session as AgentSession;
} catch (e: any) {
// eslint-disable-next-line no-console
+1 -1
View File
@@ -115,7 +115,7 @@ const initialState: SettingsState = {
theme: 'dark',
new_agent_shortcut: 'Meta+l',
anthropic_api_key: null,
browser_homepage: 'https://www.google.com',
browser_homepage: 'https://duckduckgo.com',
auto_select_mode_on_new_agent: false,
expand_new_chats_in_dashboard: false,
auto_reveal_sub_agents: true,
@@ -192,8 +192,6 @@ class WebSocketManager {
const token = _getAuthTokenSafe();
const sep = this.url.includes('?') ? '&' : '?';
const urlWithToken = token ? `${this.url}${sep}token=${encodeURIComponent(token)}` : this.url;
// eslint-disable-next-line no-console
console.log('[diag][ws] connect', this.url, 'sessionId=', this.sessionId, 'hasToken=', !!token);
this.ws = new WebSocket(urlWithToken);
this.ws.onopen = () => {