Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
refactor(llm): hide result pane for edit note
Elian Doran2dd4e413ff04
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex 8b89b3a06e..53dfd2d1cf 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -1793,7 +1793,6 @@"thought_process": "Thought process","tool_calls": "{{count}} tool call(s)","input": "Input",- "changes": "Changes","edit_index": "Edit {{index}} of {{total}}","result": "Result","error": "Error",diff --git a/apps/client/src/widgets/type_widgets/llm_chat/ToolCallCard.tsx b/apps/client/src/widgets/type_widgets/llm_chat/ToolCallCard.tsxindex d642997bde..4e1241806d 100644--- a/apps/client/src/widgets/type_widgets/llm_chat/ToolCallCard.tsx+++ b/apps/client/src/widgets/type_widgets/llm_chat/ToolCallCard.tsx@@ -199,12 +199,16 @@ function ToolCallSection({ toolCall }: { toolCall: ToolCall }) {className={hasError ? "llm-chat-tool-call-error" : ""}><div className="llm-chat-tool-call-input">- <strong>{noteContentEdits ? t("llm_chat.changes") : t("llm_chat.input")}</strong>- {noteContentEdits- ? <EditNoteContentDiff edits={noteContentEdits} />- : <KeyValueTable data={toolCall.input} />}+ {noteContentEdits ? (+ <EditNoteContentDiff edits={noteContentEdits} />+ ) : (+ <>+ <strong>{t("llm_chat.input")}</strong>+ <KeyValueTable data={toolCall.input} />+ </>+ )}</div>- {toolCall.result && (+ {toolCall.result && (!noteContentEdits || hasError) && (<div className={`llm-chat-tool-call-result ${hasError ? "llm-chat-tool-call-result-error" : ""}`}><strong>{hasError ? t("llm_chat.error") : t("llm_chat.result")}</strong><KeyValueTable data={toolCall.result} />