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:
Mohamed Boudra
2026-04-09 09:23:31 +07:00
parent 8f136a1f92
commit d3876ffe61
2 changed files with 5 additions and 3 deletions

View File

@@ -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);

View File

@@ -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",