Skip to content

Commit

Permalink
fix(ai-help): set chatId on user message (#11751)
Browse files Browse the repository at this point in the history
* chore(ai-help): include {messages,quote} in debug output

* fix(ai-help): set chatId on user message
  • Loading branch information
caugner authored Sep 6, 2024
1 parent b5d1ac2 commit 97f4b23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/plus/ai-help/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,9 @@ export function AIHelpInner() {
))}
</section>
)}
{hash === "#debug" && <pre>{JSON.stringify(datas, null, 2)}</pre>}
{hash === "#debug" && (
<pre>{JSON.stringify({ datas, messages, quota }, null, 2)}</pre>
)}
</section>
)}
</Container>
Expand Down
1 change: 1 addition & 0 deletions client/src/plus/ai-help/use-ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ function messageReducer(state: MessageTreeState, messageAction: MessageAction) {
...newState.currentNode.request,
messageId,
parentId,
chatId,
},
});
newState.nodes[messageId] = newState.currentNode;
Expand Down

0 comments on commit 97f4b23

Please sign in to comment.