diff --git a/packages/jupyter-chat/src/widgets/chat-widget.tsx b/packages/jupyter-chat/src/widgets/chat-widget.tsx index a1a9aa2..da62d2d 100644 --- a/packages/jupyter-chat/src/widgets/chat-widget.tsx +++ b/packages/jupyter-chat/src/widgets/chat-widget.tsx @@ -14,11 +14,12 @@ export class ChatWidget extends ReactWidget { constructor(options: Chat.IOptions) { super(); - this.id = 'jupyter-chat::widget'; this.title.icon = chatIcon; this.title.caption = 'Jupyter Chat'; // TODO: i18n this._chatOptions = options; + this.id = `jupyter-chat::widget::${options.model.name}`; + this.node.onclick = () => this.model.focusInput(); } /**