diff --git a/CHANGELOG.md b/CHANGELOG.md index 38f07cbb..49e537b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.6.3 + +- Fix issue where slash commands were loaded before initialization was complete. + ## 0.6.2 - Fix bug where mode selection would sometimes fire before initialization was complete. diff --git a/src/acp-agent.ts b/src/acp-agent.ts index 46238864..c041c037 100644 --- a/src/acp-agent.ts +++ b/src/acp-agent.ts @@ -243,13 +243,15 @@ export class ClaudeAcpAgent implements Agent { }; getAvailableSlashCommands(q).then((availableCommands) => { - this.client.sessionUpdate({ - sessionId, - update: { - sessionUpdate: "available_commands_update", - availableCommands, - }, - }); + setTimeout(() => { + this.client.sessionUpdate({ + sessionId, + update: { + sessionUpdate: "available_commands_update", + availableCommands, + }, + }); + }, 0); }); return {