fix: preserve markdown when saving notes

Change the chat text-selection Add to notes action to use the existing markdown selection payload, matching Add to chat formatting behavior while still falling back to plain text when markdown extraction is unavailable.

Stop distilling or summarizing selected text before saving it to project notes. The action now appends the selected content directly so code, lists, emphasis, and other markdown survive.

Increase the project notes text limit from 1000 to 3000 characters to account for saving raw selected text instead of a short generated summary.

Update user-facing copy across locales from distilled insight language to selected text language.
This commit is contained in:
Bohdan Triapitsyn
2026-05-19 02:07:07 +03:00
parent 174fa4e96d
commit f40110698f
9 changed files with 20 additions and 36 deletions
+2 -2
View File
@@ -1448,7 +1448,7 @@ export const dict: Record<I18nKey, string> = {
"chat.questionCard.copyFailed": "Falha ao copiar a pergunta",
"chat.textSelection.toast.noProject": "Não foi encontrado projeto para esta sessão",
"chat.textSelection.toast.addToNotesFailed": "Não foi possível adicionar às notas",
"chat.textSelection.toast.addToNotesSuccess": "Informação destilada adicionada às notas",
"chat.textSelection.toast.addToNotesSuccess": "Texto selecionado adicionado às notas",
"chat.textSelection.toast.addToNotesSummaryFailed": "Não foi possível resumir a seleção; o texto selecionado foi adicionado às notas",
"chat.textSelection.actions.addToChat": "Adicionar ao chat",
"chat.textSelection.actions.newSession": "Nova sessão",
@@ -1456,7 +1456,7 @@ export const dict: Record<I18nKey, string> = {
"chat.textSelection.actions.addToNotes": "Adicionar às notas",
"chat.textSelection.title.addToCurrentChat": "Adicionar ao chat atual",
"chat.textSelection.title.newSessionWithSelection": "Criar nova sessão com seleção",
"chat.textSelection.title.saveInsightToNotes": "Salvar informação destilada em notas",
"chat.textSelection.title.saveInsightToNotes": "Salvar texto selecionado em notas",
"chat.messageBody.actions.revertAria": "Voltar para esta mensagem",
"chat.messageBody.actions.revert": "Voltar daqui",
"chat.messageBody.actions.forkAria": "Bifurcar a partir desta mensagem",