Skip to content

Commit 39d1bc0

Browse files
committed
fix(ui): preserve companion clear async contract
1 parent 14e838f commit 39d1bc0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎ui/src/pages/chat/chat-pane-sharing.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ import {
3636
} from "./components/chat-session-sharing.ts";
3737

3838
export abstract class ChatPaneSharing extends ChatPaneBase {
39-
protected readonly clearSessionCompanion = () => {
39+
protected readonly clearSessionCompanion = async () => {
4040
const scope = this.captureConnectionScope();
4141
const key = scope?.state.sessionKey;
4242
if (!scope || !key) {
4343
return;
4444
}
4545
const agentId = resolveChatAgentId(scope.state);
46-
void this.sessionCompanionThreads
46+
await this.sessionCompanionThreads
4747
.reset(key, (sessionKey) => resetSessionCompanion(scope.client, sessionKey, agentId), agentId)
4848
.catch((error: unknown) => {
4949
if (

0 commit comments

Comments
 (0)