Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion multimodal/tarko/agent-server-next/examples/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const server = new AgentServer({
agentMode: {
id: runtimeSettings.agentMode,
browserMode: runtimeSettings.browserMode,
link: 'http://example.com',
link: runtimeSettings.link || '',
},
};
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,6 @@ export class AgentSessionFactory {
// Initialize the session
const { storageUnsubscribe } = await session.initialize();

// If runtime settings were provided and session is active, update the agent configuration
if (runtimeSettings && savedSessionInfo) {
try {
await session.updateSessionConfig(savedSessionInfo);
console.log('Session created with runtime settings', { sessionId, runtimeSettings });
} catch (error) {
console.error('Failed to apply runtime settings to new session', { sessionId, error });
// Continue execution - the runtime settings are saved, will apply on next session restart
}
}

// Wait a short time to ensure all initialization events are persisted
// This handles the async nature of event storage during agent initialization
Expand Down
10 changes: 0 additions & 10 deletions multimodal/tarko/agent-server/src/api/controllers/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,6 @@ export async function createSession(req: Request, res: Response) {
server.storageUnsubscribes[sessionId] = storageUnsubscribe;
}

// If runtime settings were provided and session is active, update the agent configuration
if (runtimeSettings && savedSessionInfo) {
try {
await session.updateSessionConfig(savedSessionInfo);
console.log('Session created with runtime settings', { sessionId, runtimeSettings });
} catch (error) {
console.error('Failed to apply runtime settings to new session', { sessionId, error });
// Continue execution - the runtime settings are saved, will apply on next session restart
}
}

// Wait a short time to ensure all initialization events are persisted
// This handles the async nature of event storage during agent initialization
Expand Down
Loading