@blueking/ai-blueking 2.2.4-beta.1 → 2.2.4-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4176,7 +4176,11 @@ function Yn(e) {
4176
4176
  //#endregion
4177
4177
  //#region src/components/composables/use-message-sender.ts
4178
4178
  function Xn(e) {
4179
- let { emit: t, chatHelper: n, chatBusinessManager: r, getRequestOptions: i, reportError: a, resumeUserQuestionWithInput: o, selectedShortcut: s, selectedResources: c } = e, l = k([[]]), u = k(""), d = (e, t) => {
4179
+ let { emit: t, chatHelper: n, chatBusinessManager: r, getRequestOptions: i, reportError: a, resumeUserQuestionWithInput: o, selectedShortcut: s, selectedResources: c } = e, l = k([[]]), u = k("");
4180
+ L(() => n.value?.session.current?.value?.sessionCode, (e, t) => {
4181
+ t && t !== e && (u.value = "");
4182
+ });
4183
+ let d = (e, t) => {
4180
4184
  l.value = e, c.value = t;
4181
4185
  }, f = async (e, a = {}) => {
4182
4186
  if (!r.value || !n.value) throw Error("[ChatBot] Cannot send message: chatBusinessManager not initialized");
@@ -5337,7 +5341,7 @@ function dr(e) {
5337
5341
  hasSessionContents: l,
5338
5342
  autoGenerateLoading: u,
5339
5343
  handleNewChat: async () => {
5340
- r.value?.exitShareMode(), i.newChat();
5344
+ r.value?.exitShareMode(), r.value?.setCiteText(""), i.newChat();
5341
5345
  },
5342
5346
  handleNewChatCreated: (e) => {
5343
5347
  i.newChatCreated(e);