mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-31 21:52:54 +00:00
fix(server): capture reload reply before publishing updates
This commit is contained in:
@@ -66,6 +66,7 @@ async function setup(provider: AgentClient, agentId?: string) {
|
||||
const clients = [0, 1].map(() => new DaemonClient({ url: `ws://127.0.0.1:${daemon.port}/ws` }));
|
||||
resources.push({ daemon, clients, cwd });
|
||||
await Promise.all(clients.map((client) => client.connect()));
|
||||
await Promise.all(clients.map((client) => client.fetchAgents({ subscribe: {} })));
|
||||
const agent = await daemon.daemon.agentManager.createAgent({ provider: "claude", cwd }, agentId, {
|
||||
workspaceId: undefined,
|
||||
});
|
||||
|
||||
@@ -4779,8 +4779,8 @@ export class Session {
|
||||
});
|
||||
}
|
||||
const snapshot = await refresh;
|
||||
await this.agentUpdates.forwardLiveAgent(snapshot);
|
||||
const timelineSize = this.agentManager.getTimeline(agentId).length;
|
||||
await this.agentUpdates.forwardLiveAgent(snapshot);
|
||||
if (requestId) {
|
||||
this.emit({
|
||||
type: "status",
|
||||
|
||||
Reference in New Issue
Block a user