mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
Fix rebase type errors and add TODO date tag
- Await listAvailableEditorTargets() which became async on main - Wrap sendAgentMessage callback to match Promise<void> return type - Add TODO(2026-07) date to legacy editor target ids comment
This commit is contained in:
@@ -6115,7 +6115,7 @@ export class Session {
|
||||
}
|
||||
|
||||
async getAvailableEditorTargets() {
|
||||
return this.filterEditorsForClient(listAvailableEditorTargets());
|
||||
return this.filterEditorsForClient(await listAvailableEditorTargets());
|
||||
}
|
||||
|
||||
async openEditorTarget(options: { editorId: EditorTargetId; path: string }): Promise<void> {
|
||||
@@ -7543,7 +7543,9 @@ export class Session {
|
||||
listStoredAgents: () => this.agentStorage.list(),
|
||||
listLiveAgents: () => this.agentManager.listAgents(),
|
||||
resolveAgentIdentifier: (identifier) => this.resolveAgentIdentifier(identifier),
|
||||
sendAgentMessage: (agentId, text) => this.handleSendAgentMessage(agentId, text),
|
||||
sendAgentMessage: async (agentId, text) => {
|
||||
await this.handleSendAgentMessage(agentId, text);
|
||||
},
|
||||
});
|
||||
} catch (error) {
|
||||
this.emitChatRpcError(request, error);
|
||||
|
||||
@@ -1097,7 +1097,7 @@ export const CreatePaseoWorktreeRequestSchema = z.object({
|
||||
requestId: z.string(),
|
||||
});
|
||||
|
||||
// TODO: Remove once most clients are on >=0.1.50 and support arbitrary editor ids.
|
||||
// TODO(2026-07): Remove once most clients are on >=0.1.50 and support arbitrary editor ids.
|
||||
export const LEGACY_EDITOR_TARGET_IDS = [
|
||||
"cursor",
|
||||
"vscode",
|
||||
|
||||
Reference in New Issue
Block a user