A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
fix: report and persist actual assistant edit applications (#3755)
Amruth Pillaie598d2343eb4
diff --git a/apps/mobile/locales/af-ZA.po b/apps/mobile/locales/af-ZA.poindex 57b366cd8..f608586f1 100644--- a/apps/mobile/locales/af-ZA.po+++ b/apps/mobile/locales/af-ZA.po@@ -70,8 +70,7 @@ msgstr "(opsioneel)"msgid "(required)"msgstr "(verpligtend)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Wysiging toegepas} other {# wysigings toegepas}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# dokument na asblik geskuif} other {# dokumente na asbmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# dokument} other {# dokumente}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# wysiging kon nie geplaas word nie: sy teks verander. Vra weer om dit oor te doen.} other {# wysigings kon nie geplaas word nie: hul teks het verander. Vra weer om hulle oor te doen.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/am-ET.po b/apps/mobile/locales/am-ET.poindex 8dacc7121..f431104be 100644--- a/apps/mobile/locales/am-ET.po+++ b/apps/mobile/locales/am-ET.po@@ -70,8 +70,7 @@ msgstr "(አማራጭ)"msgid "(required)"msgstr "(ግዴታ)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {አርትዖት ተተግብሯል} other {# አርትዖቶች ተተግብረዋል}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# ሰነድ ወደ መጣያ ተወስዷል} other {#msgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# ሰነድ} other {# ሰነዶች}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# አርትዖት ሊቀመጥ አልቻለም፡ ጽሑፉ ተቀይሯል። እንደገና እንዲሰራው ጠይቅ።} other {# አርትዖቶች ሊቀመጡ አልቻሉም፡ ጽሑፋቸው ተቀይሯል። እንደገና እንዲሰራቸው ጠይቅ።}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/ar-SA.po b/apps/mobile/locales/ar-SA.poindex 303af8090..5566cd448 100644--- a/apps/mobile/locales/ar-SA.po+++ b/apps/mobile/locales/ar-SA.po@@ -70,8 +70,7 @@ msgstr "(اختياري)"msgid "(required)"msgstr "(مطلوب)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {تم تطبيق التعديل} two {تم تطبيق تعديلين} few {تم تطبيق # تعديلات} many {تم تطبيق # تعديلًا} other {تم تطبيق # تعديل}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, zero {لم يُنقل أي مستند إلى سلة المهmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# مستند} other {# مستند} zero {# مستند} two {مستندان (#)} few {# مستندات} many {# مستند}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {لا يمكن وضع تحرير #: تم تغيير النص الخاص به. اطلب مرة أخرى إعادته.} other {لا يمكن وضع تعديلات #: تم تغيير النص الخاص بها. اطلب مرة أخرى إعادتها.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/az-AZ.po b/apps/mobile/locales/az-AZ.poindex a65c00448..8669394db 100644--- a/apps/mobile/locales/az-AZ.po+++ b/apps/mobile/locales/az-AZ.po@@ -70,8 +70,7 @@ msgstr "(istəyə bağlı)"msgid "(required)"msgstr "(məcburi)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Düzəliş tətbiq edildi} other {# düzəliş tətbiq edildi}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# sənəd zibil qutusuna köçürüldü} other {# sənmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# sənəd} other {# sənəd}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# redaktəsini yerləşdirmək mümkün olmadı: onun mətni dəyişdi. Yenidən etmək üçün yenidən soruşun.} other {# redaktələri yerləşdirmək mümkün olmadı: onların mətni dəyişdi. Onları yenidən düzəltmək üçün yenidən soruşun.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/bg-BG.po b/apps/mobile/locales/bg-BG.poindex 4eee9cf6f..a1bc2f54e 100644--- a/apps/mobile/locales/bg-BG.po+++ b/apps/mobile/locales/bg-BG.po@@ -70,8 +70,7 @@ msgstr "(незадължително)"msgid "(required)"msgstr "(задължително)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Редакцията е приложена} other {Приложени са # редакции}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# документ е преместен в кошчеmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# документ} other {# документа}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {Редакцията на # не можа да бъде поставена: текстът й е променен. Помолете отново да го повторите.} other {Редакциите на # не можаха да бъдат поставени: текстът им се промени. Помолете отново да ги повторите.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/bn-BD.po b/apps/mobile/locales/bn-BD.poindex d4feeab8d..aa00059dc 100644--- a/apps/mobile/locales/bn-BD.po+++ b/apps/mobile/locales/bn-BD.po@@ -70,8 +70,7 @@ msgstr "(ঐচ্ছিক)"msgid "(required)"msgstr "(আবশ্যক)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {পরিবর্তন প্রয়োগ করা হয়েছে} other {#টি পরিবর্তন প্রয়োগ করা হয়েছে}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {#টি নথি ট্র্যাশে সরানmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# নথি} other {#টি নথি}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# সম্পাদনা স্থাপন করা যায়নি: এর পাঠ্য পরিবর্তিত হয়েছে৷ আবার করতে বলুন।} other {# সম্পাদনা স্থাপন করা যায়নি: তাদের পাঠ্য পরিবর্তিত হয়েছে৷ সেগুলি আবার করতে বলুন।}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/ca-ES.po b/apps/mobile/locales/ca-ES.poindex 07c172ce7..ea6ec25bd 100644--- a/apps/mobile/locales/ca-ES.po+++ b/apps/mobile/locales/ca-ES.po@@ -70,8 +70,7 @@ msgstr "(opcional)"msgid "(required)"msgstr "(obligatori)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Canvi aplicat} other {# canvis aplicats}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# document mogut a la paperera} other {# documents mogumsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# document} other {# documents}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {No s'ha pogut fer l'edició de #: el seu text ha canviat. Torna a demanar que ho torni a fer.} other {No s'han pogut fer edicions de #: el seu text ha canviat. Torna a demanar que les torni a fer.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/cs-CZ.po b/apps/mobile/locales/cs-CZ.poindex bc542f5d4..f04cde97e 100644--- a/apps/mobile/locales/cs-CZ.po+++ b/apps/mobile/locales/cs-CZ.po@@ -70,8 +70,7 @@ msgstr "(nepovinné)"msgid "(required)"msgstr "(povinné)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Úprava použita} few {# úpravy použity} other {# úprav použito}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# dokument přesunut do koše} few {# dokumenty přesunmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# dokument} few {# dokumenty} other {# dokumentů}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {Úpravu # nelze umístit: její text se změnil. Požádejte znovu o její opakování.} other {Úpravy # nelze umístit: jejich text se změnil. Požádejte znovu o jejich přepracování.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/da-DK.po b/apps/mobile/locales/da-DK.poindex 1eacf42b4..8130b81f8 100644--- a/apps/mobile/locales/da-DK.po+++ b/apps/mobile/locales/da-DK.po@@ -70,8 +70,7 @@ msgstr "(valgfrit)"msgid "(required)"msgstr "(påkrævet)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Ændring anvendt} other {# ændringer anvendt}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# dokument flyttet til papirkurven} other {# dokumentermsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# dokument} other {# dokumenter}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# redigering kunne ikke placeres: dens tekst ændret. Bed igen om at lave det om.} other {#-redigeringer kunne ikke placeres: deres tekst er ændret. Bed igen om at lave dem om.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/de-DE.po b/apps/mobile/locales/de-DE.poindex 8f384c7dc..f7cb14311 100644--- a/apps/mobile/locales/de-DE.po+++ b/apps/mobile/locales/de-DE.po@@ -70,8 +70,7 @@ msgstr "(optional)"msgid "(required)"msgstr "(erforderlich)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Änderung übernommen} other {# Änderungen übernommen}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# Dokument in den Papierkorb verschoben} other {# Dokummsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# Dokument} other {# Dokumente}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {#-Bearbeitung konnte nicht platziert werden: Der Text wurde geändert. Bitten Sie noch einmal darum, es noch einmal zu machen.} other {#-Änderungen konnten nicht platziert werden: Ihr Text wurde geändert. Bitten Sie erneut, sie zu wiederholen.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/el-GR.po b/apps/mobile/locales/el-GR.poindex b4ede3227..098858486 100644--- a/apps/mobile/locales/el-GR.po+++ b/apps/mobile/locales/el-GR.po@@ -70,8 +70,7 @@ msgstr "(προαιρετικό)"msgid "(required)"msgstr "(υποχρεωτικό)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Εφαρμόστηκε η αλλαγή} other {Εφαρμόστηκαν # αλλαγές}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# έγγραφο μετακινήθηκε στον Κάmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# έγγραφο} other {# έγγραφα}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {Δεν ήταν δυνατή η πραγματοποίηση επεξεργασίας #: το κείμενό του άλλαξε. Ζητήστε ξανά να το επαναλάβετε.} other {Δεν ήταν δυνατή η τοποθέτηση επεξεργασιών #: το κείμενό τους άλλαξε. Ζητήστε ξανά να τα επαναλάβετε.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/en-GB.po b/apps/mobile/locales/en-GB.poindex 2555e4239..b2b67ea59 100644--- a/apps/mobile/locales/en-GB.po+++ b/apps/mobile/locales/en-GB.po@@ -70,8 +70,7 @@ msgstr "(optional)"msgid "(required)"msgstr "(required)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Edit applied} other {# edits applied}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# document moved to Trash} other {# documents moved tomsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# document} other {# documents}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/en-US.po b/apps/mobile/locales/en-US.poindex 0c84b8c0d..682be6691 100644--- a/apps/mobile/locales/en-US.po+++ b/apps/mobile/locales/en-US.po@@ -70,8 +70,7 @@ msgstr "(optional)"msgid "(required)"msgstr "(required)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Edit applied} other {# edits applied}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# document moved to Trash} other {# documents moved tomsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# document} other {# documents}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/es-ES.po b/apps/mobile/locales/es-ES.poindex a1d4274c6..1576233fe 100644--- a/apps/mobile/locales/es-ES.po+++ b/apps/mobile/locales/es-ES.po@@ -70,8 +70,7 @@ msgstr "(opcional)"msgid "(required)"msgstr "(obligatorio)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Cambio aplicado} other {# cambios aplicados}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# documento movido a la Papelera} other {# documentos mmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# documento} other {# documentos}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {No se pudo colocar la edición #: su texto cambió. Pregunta nuevamente para rehacerlo.} other {No se pudieron realizar las ediciones #: su texto cambió. Pida nuevamente que los rehaga.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/fa-IR.po b/apps/mobile/locales/fa-IR.poindex 4960de568..89c8a340e 100644--- a/apps/mobile/locales/fa-IR.po+++ b/apps/mobile/locales/fa-IR.po@@ -70,8 +70,7 @@ msgstr "(اختیاری)"msgid "(required)"msgstr "(الزامی)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {ویرایش اعمال شد} other {# ویرایش اعمال شد}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# سند به سطل زباله منتقل شد} othermsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# سند} other {# سند}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {ویرایش # انجام نشد: متن آن تغییر کرد. دوباره بخواهید آن را دوباره انجام دهید.} other {ویرایشهای # انجام نشد: متن آنها تغییر کرد. دوباره بخواهید آنها را دوباره انجام دهید.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/fi-FI.po b/apps/mobile/locales/fi-FI.poindex 4d6c743c0..a5bd83ccd 100644--- a/apps/mobile/locales/fi-FI.po+++ b/apps/mobile/locales/fi-FI.po@@ -70,8 +70,7 @@ msgstr "(valinnainen)"msgid "(required)"msgstr "(pakollinen)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Muokkaus tehty} other {# muokkausta tehty}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# asiakirja siirrettiin roskakoriin} other {# asiakirjamsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# asiakirja} other {# asiakirjaa}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# muokkausta ei voitu sijoittaa: sen tekstiä muutettiin. Pyydä uudelleen tekemään se.} other {#-muokkauksia ei voitu sijoittaa: niiden tekstiä muutettiin. Pyydä tekemään ne uudelleen.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/fr-FR.po b/apps/mobile/locales/fr-FR.poindex 184bb8b66..a140ca6d6 100644--- a/apps/mobile/locales/fr-FR.po+++ b/apps/mobile/locales/fr-FR.po@@ -70,8 +70,7 @@ msgstr "(facultatif)"msgid "(required)"msgstr "(obligatoire)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Modification appliquée} other {# modifications appliquées}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# document déplacé vers la corbeille} other {# documemsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# document} other {# documents}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {La modification # n'a pas pu être placée : son texte a été modifié. Demandez à nouveau de le refaire.} other {Les modifications # n'ont pas pu être placées : leur texte a été modifié. Demandez à nouveau de les refaire.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/he-IL.po b/apps/mobile/locales/he-IL.poindex 1747f1420..96c1d593d 100644--- a/apps/mobile/locales/he-IL.po+++ b/apps/mobile/locales/he-IL.po@@ -70,8 +70,7 @@ msgstr "(רשות)"msgid "(required)"msgstr "(חובה)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {העריכה הוחלה} other {# עריכות הוחלו}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# מסמך הועבר לאשפה} other {# מסמכיםmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# מסמך} other {# מסמכים}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {לא ניתן היה למקם את העריכה #: הטקסט שלה השתנה. בקש שוב לעשות זאת מחדש.} other {לא ניתן היה לבצע עריכות #: הטקסט שלהן השתנה. בקש שוב לעשות אותם מחדש.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/hi-IN.po b/apps/mobile/locales/hi-IN.poindex 5b4413c99..4c0d8be44 100644--- a/apps/mobile/locales/hi-IN.po+++ b/apps/mobile/locales/hi-IN.po@@ -70,8 +70,7 @@ msgstr "(वैकल्पिक)"msgid "(required)"msgstr "(आवश्यक)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {बदलाव लागू किया गया} other {# बदलाव लागू किए गए}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# दस्तावेज़ ट्रैश मेंmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# दस्तावेज़} other {# दस्तावेज़}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# संपादन नहीं रखा जा सका: इसका पाठ बदल गया। इसे दोबारा करने के लिए दोबारा पूछें.} other {# संपादन नहीं रखे जा सके: उनका पाठ बदल गया। उन्हें दोबारा करने के लिए दोबारा पूछें.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/hu-HU.po b/apps/mobile/locales/hu-HU.poindex 3f37e0d5e..7c203e3c6 100644--- a/apps/mobile/locales/hu-HU.po+++ b/apps/mobile/locales/hu-HU.po@@ -70,8 +70,7 @@ msgstr "(nem kötelező)"msgid "(required)"msgstr "(kötelező)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Módosítás alkalmazva} other {# módosítás alkalmazva}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# dokumentum a kukába került} other {# dokumentum a kmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# dokumentum} other {# dokumentum}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {A # szerkesztést nem sikerült elhelyezni: a szövege megváltozott. Kérje meg újra, hogy ismételje meg.} other {A # szerkesztéseket nem sikerült elhelyezni: a szövegük megváltozott. Kérje meg újra, hogy ismételje meg őket.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/id-ID.po b/apps/mobile/locales/id-ID.poindex b3146b7c2..76a340039 100644--- a/apps/mobile/locales/id-ID.po+++ b/apps/mobile/locales/id-ID.po@@ -70,8 +70,7 @@ msgstr "(opsional)"msgid "(required)"msgstr "(wajib)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Suntingan diterapkan} other {# suntingan diterapkan}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# dokumen dipindahkan ke Sampah} other {# dokumen dipinmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# dokumen} other {# dokumen}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {Pengeditan # tidak dapat dilakukan: teksnya berubah. Minta lagi untuk mengulanginya.} other {Pengeditan # tidak dapat dilakukan: teksnya berubah. Minta lagi untuk mengulanginya.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/it-IT.po b/apps/mobile/locales/it-IT.poindex b71c5741c..07dc0e506 100644--- a/apps/mobile/locales/it-IT.po+++ b/apps/mobile/locales/it-IT.po@@ -70,8 +70,7 @@ msgstr "(facoltativo)"msgid "(required)"msgstr "(obbligatorio)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Modifica applicata} other {# modifiche applicate}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# documento spostato nel Cestino} other {# documenti spmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# documento} other {# documenti}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {Impossibile inserire la modifica #: il testo è stato modificato. Chiedi di nuovo di rifarlo.} other {Impossibile apportare modifiche #: il testo è cambiato. Chiedi di nuovo di rifarli.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/ja-JP.po b/apps/mobile/locales/ja-JP.poindex 1f1c333af..47773b565 100644--- a/apps/mobile/locales/ja-JP.po+++ b/apps/mobile/locales/ja-JP.po@@ -70,8 +70,7 @@ msgstr "(任意)"msgid "(required)"msgstr "(必須)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {編集を適用しました} other {# 件の編集を適用しました}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# 件の書類をゴミ箱に移動しました} othermsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {書類#件} other {書類#件}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# 編集を配置できませんでした。テキストが変更されました。やり直しをもう一度依頼してください。} other {# 編集を配置できませんでした。テキストが変更されました。もう一度やり直してもらいます。}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/km-KH.po b/apps/mobile/locales/km-KH.poindex 61c58e893..7ad6271c3 100644--- a/apps/mobile/locales/km-KH.po+++ b/apps/mobile/locales/km-KH.po@@ -70,8 +70,7 @@ msgstr "(ស្រេចចិត្ត)"msgid "(required)"msgstr "(តម្រូវឱ្យបំពេញ)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {បានអនុវត្តការកែសម្រួល} other {បានអនុវត្តការកែសម្រួល #}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {ឯកសារចំនួន # ត្រូវបាmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {ឯកសារ #} other {ឯកសារ #}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {ការកែសម្រួល # មិនអាចត្រូវបានដាក់៖ អត្ថបទរបស់វាបានផ្លាស់ប្តូរ។ សួរម្តងទៀតដើម្បីធ្វើវាឡើងវិញ។} other {ការកែសម្រួល # មិនអាចត្រូវបានដាក់៖ អត្ថបទរបស់ពួកគេបានផ្លាស់ប្តូរ។ សុំម្តងទៀតដើម្បីធ្វើពួកវាឡើងវិញ។}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/kn-IN.po b/apps/mobile/locales/kn-IN.poindex b3fdd97d6..c413a7bc8 100644--- a/apps/mobile/locales/kn-IN.po+++ b/apps/mobile/locales/kn-IN.po@@ -70,8 +70,7 @@ msgstr "(ಐಚ್ಛಿಕ)"msgid "(required)"msgstr "(ಕಡ್ಡಾಯ)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {ಸಂಪಾದನೆಯನ್ನು ಅನ್ವಯಿಸಲಾಗಿದೆ} other {# ಸಂಪಾದನೆಗಳನ್ನು ಅನ್ವಯಿಸಲಾಗಿದೆ}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# ದಾಖಲೆಯನ್ನು ಅನುಪಯುಕmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# ದಾಖಲೆ} other {# ದಾಖಲೆಗಳು}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# ಸಂಪಾದನೆಯನ್ನು ಇರಿಸಲಾಗಲಿಲ್ಲ: ಅದರ ಪಠ್ಯ ಬದಲಾಗಿದೆ. ಅದನ್ನು ಪುನಃ ಮಾಡಲು ಮತ್ತೊಮ್ಮೆ ಕೇಳಿ.} other {# ಸಂಪಾದನೆಗಳನ್ನು ಇರಿಸಲಾಗಲಿಲ್ಲ: ಅವುಗಳ ಪಠ್ಯ ಬದಲಾಗಿದೆ. ಅವುಗಳನ್ನು ಪುನಃ ಮಾಡಲು ಮತ್ತೊಮ್ಮೆ ಕೇಳಿ.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/ko-KR.po b/apps/mobile/locales/ko-KR.poindex 3b5a31139..18414a779 100644--- a/apps/mobile/locales/ko-KR.po+++ b/apps/mobile/locales/ko-KR.po@@ -70,8 +70,7 @@ msgstr "(선택)"msgid "(required)"msgstr "(필수)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {편집이 적용되었습니다} other {편집 #개가 적용되었습니다}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {서류 #개를 휴지통으로 이동했습니다} othemsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {문서 #개} other {문서 #개}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# 편집을 배치할 수 없습니다. 텍스트가 변경되었습니다. 다시 실행해 달라고 다시 요청하세요.} other {# 편집 내용을 배치할 수 없습니다. 텍스트가 변경되었습니다. 다시 실행하도록 요청하세요.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/lt-LT.po b/apps/mobile/locales/lt-LT.poindex 04ca331b0..24ffe82e4 100644--- a/apps/mobile/locales/lt-LT.po+++ b/apps/mobile/locales/lt-LT.po@@ -70,8 +70,7 @@ msgstr "(neprivaloma)"msgid "(required)"msgstr "(privaloma)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Pakeitimas pritaikytas} one {Pritaikytas # pakeitimas} few {Pritaikyti # pakeitimai} many {Pritaikyta # pakeitimo} other {Pritaikyta # pakeitimų}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# dokumentas perkeltas į šiukšliadėžę} few {# dokmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# dokumentas} few {# dokumentai} many {# dokumento} other {# dokumentų}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# redagavimo nepavyko įdėti: jo tekstas pasikeitė. Paprašykite dar kartą tai padaryti.} other {Nepavyko įdėti # redagavimo: jų tekstas pasikeitė. Dar kartą paprašykite juos perdaryti.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/lv-LV.po b/apps/mobile/locales/lv-LV.poindex 441016492..f96c2825d 100644--- a/apps/mobile/locales/lv-LV.po+++ b/apps/mobile/locales/lv-LV.po@@ -70,8 +70,7 @@ msgstr "(neobligāti)"msgid "(required)"msgstr "(obligāti)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Labojums piemērots} zero {Piemēroti # labojumi} one {Piemērots # labojums} other {Piemēroti # labojumi}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, zero {# dokumenti pārvietoti uz atkritni} one {# dokumentsmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# dokuments} other {# dokumenti} zero {# dokumentu}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# labojumu nevarēja ievietot: tā teksts ir mainīts. Jautājiet vēlreiz, lai to atkārtotu.} other {# labojumus nevarēja ievietot: to teksts ir mainīts. Lūdziet vēlreiz tās atkārtot.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/ml-IN.po b/apps/mobile/locales/ml-IN.poindex f831cf2e8..a19940c89 100644--- a/apps/mobile/locales/ml-IN.po+++ b/apps/mobile/locales/ml-IN.po@@ -70,8 +70,7 @@ msgstr "(ഐച്ഛികം)"msgid "(required)"msgstr "(നിർബന്ധം)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {തിരുത്ത് പ്രയോഗിച്ചു} other {# തിരുത്തുകൾ പ്രയോഗിച്ചു}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# പ്രമാണം ട്രാഷിലേക്msgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# പ്രമാണം} other {# പ്രമാണങ്ങൾ}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# എഡിറ്റ് സ്ഥാപിക്കാൻ കഴിഞ്ഞില്ല: അതിൻ്റെ വാചകം മാറി. അത് വീണ്ടും ചെയ്യാൻ വീണ്ടും ആവശ്യപ്പെടുക.} other {# എഡിറ്റുകൾ സ്ഥാപിക്കാൻ കഴിഞ്ഞില്ല: അവയുടെ വാചകം മാറി. അവ വീണ്ടും ചെയ്യാൻ വീണ്ടും ആവശ്യപ്പെടുക.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/mr-IN.po b/apps/mobile/locales/mr-IN.poindex 48ff00b89..edcd71151 100644--- a/apps/mobile/locales/mr-IN.po+++ b/apps/mobile/locales/mr-IN.po@@ -70,8 +70,7 @@ msgstr "(ऐच्छिक)"msgid "(required)"msgstr "(आवश्यक)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {संपादन लागू केले} other {# संपादने लागू केली}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# कागदपत्र कचऱ्यात हलmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# दस्तऐवज} other {# दस्तऐवज}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# संपादन ठेवता आले नाही: त्याचा मजकूर बदलला. ते पुन्हा करण्यासाठी पुन्हा विचारा.} other {# संपादने ठेवता आली नाहीत: त्यांचा मजकूर बदलला. त्यांना पुन्हा करण्यास सांगा.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/ms-MY.po b/apps/mobile/locales/ms-MY.poindex 38bec77f9..6e6dbbe86 100644--- a/apps/mobile/locales/ms-MY.po+++ b/apps/mobile/locales/ms-MY.po@@ -70,8 +70,7 @@ msgstr "(pilihan)"msgid "(required)"msgstr "(wajib)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Suntingan digunakan} other {# suntingan digunakan}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# dokumen dialihkan ke Sampah} other {# dokumen dialihkmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# dokumen} other {# dokumen}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {Suntingan # tidak dapat diletakkan: teksnya berubah. Minta lagi untuk buat semula.} other {Suntingan # tidak dapat diletakkan: teksnya berubah. Minta lagi untuk membuat semula mereka.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/ne-NP.po b/apps/mobile/locales/ne-NP.poindex 53400beb3..714bce66d 100644--- a/apps/mobile/locales/ne-NP.po+++ b/apps/mobile/locales/ne-NP.po@@ -70,8 +70,7 @@ msgstr "(वैकल्पिक)"msgid "(required)"msgstr "(अनिवार्य)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {सम्पादन लागू गरियो} other {# सम्पादनहरू लागू गरिए}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# कागजात रद्दीटोकरीमmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# कागजात} other {# कागजातहरू}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# सम्पादन राख्न सकिएन: यसको पाठ परिवर्तन भयो। यसलाई पुन: गर्न सोध्नुहोस्।} other {# सम्पादनहरू राख्न सकिएन: तिनीहरूको पाठ परिवर्तन भयो। तिनीहरूलाई पुन: गर्न सोध्नुहोस्।}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/nl-NL.po b/apps/mobile/locales/nl-NL.poindex b2bcbff0b..e42e511b2 100644--- a/apps/mobile/locales/nl-NL.po+++ b/apps/mobile/locales/nl-NL.po@@ -70,8 +70,7 @@ msgstr "(optioneel)"msgid "(required)"msgstr "(verplicht)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Bewerking toegepast} other {# bewerkingen toegepast}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# document naar de prullenbak verplaatst} other {# documsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# document} other {# documenten}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {#-bewerking kan niet worden geplaatst: de tekst is gewijzigd. Vraag opnieuw om het opnieuw te doen.} other {#-bewerkingen konden niet worden geplaatst: de tekst ervan is gewijzigd. Vraag opnieuw om ze opnieuw uit te voeren.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/no-NO.po b/apps/mobile/locales/no-NO.poindex 11be99bf6..3986266d3 100644--- a/apps/mobile/locales/no-NO.po+++ b/apps/mobile/locales/no-NO.po@@ -70,8 +70,7 @@ msgstr "(valgfritt)"msgid "(required)"msgstr "(påkrevd)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Endring tatt i bruk} other {# endringer tatt i bruk}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# dokument flyttet til papirkurven} other {# dokumentermsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# dokument} other {# dokumenter}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {#-redigering kunne ikke plasseres: teksten er endret. Be igjen om å gjøre det på nytt.} other {#-redigeringer kunne ikke plasseres: teksten deres er endret. Be igjen om å gjøre dem om.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/or-IN.po b/apps/mobile/locales/or-IN.poindex 77ad97a89..903c3b682 100644--- a/apps/mobile/locales/or-IN.po+++ b/apps/mobile/locales/or-IN.po@@ -70,8 +70,7 @@ msgstr "(ଇଚ୍ଛାଧୀନ)"msgid "(required)"msgstr "(ଆବଶ୍ୟକ)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {ସମ୍ପାଦନା ପ୍ରୟୋଗ ହେଲା} other {#ଟି ସମ୍ପାଦନା ପ୍ରୟୋଗ ହେଲା}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# ଡକ୍ୟୁମେଣ୍ଟ୍ ଟ୍ରାଶକmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# ଡକ୍ୟୁମେଣ୍ଟ୍} other {# ଡକ୍ୟୁମେଣ୍ଟ୍}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# ସମ୍ପାଦନା ସ୍ଥାନିତ ହୋଇପାରିବ ନାହିଁ: ଏହାର ପାଠ ବଦଳିଗଲା | ଏହାକୁ ପୁନର୍ବାର କରିବାକୁ କୁହନ୍ତୁ |} other {# ସମ୍ପାଦନା ସ୍ଥାନିତ ହୋଇପାରିବ ନାହିଁ: ସେମାନଙ୍କର ପାଠ ବଦଳିଗଲା | ସେମାନଙ୍କୁ ପୁନର୍ବାର କରିବାକୁ କୁହନ୍ତୁ |}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/pl-PL.po b/apps/mobile/locales/pl-PL.poindex 97d4fe4e2..fe7939c37 100644--- a/apps/mobile/locales/pl-PL.po+++ b/apps/mobile/locales/pl-PL.po@@ -70,8 +70,7 @@ msgstr "(opcjonalne)"msgid "(required)"msgstr "(wymagane)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Zastosowano zmianę} few {Zastosowano # zmiany} many {Zastosowano # zmian} other {Zastosowano # zmiany}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# dokument przeniesiono do Kosza} few {# dokumenty przemsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# dokument} few {# dokumenty} many {# dokumentów} other {# dokumentu}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {Nie można umieścić edycji #: zmieniono jej tekst. Poproś ponownie o ponowne wykonanie.} other {Nie można umieścić zmian w #: zmieniono ich tekst. Poproś ponownie o ich ponowne wykonanie.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/pt-BR.po b/apps/mobile/locales/pt-BR.poindex dc3416505..d8493f093 100644--- a/apps/mobile/locales/pt-BR.po+++ b/apps/mobile/locales/pt-BR.po@@ -70,8 +70,7 @@ msgstr "(opcional)"msgid "(required)"msgstr "(obrigatório)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Edição aplicada} other {# edições aplicadas}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# documento movido para a Lixeira} other {# documentosmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# documento} other {# documentos}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {A edição # não pôde ser colocada: seu texto foi alterado. Peça novamente para refazer.} other {As edições de # não puderam ser colocadas: seu texto foi alterado. Peça novamente para refazê-los.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/pt-PT.po b/apps/mobile/locales/pt-PT.poindex c276deb92..37d3230ff 100644--- a/apps/mobile/locales/pt-PT.po+++ b/apps/mobile/locales/pt-PT.po@@ -70,8 +70,7 @@ msgstr "(opcional)"msgid "(required)"msgstr "(obrigatório)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Edição aplicada} other {# edições aplicadas}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# documento movido para a Lixeira} other {# documentosmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# documento} other {# documentos}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {A edição # não pôde ser colocada: o seu texto foi alterado. Peça novamente para refazer.} other {As edições de # não puderam ser colocadas: o seu texto foi alterado. Peça novamente para os refazer.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/ro-RO.po b/apps/mobile/locales/ro-RO.poindex da27ea0de..d390617e4 100644--- a/apps/mobile/locales/ro-RO.po+++ b/apps/mobile/locales/ro-RO.po@@ -70,8 +70,7 @@ msgstr "(opțional)"msgid "(required)"msgstr "(obligatoriu)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Modificare aplicată} few {# modificări aplicate} other {# de modificări aplicate}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# document mutat în Coșul de gunoi} few {# documentemsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# document} few {# documente} other {# de documente}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {Editarea # nu a putut fi plasată: textul său s-a schimbat. Solicitați din nou să o refaceți.} other {Editările # nu au putut fi plasate: textul acestora s-a schimbat. Solicitați din nou să le refaceți.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/ru-RU.po b/apps/mobile/locales/ru-RU.poindex acab406fe..57d4c4145 100644--- a/apps/mobile/locales/ru-RU.po+++ b/apps/mobile/locales/ru-RU.po@@ -70,8 +70,7 @@ msgstr "(необязательно)"msgid "(required)"msgstr "(обязательно)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Правка применена} one {Применена # правка} few {Применено # правки} many {Применено # правок} other {Применено # правки}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# документ перемещён в корзинуmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# документ} other {# документов} few {# документа} many {# документов}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {Редактирование # не удалось разместить: его текст изменился. Попросите еще раз переделать.} other {Не удалось разместить изменения #: их текст изменился. Попросите еще раз переделать их.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/sk-SK.po b/apps/mobile/locales/sk-SK.poindex 3ea04d0eb..3e6c24f72 100644--- a/apps/mobile/locales/sk-SK.po+++ b/apps/mobile/locales/sk-SK.po@@ -70,8 +70,7 @@ msgstr "(voliteľné)"msgid "(required)"msgstr "(povinné)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Úprava použitá} few {Použité # úpravy} many {Použitej # úpravy} other {Použitých # úprav}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# dokument presunutý do koša} few {# dokumenty presunmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# dokument} few {# dokumenty} other {# dokumentov}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {Úpravu # nebolo možné umiestniť: zmenil sa jej text. Znova požiadajte o zopakovanie.} other {Úpravy # nebolo možné umiestniť: ich text sa zmenil. Znova požiadajte o ich opätovné vykonanie.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/sl-SI.po b/apps/mobile/locales/sl-SI.poindex e5ac77203..0c3dab2f5 100644--- a/apps/mobile/locales/sl-SI.po+++ b/apps/mobile/locales/sl-SI.po@@ -70,8 +70,7 @@ msgstr "(neobvezno)"msgid "(required)"msgstr "(obvezno)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Sprememba uporabljena} one {# sprememba uporabljena} two {# spremembi uporabljeni} few {# spremembe uporabljene} other {# sprememb uporabljenih}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# dokument premaknjen v smetnjak} two {# dokumenta premmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# dokument} two {# dokumenta} few {# dokumenti} other {# dokumentov}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {Urejanja # ni bilo mogoče umestiti: besedilo se je spremenilo. Prosite znova, da ga ponovite.} other {# urejanj ni bilo mogoče umestiti: njihovo besedilo se je spremenilo. Prosite znova, da jih ponovite.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/sq-AL.po b/apps/mobile/locales/sq-AL.poindex 3565ba23b..cc767f097 100644--- a/apps/mobile/locales/sq-AL.po+++ b/apps/mobile/locales/sq-AL.po@@ -70,8 +70,7 @@ msgstr "(opsionale)"msgid "(required)"msgstr "(e detyrueshme)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Ndryshimi u zbatua} other {U zbatuan # ndryshime}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# dokument u zhvendos në Kosh} other {# dokumente u zhmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# dokument} other {# dokumente}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {Redaktimi # nuk mund të vendosej: teksti i tij ndryshoi. Kërkoni sërish ta ribëni.} other {Redaktimet # nuk mund të vendoseshin: teksti i tyre ndryshoi. Kërkoni përsëri t'i ribëni ato.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/sr-SP.po b/apps/mobile/locales/sr-SP.poindex 1954425bc..e04158066 100644--- a/apps/mobile/locales/sr-SP.po+++ b/apps/mobile/locales/sr-SP.po@@ -70,8 +70,7 @@ msgstr "(опционо)"msgid "(required)"msgstr "(обавезно)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Измена је примењена} one {# измена је примењена} few {# измене су примењене} other {# измена је примењено}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# документ је премештен у Отпаmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# документ} few {# документа} other {# докумената}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# измена није могла да се постави: њен текст је промењен. Поново замолите да то поновите.} other {# измене нису могле бити постављене: њихов текст је промењен. Замолите поново да их поновите.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/sv-SE.po b/apps/mobile/locales/sv-SE.poindex eab02fc88..1f7e383a2 100644--- a/apps/mobile/locales/sv-SE.po+++ b/apps/mobile/locales/sv-SE.po@@ -70,8 +70,7 @@ msgstr "(valfritt)"msgid "(required)"msgstr "(obligatoriskt)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Ändringen tillämpades} other {# ändringar tillämpades}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# dokument flyttades till papperskorgen} other {# dokummsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# dokument} other {# dokument}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# redigering kunde inte placeras: dess text ändrades. Be igen att göra om det.} other {# redigeringar kunde inte placeras: deras text ändrades. Be igen att göra om dem.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/ta-IN.po b/apps/mobile/locales/ta-IN.poindex 2bc165dc4..15f2c3dcd 100644--- a/apps/mobile/locales/ta-IN.po+++ b/apps/mobile/locales/ta-IN.po@@ -70,8 +70,7 @@ msgstr "(விருப்பத்தேர்வு)"msgid "(required)"msgstr "(கட்டாயம்)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {திருத்தம் பயன்படுத்தப்பட்டது} other {# திருத்தங்கள் பயன்படுத்தப்பட்டன}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# ஆவணம் குப்பைக்கு நகmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# ஆவணம்} other {# ஆவணங்கள்}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# திருத்தத்தை வைக்க முடியவில்லை: அதன் உரை மாற்றப்பட்டது. அதை மீண்டும் செய்ய மீண்டும் கேளுங்கள்.} other {# திருத்தங்களைச் செய்ய முடியவில்லை: அவற்றின் உரை மாற்றப்பட்டது. அவற்றை மீண்டும் செய்ய மீண்டும் கேளுங்கள்.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/te-IN.po b/apps/mobile/locales/te-IN.poindex 8ffe92f7d..3046ef620 100644--- a/apps/mobile/locales/te-IN.po+++ b/apps/mobile/locales/te-IN.po@@ -70,8 +70,7 @@ msgstr "(ఐచ్ఛికం)"msgid "(required)"msgstr "(తప్పనిసరి)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {సవరణ వర్తింపజేయబడింది} other {# సవరణలు వర్తింపజేయబడ్డాయి}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# పత్రం ట్రాష్కి తరలmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# పత్రం} other {# పత్రాలు}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# సవరణను ఉంచడం సాధ్యపడలేదు: దాని వచనం మార్చబడింది. దీన్ని మళ్లీ చేయమని మళ్లీ అడగండి.} other {# సవరణలు ఉంచడం సాధ్యపడలేదు: వాటి వచనం మార్చబడింది. వాటిని మళ్లీ చేయమని మళ్లీ అడగండి.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/th-TH.po b/apps/mobile/locales/th-TH.poindex 0c7a21eb6..cfcb4c0c7 100644--- a/apps/mobile/locales/th-TH.po+++ b/apps/mobile/locales/th-TH.po@@ -70,8 +70,7 @@ msgstr "(ไม่บังคับ)"msgid "(required)"msgstr "(จำเป็น)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {ใช้การแก้ไขแล้ว} other {ใช้การแก้ไข # รายการแล้ว}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {ย้ายเอกสาร # รายการไmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# เอกสาร} other {# เอกสาร}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {ไม่สามารถวางการแก้ไข # ได้ เนื่องจากข้อความมีการเปลี่ยนแปลง ถามอีกครั้งเพื่อทำซ้ำ} other {ไม่สามารถวางการแก้ไข # ได้ เนื่องจากข้อความมีการเปลี่ยนแปลง ถามอีกครั้งเพื่อทำซ้ำ}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/tr-TR.po b/apps/mobile/locales/tr-TR.poindex 0f51ee9e6..ba26186d7 100644--- a/apps/mobile/locales/tr-TR.po+++ b/apps/mobile/locales/tr-TR.po@@ -70,8 +70,7 @@ msgstr "(isteğe bağlı)"msgid "(required)"msgstr "(zorunlu)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Düzenleme uygulandı} other {# düzenleme uygulandı}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# belge Çöp Kutusu'na taşındı} other {# belge Çömsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# belge} other {# belge}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# düzenlemesi yerleştirilemedi: metni değiştirildi. Yeniden yapılmasını tekrar isteyin.} other {# düzenlemeleri yerleştirilemedi: metinleri değiştirildi. Tekrar yapmalarını isteyin.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/uk-UA.po b/apps/mobile/locales/uk-UA.poindex 3575cdb00..84721952c 100644--- a/apps/mobile/locales/uk-UA.po+++ b/apps/mobile/locales/uk-UA.po@@ -70,8 +70,7 @@ msgstr "(необов’язково)"msgid "(required)"msgstr "(обов’язково)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Зміну застосовано} one {Застосовано # зміну} few {Застосовано # зміни} many {Застосовано # змін} other {Застосовано # зміни}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# документ переміщено в кошик}msgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# документ} few {# документи} many {# документів} other {# документа}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {Не вдалося розмістити правку #: її текст змінено. Попросіть ще раз переробити.} other {Не вдалося розмістити зміни #: їхній текст змінено. Попросіть ще раз їх переробити.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/uz-UZ.po b/apps/mobile/locales/uz-UZ.poindex 418ce5e3a..1a7dfe17f 100644--- a/apps/mobile/locales/uz-UZ.po+++ b/apps/mobile/locales/uz-UZ.po@@ -70,8 +70,7 @@ msgstr "(ixtiyoriy)"msgid "(required)"msgstr "(majburiy)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Tahrir qo'llandi} other {# ta tahrir qo'llandi}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {# ta hujjat chiqindiga o‘tkazildi} other {# ta hujjatmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# ta hujjat} other {# ta hujjat}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {# tahririni joylab boʻlmadi: uning matni oʻzgartirildi. Buni qayta bajarishni so'rang.} other {# tahrirlarini joylashtirib boʻlmadi: ularning matni oʻzgartirildi. Ularni qayta tiklashni so'rang.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/vi-VN.po b/apps/mobile/locales/vi-VN.poindex 66d93ac38..04ff5465d 100644--- a/apps/mobile/locales/vi-VN.po+++ b/apps/mobile/locales/vi-VN.po@@ -70,8 +70,7 @@ msgstr "(không bắt buộc)"msgid "(required)"msgstr "(bắt buộc)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Đã áp dụng chỉnh sửa} other {Đã áp dụng # chỉnh sửa}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {Đã chuyển # tài liệu vào Thùng rác} other {Đmsgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# tài liệu} other {# tài liệu}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {Không thể đặt bản chỉnh sửa #: văn bản của nó đã thay đổi. Yêu cầu làm lại lần nữa.} other {Không thể đặt các chỉnh sửa #: văn bản của chúng đã thay đổi. Yêu cầu một lần nữa để làm lại chúng.}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/zh-CN.po b/apps/mobile/locales/zh-CN.poindex f916f49ea..5d32b9df3 100644--- a/apps/mobile/locales/zh-CN.po+++ b/apps/mobile/locales/zh-CN.po@@ -70,8 +70,7 @@ msgstr "(选填)"msgid "(required)"msgstr "(必填)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {已应用修改} other {已应用 # 处修改}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {已将 # 个文件移至垃圾箱} other {已将 # 个msgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {#份文档} other {#份文档}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {无法放置 # 编辑:其文本已更改。再次要求重做。} other {无法放置 # 编辑:其文本已更改。再次要求重做。}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/zh-TW.po b/apps/mobile/locales/zh-TW.poindex be2e969e7..99fd1e38a 100644--- a/apps/mobile/locales/zh-TW.po+++ b/apps/mobile/locales/zh-TW.po@@ -70,8 +70,7 @@ msgstr "(選填)"msgid "(required)"msgstr "(必填)"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {已套用修改} other {已套用 # 處修改}}"@@ -174,6 +173,11 @@ msgstr "{0, plural, one {已將 # 份文件移至垃圾箱} other {已將 # 份msgid "{0, plural, one {# document} other {# documents}}"msgstr "{0, plural, one {# 份文件} other {# 份文件}}"+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr "{0, plural, one {無法放置 # 編輯:其文字已更改。再次要求重做。} other {無法放置 # 編輯:其文字已更改。再次要求重做。}}"+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/locales/zu-ZA.po b/apps/mobile/locales/zu-ZA.poindex 471b6c50e..67f7b2e82 100644--- a/apps/mobile/locales/zu-ZA.po+++ b/apps/mobile/locales/zu-ZA.po@@ -70,8 +70,7 @@ msgstr ""msgid "(required)"msgstr ""-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts+#. placeholder {0}: applied.length#: src/features/assistant/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr ""@@ -174,6 +173,11 @@ msgstr ""msgid "{0, plural, one {# document} other {# documents}}"msgstr ""+#. placeholder {0}: stale.length+#: src/features/assistant/proposals.ts+msgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"+msgstr ""+#. placeholder {0}: entries.length#: src/features/write/outline.tsxmsgid "{0, plural, one {# entry} other {# entries}}"diff --git a/apps/mobile/scripts/assistant-proposals.test.mjs b/apps/mobile/scripts/assistant-proposals.test.mjsnew file mode 100644index 000000000..151a2f954--- /dev/null+++ b/apps/mobile/scripts/assistant-proposals.test.mjs@@ -0,0 +1,529 @@+import assert from "node:assert/strict";+import { readFileSync } from "node:fs";+import { createRequire } from "node:module";+import { beforeEach, test } from "node:test";++const mobileRequire = createRequire(new URL("../package.json", import.meta.url));+const serverRequire = createRequire(new URL("../../server/package.json", import.meta.url));+const { buildSync, transformSync } = createRequire(serverRequire.resolve("tsx"))("esbuild");+const { produce } = mobileRequire("immer");+function evaluate(code, dependencies) {+ const module = { exports: {} };+ new Function("require", "module", "exports", "setTimeout", code)(+ (name) => {+ assert.ok(name in dependencies, `Missing boundary: ${name}`);+ return dependencies[name];+ },+ module,+ module.exports,+ () => {},+ );+ return module.exports;+}+const shared = evaluate(+ buildSync({+ entryPoints: [new URL("../../../packages/resume/src/proposals.ts", import.meta.url).pathname],+ bundle: true,+ platform: "node",+ format: "cjs",+ write: false,+ }).outputFiles[0].text,+ {},+);+let scope = "account";+const toasts = [];+let suppressed = false;+let failedSave = false;+const documentSaves = [];+const { createDraftStore } = evaluate(+ buildSync({+ entryPoints: [new URL("../src/draft/store.ts", import.meta.url).pathname],+ bundle: true,+ platform: "node",+ format: "cjs",+ write: false,+ external: ["zustand", "immer"],+ }).outputFiles[0].text,+ { zustand: mobileRequire("zustand"), immer: { produce } },+);+function store(kind) {+ let runtime;+ let adapter;+ let environment;+ let storage = new Map();+ const useStore = (select) => select(useStore.getState());+ useStore.getState = () => {+ const state = runtime.store.getState();+ return { ...state, update: suppressed ? () => {} : state.update };+ };+ useStore.subscribe = (listener) => runtime.store.subscribe(listener);+ useStore.load = async (content) => {+ let document = {+ id: kind,+ name: kind,+ content,+ data: { summary: { content } },+ isLocked: false,+ revision: 1,+ updatedAt: new Date(),+ };+ storage = new Map();+ adapter = {+ kind,+ delay: 800,+ read: async () => document,+ data: (doc) => (kind === "resume" ? doc.data : doc),+ withData: (doc, data) => (kind === "resume" ? { ...doc, data } : data),+ merge: (saved, _submitted, current) => ({ ...current, ...saved, data: current.data, content: current.content }),+ matches: (left, right) =>+ JSON.stringify(kind === "resume" ? left.data : left.content) ===+ JSON.stringify(kind === "resume" ? right.data : right.content),+ version: (doc) => doc.revision,+ parse: (doc) => ({ ...doc, updatedAt: new Date(doc.updatedAt) }),+ save: async (doc, _baseline, _session, _force, owner, applications) => {+ documentSaves.push({ kind, owner, applications });+ if (failedSave) throw new Error("Offline");+ document = { ...doc, revision: doc.revision + 1 };+ return document;+ },+ copy: async () => {},+ isConflict: () => false,+ };+ environment = {+ storage: {+ getItemSync: (key) => storage.get(key) ?? null,+ setItemSync: (key, value) => storage.set(key, value),+ removeItemSync: (key) => storage.delete(key),+ getAllKeysSync: () => [...storage.keys()],+ },+ scope: async () => scope,+ online: () => true,+ focused: () => false,+ };+ runtime = createDraftStore(adapter, environment);+ await runtime.store.getState().open(kind);+ };+ useStore.remoteUndo = async (content) => {+ const current = runtime.store.getState().document;+ const remote = { ...current, revision: current.revision + 1, updatedAt: new Date(current.updatedAt.getTime() + 1) };+ if (kind === "resume") remote.data = { ...current.data, summary: { ...current.data.summary, content } };+ else remote.content = content;+ adapter.read = async () => remote;+ await runtime.refresh();+ };+ useStore.restart = async () => {+ runtime.suspend();+ runtime = createDraftStore(adapter, environment);+ await runtime.store.getState().open(kind);+ };+ useStore.setState = (...args) => runtime.store.setState(...args);+ return useStore;+}+const resumeStore = store("resume");+const letterStore = store("letter");+const dependencies = {+ react: { useMemo: (fn) => fn() },+ immer: { produce },+ zustand: {+ create: (initializer) => {+ const store = mobileRequire("zustand/vanilla").createStore(initializer);+ return Object.assign((selector) => selector(store.getState()), store);+ },+ },+ "@lingui/core/macro": {+ plural: (n, forms) => (n === 1 ? (forms[1] ?? forms.one) : forms.other).replace("#", String(n)),+ t: (parts) => parts.join(""),+ },+ "@reactive-resume/resume/proposals": shared,+ "@/auth/session": { getAccountScope: () => scope },+ "@/draft": { useResumeStore: resumeStore, useLetterStore: letterStore },+ "@/draft/adapters": { letterAdapter: { matches: (document, data) => document.content === data.content } },+ "@/features/applications/queries": { useApplications: () => ({ data: [] }) },+ "@/ui": { showToast: (toast) => toasts.push(toast), dismissToast: () => {} },+};+const load = (name, extra = {}) =>+ evaluate(+ transformSync(readFileSync(new URL(`../src/features/assistant/${name}.ts`, import.meta.url), "utf8"), {+ loader: "ts",+ format: "cjs",+ }).code,+ { ...dependencies, ...extra },+ );+const proposals = load("proposals");+const documents = load("document", { "./proposals": proposals });+const edit = (id, after) => ({+ id,+ target: { sectionId: "summary", field: "content" },+ location: "Summary",+ before: "<p>Old</p>",+ after,+ why: "Clearer",+ status: "pending",+ source: "assistant",+});+beforeEach(async () => {+ scope = "account";+ suppressed = false;+ failedSave = false;+ documentSaves.length = 0;+ toasts.length = 0;+ await resumeStore.load("<p>Old</p>");+ await letterStore.load("<p>Old</p>");+});++for (const kind of ["resume", "letter"]) {+ const open = () =>+ kind === "resume" ? documents.useResumeAssistantDocument("resume") : documents.useLetterAssistantDocument("letter");+ const owner = kind === "resume" ? resumeStore : letterStore;+ const current = () => owner.getState();+ test(`${kind} keeps real acceptance identity through refinements, save echoes and explicit Undo/Redo`, async () => {+ const doc = open();+ const rewrite = edit("rewrite", "<p>Rewritten</p>");+ const addition = edit("addition", "<p>Old</p><p>Mentored two designers</p>");+ const conflict = edit("conflict", "<p>Conflicting rewrite</p>");+ assert.deepEqual(doc.accept([rewrite, addition, conflict]), { applied: [rewrite, addition], stale: [conflict] });+ assert.match(toasts[0].message, /^2 edits applied · 1 edit couldn't be placed/);+ current().update(+ (draft) => {+ if (kind === "resume") draft.summary.content = "<p>Refined</p><p>Refined mentoring</p>";+ else draft.content = "<p>Refined</p><p>Refined mentoring</p>";+ },+ { newStep: true },+ );+ await current().flush();+ assert.equal(open().stateOf(addition), "accepted");+ assert.deepEqual(doc.accept([addition]), { applied: [], stale: [] });+ current().undo();+ assert.equal(+ open().stateOf({ ...addition, status: "accepted" }),+ "accepted",+ "Undo refinement retains original acceptance",+ );+ current().undo();+ assert.equal(+ open().stateOf({ ...addition, status: "accepted" }),+ "pending",+ "Undo acceptance explicitly restores pending",+ );+ current().redo();+ assert.equal(open().stateOf({ ...addition, status: "accepted" }), "accepted");+ current().redo();+ assert.equal(open().stateOf(addition), "accepted");+ });+ test(`${kind} refuses a stale document/account, locked draft or suppressed store update without claiming success`, () => {+ const doc = open();+ const rewrite = edit("rewrite", "<p>Rewritten</p>");+ for (const change of [+ () => {+ scope = "another account";+ },+ () => {+ owner.setState({ document: { ...current().document, id: "another document" } });+ },+ () => {+ owner.setState({ locked: true });+ },+ () => {+ suppressed = true;+ },+ ]) {+ change();+ assert.deepEqual(doc.accept([rewrite]), { applied: [], stale: [] });+ scope = "account";+ owner.setState({ document: { ...current().document, id: kind }, locked: false });+ suppressed = false;+ }+ assert.deepEqual(toasts, []);+ });+}++// Drive the public ChatView through its component tree; only platform/network boundaries are replaced.+test("native chat records real successes and explicit history changes, never refinements, and restores redo", async () => {+ const part = {+ type: "tool-propose_edits",+ toolCallId: "call",+ state: "output-available",+ output: { edits: [edit("rewrite", "<p>Rewritten</p>"), edit("conflict", "<p>Conflict</p>")], skipped: [] },+ };+ const message = { id: "message", role: "assistant", parts: [part] };+ const records = [];+ const componentHooks = new Map();+ let active;+ let cursor;+ let dirty;+ let effects;+ const slot = () => {+ const index = cursor++;+ return [active, index];+ };+ const element = (type, props, ...children) => ({+ type,+ props: { ...props, ...(children.length ? { children } : {}) },+ });+ const hooks = {+ createElement: element,+ useState: (initial) => {+ const [state, index] = slot();+ if (!(index in state)) state[index] = typeof initial === "function" ? initial() : initial;+ return [+ state[index],+ (next) => {+ const value = typeof next === "function" ? next(state[index]) : next;+ if (!Object.is(value, state[index])) {+ state[index] = value;+ dirty = true;+ }+ },+ ];+ },+ useRef: (initial) => hooks.useState(() => ({ current: initial }))[0],+ useMemo: (fn, deps) => {+ const [state, index] = slot();+ if (!state[index] || deps.some((dep, i) => !Object.is(dep, state[index].deps[i])))+ state[index] = { deps, value: fn() };+ return state[index].value;+ },+ useEffect: (fn, deps) => {+ const [state, index] = slot();+ if (!deps || !state[index] || deps.some((dep, i) => !Object.is(dep, state[index][i]))) effects.push(fn);+ state[index] = deps;+ },+ useEffectEvent: (fn) => fn,+ };+ hooks.useLayoutEffect = hooks.useEffect;+ const theme = { colors: {}, radius: {}, space: {} };+ const { ChatView } = evaluate(+ "const React = require('react');\n" ++ transformSync(readFileSync(new URL("../src/features/assistant/chat-view.tsx", import.meta.url), "utf8"), {+ loader: "tsx",+ format: "cjs",+ jsx: "transform",+ }).code,+ {+ ...dependencies,+ react: hooks,+ "@legendapp/list/react-native": { LegendList: "LegendList" },+ "@lingui/react/macro": { Trans: "Trans", useLingui: () => ({ t: (parts) => parts.join("") }) },+ "@orpc/client": { ORPCError: class extends Error {} },+ "@tanstack/react-query": {+ useQuery: () => ({ data: { messages: [message], thread: {}, isReadOnly: false }, isFetchedAfterMount: true }),+ useQueryClient: () => ({}),+ },+ ai: {},+ "expo-clipboard": {},+ "expo-document-picker": {},+ "expo-file-system": {},+ "react-native": { View: "View", AppState: { addEventListener: () => ({ remove() {} }) } },+ "react-native-keyboard-controller": { KeyboardAvoidingView: "KeyboardAvoidingView" },+ "./chat": {+ refreshThreads() {},+ useAssistantChat: () => ({+ messages: [message],+ status: "ready",+ instance: { status: "ready", stop: async () => {} },+ }),+ },+ "./messages": { MessageView: "MessageView" },+ "./proposals": proposals,+ "./recovery": load("recovery"),+ "./tool-approvals": {},+ "@/api/client": {+ client: {+ agent: {+ messages: {+ setEditStatus: async (input) => {+ records.push(input.edits);+ },+ },+ },+ },+ orpc: { agent: { threads: { get: { queryOptions: () => ({ queryKey: ["thread"] }) } } } },+ },+ "@/auth/session": { ...dependencies["@/auth/session"], useSession: () => ({ status: "signed-in" }) },+ "@/ui": { ...dependencies["@/ui"], useTheme: () => theme },+ "@/ui/use-pull-refresh": { usePullRefresh: () => ({}) },+ },+ );+ const render = () => {+ let list;+ let passes = 0;+ do {+ dirty = false;+ effects = [];+ const visit = (node) => {+ if (!node || typeof node !== "object") return;+ if (Array.isArray(node)) {+ node.forEach(visit);+ return;+ }+ if (+ typeof node.type === "function" &&+ ["ChatView", "ScopedChatView", "Session", "Conversation"].includes(node.type.name)+ ) {+ if (!componentHooks.has(node.type)) componentHooks.set(node.type, []);+ active = componentHooks.get(node.type);+ cursor = 0;+ visit(node.type(node.props));+ } else {+ if (node.type === "LegendList") list = node;+ visit(node.props?.children);+ }+ };+ visit(+ element(ChatView, {+ threadId: "thread",+ context: { document: true, posting: true },+ document: documents.useResumeAssistantDocument("resume"),+ connection: "Local",+ privacy: "",+ placeholder: "",+ assistantName: "Assistant",+ }),+ );+ for (const effect of effects) effect();+ assert.ok(++passes < 10, "Chat must settle");+ } while (dirty);+ assert.ok(list, "Mounted chat exposes its message list");+ return list.props.extraData.handlers;+ };+ let handlers = render();+ handlers.onAccept(message, part, part.output.edits);+ handlers = render();+ await resumeStore.getState().flush();+ assert.deepEqual(documentSaves.at(-1).applications, { rewrite: true });+ assert.deepEqual(records, []);+ resumeStore.getState().update(+ (draft) => {+ draft.summary.content = "<p>Manual refinement</p>";+ },+ { newStep: true },+ );+ handlers = render();+ assert.equal(records.length, 0, "Chat must not race the draft save");+ assert.equal(handlers.stateOf(part.output.edits[0]), "accepted");+ resumeStore.getState().undo();+ render();+ assert.equal(records.length, 0, "Undoing a refinement retains acceptance");+ resumeStore.getState().undo();+ render();+ await resumeStore.getState().flush();+ assert.deepEqual(documentSaves.at(-1).applications, { rewrite: false });+ resumeStore.getState().redo();+ render();+ await resumeStore.getState().flush();+ assert.deepEqual(documentSaves.at(-1).applications, { rewrite: true });+ resumeStore.getState().redo();+ handlers = render();+ handlers.onAccept(message, part, [part.output.edits[0]]);+ assert.equal(records.length, 0, "Chat never dispatches out-of-order acceptance/history writes");+ await resumeStore.getState().flush();+ await resumeStore.remoteUndo(part.output.edits[0].before);+ handlers = render();+ const pending = proposals.toProposals(part, handlers.statuses)[0];+ assert.equal(handlers.stateOf(pending), "pending", "Mounted chat must honor the newer remote Undo");+ await Promise.resolve();+});++for (const kind of ["resume", "letter"]) {+ test(`${kind} preserves offscreen Undo, failed saves and pending decisions across a fresh draft owner`, async () => {+ const owner = kind === "resume" ? resumeStore : letterStore;+ const open = () =>+ kind === "resume" ? documents.useResumeAssistantDocument(kind) : documents.useLetterAssistantDocument(kind);+ const pending = edit("durable", "<p>Rewritten</p>");+ assert.equal(open().accept([pending]).applied.length, 1);+ await owner.getState().flush();+ assert.deepEqual(documentSaves.at(-1).applications, { durable: true });+ owner.getState().undo();+ failedSave = true;+ await owner.getState().flush();+ assert.deepEqual(documentSaves.at(-1).applications, { durable: false });+ await owner.restart();+ assert.equal(open().stateOf({ ...pending, status: "accepted" }), "pending");+ failedSave = false;+ await owner.getState().flush();+ assert.deepEqual(documentSaves.at(-1).applications, { durable: false });+ await owner.getState().close();+ await owner.getState().open(kind);+ assert.equal(open().stateOf({ ...pending, status: "accepted" }), "pending");+ });+ test(`${kind} rejects a quote-normalized no-op without recording acceptance`, () => {+ const owner = kind === "resume" ? resumeStore : letterStore;+ const open = () =>+ kind === "resume" ? documents.useResumeAssistantDocument(kind) : documents.useLetterAssistantDocument(kind);+ const pending = {+ ...edit("noop", `<p>They've said "yes".</p>`),+ before: "<p>They've said "yes".</p>",+ };+ owner.getState().update(+ (draft) => {+ if (kind === "resume") draft.summary.content = pending.after;+ else draft.content = pending.after;+ },+ { newStep: true },+ );+ assert.equal(open().accept([pending]).applied.length, 0);+ assert.equal(owner.getState().proposalApplications[pending.id], undefined);+ assert.equal(open().stateOf(pending), "stale");+ });+}++test("both native API adapters include unsynchronized proposal decisions in their document save", async () => {+ const requests = [];+ const { resumeAdapter, letterAdapter } = evaluate(+ buildSync({+ entryPoints: [new URL("../src/draft/adapters.ts", import.meta.url).pathname],+ bundle: true,+ platform: "node",+ format: "cjs",+ write: false,+ external: ["@/api/client", "@lingui/core/macro", "@orpc/client"],+ }).outputFiles[0].text,+ {+ "@/api/client": {+ client: {+ resume: {+ update: async (input, context) => {+ requests.push({ input, context });+ return {};+ },+ },+ coverLetters: {+ update: async (input, context) => {+ requests.push({ input, context });+ return {};+ },+ },+ },+ },+ "@lingui/core/macro": dependencies["@lingui/core/macro"],+ "@orpc/client": { ORPCError: class extends Error {} },+ },+ );+ const document = {+ id: "document",+ data: {},+ revision: 3,+ updatedAt: new Date(),+ senderLinked: true,+ style: { basics: {}, metadata: {} },+ };+ for (const adapter of [resumeAdapter, letterAdapter]) {+ await adapter.save(document, document, "session", false, "account", { edit: false });+ assert.deepEqual(requests.at(-1).input.proposalApplications, { edit: false });+ assert.deepEqual(requests.at(-1).context, { context: { scope: "account" } });+ }+});++test("closed native chat never republishes old pending marks after an external receipt rebase", async () => {+ const addition = edit("addition", "<p>Old</p><p>Documented handoffs</p>");+ proposals.publishProposals("resume", [addition]);+ const marked = () => proposals.useMarkedResumeData("resume", resumeStore.getState().data);+ assert.equal(marked().pending, 1);+ documents.useResumeAssistantDocument("resume").accept([addition]);+ await resumeStore.getState().flush();+ assert.equal(marked().pending, 0);+ await resumeStore.remoteUndo(addition.before);+ assert.equal(marked().pending, 0, "Old marks require authoritative receipt refresh after rebasing");+ proposals.publishProposals("resume", [addition]);+ assert.equal(marked().pending, 1);+});diff --git a/apps/mobile/scripts/experience.test.mjs b/apps/mobile/scripts/experience.test.mjsindex 69ac28548..435d3f073 100644--- a/apps/mobile/scripts/experience.test.mjs+++ b/apps/mobile/scripts/experience.test.mjs@@ -868,6 +868,7 @@ console.log("PASS native Japanese preset dates survive custom-mode round trip");reset();const mobileRequire = createRequire(new URL("../package.json", import.meta.url));const { createDraftStore } = load("draft/store.ts", {+ "@reactive-resume/resume/proposals": mobileRequire("@reactive-resume/resume/proposals"),immer: mobileRequire("immer"),zustand: mobileRequire("zustand"),"@reactive-resume/utils/string": { generateId: () => "photo-session" },diff --git a/apps/mobile/scripts/proposal-sync.test.mjs b/apps/mobile/scripts/proposal-sync.test.mjsnew file mode 100644index 000000000..d35d7c448--- /dev/null+++ b/apps/mobile/scripts/proposal-sync.test.mjs@@ -0,0 +1,371 @@+import assert from "node:assert/strict";+import { createRequire } from "node:module";+import { test } from "node:test";+import { fileURLToPath } from "node:url";+const serverRequire = createRequire(new URL("../../server/package.json", import.meta.url));+const mobileRequire = createRequire(new URL("../package.json", import.meta.url));+const { buildSync } = createRequire(serverRequire.resolve("tsx"))("esbuild");+const root = fileURLToPath(new URL("../../../", import.meta.url));+function evaluate(options, boundaries = {}) {+ const code = buildSync({ bundle: true, platform: "node", format: "cjs", write: false, ...options }).outputFiles[0]+ .text;+ const module = { exports: {} };+ new Function("require", "module", "exports", "setTimeout", code)(+ (name) => {+ assert.ok(name in boundaries, name);+ return boundaries[name];+ },+ module,+ module.exports,+ () => 0,+ );+ return module.exports;+}+const { createDraftStore } = evaluate(+ { entryPoints: [root + "apps/mobile/src/draft/store.ts"], external: ["zustand", "immer"] },+ { zustand: mobileRequire("zustand"), immer: mobileRequire("immer") },+);+const shared = evaluate({ entryPoints: [root + "packages/resume/src/proposals.ts"] });+const fixtures = evaluate({+ stdin: {+ contents:+ 'export {defaultResumeData} from "@reactive-resume/schema/resume/default"; export {copyCoverLetterStyle} from "@reactive-resume/resume/cover-letter";',+ resolveDir: root + "apps/mobile",+ loader: "ts",+ },+});+const requests = [];+let documents;+let online = true;+let fail = false;+let blocked = false;+let scope = "https://review.invalid:alice";+let responseGate = null;+const { ORPCError } = await import("@orpc/client");+function network(kind) {+ return {+ getById: async () => structuredClone(documents[kind]),+ update: async (input) => {+ requests.push(structuredClone({ kind, input }));+ if (responseGate) await responseGate;+ if (fail) throw new Error("offline");+ const old = documents[kind];+ if (kind === "resume" && input.expectedUpdatedAt && input.expectedUpdatedAt.getTime() !== old.updatedAt.getTime())+ throw new ORPCError("RESUME_VERSION_CONFLICT");+ if (kind === "letter" && input.expectedRevision !== old.revision) throw new ORPCError("CONFLICT");+ const next = { ...old, ...input, revision: old.revision + 1, updatedAt: new Date(old.updatedAt.getTime() + 1) };+ documents[kind] = next;+ return structuredClone(next);+ },+ };+}+const adapters = evaluate(+ {+ entryPoints: [root + "apps/mobile/src/draft/adapters.ts"],+ external: ["@/api/client", "@lingui/core/macro", "@orpc/client"],+ },+ {+ "@/api/client": { client: { resume: network("resume"), coverLetters: network("letter") } },+ "@lingui/core/macro": { t: (x) => x.join("") },+ "@orpc/client": { ORPCError },+ },+);+const proposal = {+ id: "receipt",+ before: "<p>Old</p>",+ after: "<p>New</p>",+ target: { sectionId: "summary", field: "content" },+ status: "pending",+ source: "assistant",+ location: "Summary",+ why: "Rewrite",+};+function setup(kind) {+ requests.length = 0;+ online = true;+ fail = false;+ blocked = false;+ scope = "https://review.invalid:alice";+ responseGate = null;+ const now = new Date("2026-10-31T00:00:00Z");+ const data = structuredClone(fixtures.defaultResumeData);+ data.summary.content = proposal.before;+ documents = {+ resume: {+ id: "resume",+ name: "Resume",+ slug: "resume",+ tags: [],+ data,+ isPublic: false,+ showDownloadButtons: true,+ isLocked: false,+ revision: 1,+ createdAt: now,+ updatedAt: now,+ },+ letter: {+ id: "letter",+ name: "Letter",+ recipient: "",+ content: proposal.before,+ greeting: null,+ signOff: null,+ recipientName: "",+ recipientCompany: "",+ letterDate: null,+ sourceResumeId: null,+ sourceApplicationId: null,+ senderLinked: false,+ designLinked: false,+ style: fixtures.copyCoverLetterStyle(data),+ layout: "structured",+ revision: 1,+ isLocked: false,+ createdAt: now,+ updatedAt: now,+ },+ };+ const storage = new Map();+ const environment = {+ storage: {+ getItemSync: (k) => storage.get(k) ?? null,+ setItemSync: (k, v) => {+ if (blocked) throw new Error("full");+ storage.set(k, v);+ },+ removeItemSync: (k) => storage.delete(k),+ getAllKeysSync: () => [...storage.keys()],+ },+ scope: async () => scope,+ online: () => online,+ focused: () => false,+ };+ const adapter = adapters[kind + "Adapter"];+ const owner = () => createDraftStore(adapter, environment);+ return { owner, storage, environment };+}+function accept(s, kind) {+ const ids = [];+ s().update(+ (d) => {+ const r = shared.applyProposals(+ [proposal],+ () => (kind === "resume" ? d.summary.content : d.content),+ (_, value) => {+ if (kind === "resume") d.summary.content = value;+ else d.content = value;+ },+ s().proposalApplications,+ );+ ids.push(...r.applied.map((p) => p.id));+ },+ { newStep: true, proposalIds: ids },+ );+}+for (const kind of ["resume", "letter"]) {+ test(`${kind} refresh must honor newer remote Undo receipt`, async () => {+ const { owner } = setup(kind);+ const o = owner();+ const s = o.store.getState;+ await s().open(kind);+ accept(s, kind);+ await s().flush();+ documents[kind] = {+ ...documents[kind],+ revision: documents[kind].revision + 1,+ updatedAt: new Date(documents[kind].updatedAt.getTime() + 1),+ };+ await o.refresh();+ assert.deepEqual(s().proposalApplications, {}, "Same-content external revisions expire confirmed receipts too");+ const remote = structuredClone(documents[kind]);+ if (kind === "resume") remote.data.summary.content = proposal.before;+ else remote.content = proposal.before;+ remote.updatedAt = new Date(remote.updatedAt.getTime() + 1);+ remote.revision++;+ documents[kind] = remote;+ await o.refresh();+ const content = kind === "resume" ? s().data.summary.content : s().data.content;+ assert.equal(shared.getStateIn(content, proposal, s().proposalApplications), "pending");+ });+ test(`${kind} inflight Undo survives ack through real adapter`, async () => {+ const { owner } = setup(kind);+ const o = owner();+ const s = o.store.getState;+ await s().open(kind);+ accept(s, kind);+ let release;+ responseGate = new Promise((resolve) => {+ release = resolve;+ });+ const writing = s().flush();+ for (let i = 0; i < 10 && requests.length === 0; i++) await Promise.resolve();+ assert.equal(requests.length, 1);+ s().undo();+ responseGate = null;+ release();+ await writing;+ assert.deepEqual(+ requests.map((r) => r.input.proposalApplications),+ [{ receipt: true }, { receipt: false }],+ );+ assert.equal(kind === "resume" ? documents[kind].data.summary.content : documents[kind].content, proposal.before);+ assert.equal(s().status, "saved");+ });+ test(`${kind} unavailable storage retains unsent Undo in memory across navigation, but fresh process cannot recover it`, async () => {+ const { owner } = setup(kind);+ const o = owner();+ const s = o.store.getState;+ await s().open(kind);+ accept(s, kind);+ await s().flush();+ blocked = true;+ fail = true;+ s().undo();+ await s().flush();+ assert.equal(s().status, "error");+ await s().close();+ await s().open(kind);+ assert.equal(s().proposalApplications.receipt, false);+ // This is an explicit limit, not proof of durable restart when storage fails.+ o.suspend();+ const fresh = owner();+ await fresh.store.getState().open(kind);+ assert.equal(fresh.store.getState().proposalApplications.receipt, true);+ });+}++for (const kind of ["resume", "letter"])+ test(`${kind} restart must not advance an old Undo to a newer same-content baseline`, async () => {+ const { owner, storage } = setup(kind);+ const o = owner();+ const s = o.store.getState;+ await s().open(kind);+ accept(s, kind);+ await s().flush();+ fail = true;+ s().undo();+ await s().flush();+ o.suspend();+ // Other client Undo, reaccept, then manually restore old text. Its receipt remains accepted.+ const remote = structuredClone(documents[kind]);+ if (kind === "resume") remote.data.summary.content = proposal.before;+ else remote.content = proposal.before;+ remote.revision += 3;+ remote.updatedAt = new Date(remote.updatedAt.getTime() + 3);+ documents[kind] = adapters[kind + "Adapter"].parse(remote);+ fail = false;+ requests.length = 0;+ const fresh = owner();+ await fresh.store.getState().open(kind);+ assert.equal(requests.length, 0, "Must retain conflict/original version instead of rebasing stale decision");+ assert.ok(fresh.store.getState().conflict, "Recovery must expose an explicit conflict");+ assert.equal(fresh.store.getState().proposalApplications.receipt, false);+ const queued = JSON.parse([...storage.values()][0]);+ assert.equal(queued.baseline.revision, 2, "Queued decision retains its original revision across reload");+ fresh.suspend();+ const replay = owner();+ await replay.replay();+ assert.equal(requests.length, 1);+ assert.equal(+ kind === "resume" ? requests[0].input.expectedUpdatedAt.getTime() : requests[0].input.expectedRevision,+ kind === "resume" ? new Date(queued.baseline.updatedAt).getTime() : queued.baseline.revision,+ );+ assert.equal(documents[kind].revision, remote.revision, "Stale outbox cannot overwrite the newer decision");+ assert.deepEqual(JSON.parse([...storage.values()][0]).pendingProposalApplications, { receipt: false });+ await replay.store.getState().open(kind);+ await replay.store.getState().resolveConflict("use-theirs");+ assert.deepEqual(replay.store.getState().proposalApplications, {});+ assert.equal(replay.store.getState().conflict, null);+ });++for (const kind of ["resume", "letter"])+ test(`${kind} matching authored recovery drops confirmed receipts from the older revision`, async () => {+ const { owner } = setup(kind);+ const old = owner();+ const state = old.store.getState;+ await state().open(kind);+ accept(state, kind);+ await state().flush();+ state().update(+ (data) => {+ if (kind === "resume") data.summary.content = proposal.before;+ else data.content = proposal.before;+ },+ { newStep: true },+ );+ fail = true;+ await state().flush();+ old.suspend();+ const remote = structuredClone(documents[kind]);+ if (kind === "resume") remote.data.summary.content = proposal.before;+ else remote.content = proposal.before;+ remote.revision += 2;+ remote.updatedAt = new Date(remote.updatedAt.getTime() + 2);+ documents[kind] = adapters[kind + "Adapter"].parse(remote);+ fail = false;+ requests.length = 0;+ const fresh = owner();+ await fresh.store.getState().open(kind);+ assert.deepEqual(fresh.store.getState().proposalApplications, {});+ assert.equal(fresh.store.getState().status, "saved");+ assert.equal(requests.length, 0);+ });++for (const kind of ["resume", "letter"])+ for (const pendingUndo of [false, true])+ test(`${kind} Keep mine resets obsolete history and preserves ${pendingUndo ? "queued Undo" : "authored content"}`, async () => {+ const { owner, storage } = setup(kind);+ const draft = owner();+ const state = draft.store.getState;+ await state().open(kind);+ accept(state, kind);+ await state().flush();+ const refine = (text) =>+ state().update(+ (data) => {+ if (kind === "resume") data.summary.content = text;+ else data.content = text;+ },+ { newStep: true },+ );+ if (pendingUndo) state().undo();+ else {+ refine("<p>Local refinement</p>");+ refine("<p>Later refinement</p>");+ state().undo();+ }+ const expectedContent = pendingUndo ? proposal.before : "<p>Local refinement</p>";+ // Another client undoes the accepted proposal after this visit's baseline.+ const remote = structuredClone(documents[kind]);+ if (kind === "resume") remote.data.summary.content = proposal.before;+ else remote.content = proposal.before;+ remote.updatedAt = new Date(remote.updatedAt.getTime() + 1);+ remote.revision++;+ documents[kind] = remote;+ await state().flush();+ assert.ok(state().conflict);+ requests.length = 0;+ await state().resolveConflict("keep-mine");+ assert.equal(state().status, "saved");+ assert.equal(kind === "resume" ? documents[kind].data.summary.content : documents[kind].content, expectedContent);+ assert.deepEqual(+ requests.map((r) => r.input.proposalApplications),+ [pendingUndo ? { receipt: false } : undefined],+ );+ assert.deepEqual(state().proposalApplications, pendingUndo ? { receipt: false } : {});+ assert.equal(state().canUndo, false, "History from the superseded baseline must expire");+ assert.equal(state().canRedo, false);+ requests.length = 0;+ state().undo();+ state().redo();+ await state().flush();+ assert.equal(requests.length, 0, "Old history must not reaccept a remotely undone proposal");+ if (pendingUndo) assert.deepEqual(JSON.parse([...storage.values()][0]).pendingProposalApplications, {});+ refine("<p>New local step</p>");+ state().undo();+ await state().flush();+ assert.equal(kind === "resume" ? documents[kind].data.summary.content : documents[kind].content, expectedContent);+ assert.notEqual(requests.at(-1).input.proposalApplications?.receipt, true);+ draft.suspend();+ });diff --git a/apps/mobile/src/draft/adapters.ts b/apps/mobile/src/draft/adapters.tsindex a3f5d2b9d..fccc1f166 100644--- a/apps/mobile/src/draft/adapters.ts+++ b/apps/mobile/src/draft/adapters.ts@@ -88,13 +88,16 @@ export const resumeAdapter: DraftAdapter<ResumeDocument, ResumeDocument["data"]>throw new Error("Invalid stored resume.");return { ...document, data: resumeDataSchema.parse(document.data) };},- save: async (document, baseline, sessionId, force, scope) => ({+ save: async (document, baseline, sessionId, force, scope, proposalApplications) => ({...document,...(await client.resume.update({id: document.id,...changedFields(resumeFields(document), resumeFields(baseline)),sessionId,+ ...(proposalApplications && Object.keys(proposalApplications).length+ ? { proposalApplications: { ...proposalApplications } }+ : {}),...(!force ? { expectedUpdatedAt: baseline.updatedAt } : {}),},{ context: { scope } },@@ -128,12 +131,15 @@ export const letterAdapter: DraftAdapter<LetterDocument, LetterDocument> = {},}),parse: (value) => coverLetterSchema.parse(dates(value)),- save: (document, baseline, sessionId, _force, scope) => {+ save: (document, baseline, sessionId, _force, scope, proposalApplications) => {const changes = changedFields(letterFields(document), letterFields(baseline));const input: RouterInput["coverLetters"]["update"] = {id: document.id,expectedRevision: baseline.revision,sessionId,+ ...(proposalApplications && Object.keys(proposalApplications).length+ ? { proposalApplications: { ...proposalApplications } }+ : {}),...("name" in changes ? { name: document.name } : {}),...("recipient" in changes ? { recipient: document.recipient } : {}),...("content" in changes ? { content: document.content } : {}),diff --git a/apps/mobile/src/draft/store.ts b/apps/mobile/src/draft/store.tsindex b74c287d8..9f540ca23 100644--- a/apps/mobile/src/draft/store.ts+++ b/apps/mobile/src/draft/store.ts@@ -1,11 +1,25 @@import type { DraftStore, UpdateOptions } from "./types";+import type { ProposalApplications, ProposalSnapshot } from "@reactive-resume/resume/proposals";import type { WritableDraft } from "immer";import { produce } from "immer";import { create } from "zustand";+import {+ acknowledgeProposalApplications,+ queueProposalApplications,+ readProposalApplications,+ restoreProposalApplications,+} from "@reactive-resume/resume/proposals";import { generateId } from "@reactive-resume/utils/string";type Document = { id: string; isLocked: boolean };-type Record<D> = { baseline: D; document: D; sessionId: string; copyId?: string };+type Record<D> = {+ baseline: D;+ document: D;+ sessionId: string;+ copyId?: string;+ proposalApplications?: ProposalApplications;+ pendingProposalApplications?: ProposalApplications;+};export type DraftAdapter<D extends Document, T> = {kind: "resume" | "letter";@@ -18,7 +32,14 @@ export type DraftAdapter<D extends Document, T> = {version: (document: D) => string | number;parse: (value: unknown) => D;/** `scope` binds the write to the account that owns the draft (the API client refuses it after an account switch). */- save: (document: D, baseline: D, sessionId: string, force: boolean, scope: string) => Promise<D>;+ save: (+ document: D,+ baseline: D,+ sessionId: string,+ force: boolean,+ scope: string,+ proposalApplications?: ProposalApplications,+ ) => Promise<D>;copy: (document: D, copyId: string | undefined, remember: (id: string) => void, scope: string) => Promise<void>;isConflict: (error: unknown) => boolean;};@@ -42,6 +63,8 @@ const emptyState = {status: "idle",locked: false,conflict: null,+ proposalApplications: {},+ proposalRevision: null,canUndo: false,canRedo: false,} as const;@@ -65,8 +88,8 @@ export function createDraftStore<D extends Document, T>(adapter: DraftAdapter<D,let replaying: Promise<void> | null = null;let resolving = false;let force = false;- let undo: T[] = [];- let redo: T[] = [];+ let undo: ProposalSnapshot<T>[] = [];+ let redo: ProposalSnapshot<T>[] = [];let last: { at: number; key: string | undefined; coalesce: boolean } | null = null;const prefix = (owner: string) => `reactive-resume:unsaved:${encodeURIComponent(owner)}:${adapter.kind}:`;const key = () => {@@ -87,8 +110,8 @@ export function createDraftStore<D extends Document, T>(adapter: DraftAdapter<D,}));const state = store.getState;- function publish(document: D) {- store.setState({ document, data: adapter.data(document), locked: document.isLocked });+ function publish(document: D, proposalApplications: ProposalApplications = state().proposalApplications) {+ store.setState({ document, data: adapter.data(document), locked: document.isLocked, proposalApplications });}function history() {@@ -112,6 +135,17 @@ export function createDraftStore<D extends Document, T>(adapter: DraftAdapter<D,notifyPending();}+ function settleStored() {+ if (!record) return;+ pending.set(key(), record);+ if (Object.keys(record.proposalApplications ?? {}).length > 0) {+ // A clean recovery record retains decisions; it is not an unsaved document in the outbox.+ env.storage.setItemSync(key(), JSON.stringify(record));+ pending.delete(key());+ notifyPending();+ } else removeStored(key());+ }+function persist() {clearTimeout(persistenceTimer);persistenceTimer = undefined;@@ -153,6 +187,8 @@ export function createDraftStore<D extends Document, T>(adapter: DraftAdapter<D,document,sessionId: value.sessionId,...(typeof value.copyId === "string" ? { copyId: value.copyId } : {}),+ proposalApplications: readProposalApplications(value.proposalApplications),+ pendingProposalApplications: readProposalApplications(value.pendingProposalApplications),};} catch {// A corrupt record cannot be restored; it must not permanently block the server copy.@@ -190,32 +226,50 @@ export function createDraftStore<D extends Document, T>(adapter: DraftAdapter<D,}if (record && record.document.id !== id) throw new Error("Invalid draft identity.");if (record) {- dirty = true;- publish(record.document);- store.setState({ status: !durable ? "error" : env.online() ? "saving" : "offline" });+ dirty =+ !adapter.matches(record.baseline, record.document) ||+ Object.keys(record.pendingProposalApplications ?? {}).length > 0;+ publish(record.document, record.proposalApplications ?? {});+ store.setState({ proposalRevision: adapter.version(record.baseline) });+ store.setState({ status: !dirty ? "saved" : !durable ? "error" : env.online() ? "saving" : "offline" });}if (!env.online() && record) return;const restored = record?.document;const remote = await adapter.read(id);if (inflight) await inflight;if (!(await currentOwner()) || visit !== generation) return;+ if (record && !dirty && adapter.version(remote) !== adapter.version(record.baseline)) record = null;if (!record) {record = { document: remote, baseline: remote, sessionId: generateId() };- publish(remote);+ publish(remote, {});+ store.setState({ proposalRevision: adapter.version(remote) });+ settleStored();} else if (adapter.version(remote) < adapter.version(record.baseline)) {return;+ } else if (+ adapter.version(remote) > adapter.version(record.baseline) &&+ Object.keys(record.pendingProposalApplications ?? {}).length > 0+ ) {+ // Content equality is not an acknowledgement of the queued decision.+ store.setState({ conflict: { remote }, locked: remote.isLocked, status: "error" });} else if (adapter.matches(remote, record.document) || (restored && adapter.matches(remote, restored))) {// The write may have succeeded without its response. Keep anything typed during this read.+ if (adapter.version(remote) !== adapter.version(record.baseline)) {+ record.proposalApplications = {};+ publish(record.document, {});+ store.setState({ proposalRevision: adapter.version(remote) });+ }record.document = adapter.merge(remote, restored ?? record.document, record.document);record.baseline = remote;- dirty = !adapter.matches(remote, record.document);+ dirty =+ !adapter.matches(remote, record.document) || Object.keys(record.pendingProposalApplications ?? {}).length > 0;publish(record.document);store.setState({ conflict: null, status: dirty ? "saving" : "saved" });if (dirty) await flush();else {clearTimeout(persistenceTimer);persistenceTimer = undefined;- removeStored(key());+ settleStored();}} else if (adapter.version(remote) > adapter.version(record.baseline)) {store.setState({ conflict: { remote }, locked: remote.isLocked, status: "error" });@@ -247,12 +301,18 @@ export function createDraftStore<D extends Document, T>(adapter: DraftAdapter<D,store.setState(emptyState);}- function queue(document: D) {+ function queue(document: D, applications: ProposalApplications = state().proposalApplications) {if (!record) return;+ record.pendingProposalApplications = queueProposalApplications(+ record.proposalApplications ?? {},+ applications,+ record.pendingProposalApplications ?? {},+ );+ record.proposalApplications = applications;record.document = document;dirty = true;deferred = null;- publish(document);+ publish(document, applications);store.setState({ status: env.online() ? "saving" : "offline" });schedulePersistence();clearTimeout(timer);@@ -270,11 +330,14 @@ export function createDraftStore<D extends Document, T>(adapter: DraftAdapter<D,last?.coalesce &&last.key === options.coalesceKey &&((options.sameStep && options.coalesceKey !== undefined) || now - last.at < (options.coalesceKey ? 1000 : 500));- if (!coalesce) undo = [...undo.slice(-199), before];+ if (!coalesce) undo = [...undo.slice(-199), { data: before, applications: state().proposalApplications }];redo = [];last = { at: now, key: options.coalesceKey, coalesce: !options.newStep };history();- queue(adapter.withData(record.document, next));+ queue(adapter.withData(record.document, next), {+ ...state().proposalApplications,+ ...Object.fromEntries((options.proposalIds ?? []).map((id) => [id, true])),+ });}function updateDocument(recipe: (draft: WritableDraft<D>) => void) {@@ -283,10 +346,10 @@ export function createDraftStore<D extends Document, T>(adapter: DraftAdapter<D,const document = produce(before, recipe);if (document === before) return;const fields = (Object.keys(document) as (keyof D)[]).filter((field) => document[field] !== before[field]);- const rebase = (snapshot: T) => {- const historical = { ...adapter.withData(before, snapshot) };+ const rebase = (snapshot: ProposalSnapshot<T>): ProposalSnapshot<T> => {+ const historical = { ...adapter.withData(before, snapshot.data) };for (const field of fields) historical[field] = document[field];- return adapter.data(historical);+ return { data: adapter.data(historical), applications: snapshot.applications };};// Letter data is the document itself: metadata edits must survive later content undo/redo.undo = undo.map(rebase);@@ -294,15 +357,18 @@ export function createDraftStore<D extends Document, T>(adapter: DraftAdapter<D,queue(document);}- function travel(from: T[], to: T[]) {+ function travel(from: ProposalSnapshot<T>[], to: ProposalSnapshot<T>[]) {if (!record || state().locked || resolving) return;const next = from.pop();if (next === undefined) return;- to.push(adapter.data(record.document));+ to.push({ data: adapter.data(record.document), applications: state().proposalApplications });if (to.length > 200) to.shift();last = null;history();- queue(adapter.withData(record.document, next));+ queue(+ adapter.withData(record.document, next.data),+ restoreProposalApplications(state().proposalApplications, next.applications),+ );}async function flush(): Promise<void> {@@ -325,18 +391,30 @@ export function createDraftStore<D extends Document, T>(adapter: DraftAdapter<D,store.setState({ status: "saving" });while (dirty && record === active && !state().conflict && !state().locked) {const submitted = active.document;- const saved = await adapter.save(submitted, active.baseline, active.sessionId, force, scope ?? "");+ const submittedApplications = active.pendingProposalApplications ?? {};+ const saved = await adapter.save(+ submitted,+ active.baseline,+ active.sessionId,+ force,+ scope ?? "",+ submittedApplications,+ );if (!(await currentOwner()) || visit !== generation) return;force = false;+ active.pendingProposalApplications = acknowledgeProposalApplications(+ active.pendingProposalApplications ?? {},+ submittedApplications,+ );active.baseline = saved;- dirty = active.document !== submitted;+ dirty = active.document !== submitted || Object.keys(active.pendingProposalApplications).length > 0;// Only local fields changed since submission overlay the server echo. Server-owned// revision/lock metadata always comes from the save, and typing keeps its references.active.document = adapter.merge(saved, submitted, active.document);publish(active.document);if (dirty) persist();else {- removeStored(key());+ settleStored();store.setState({ status: "saved" });}if (!env.online()) break;@@ -375,7 +453,11 @@ export function createDraftStore<D extends Document, T>(adapter: DraftAdapter<D,store.setState({ locked: true, conflict: { remote } });return;}+ resetHistory();active.baseline = remote;+ active.proposalApplications = active.pendingProposalApplications ?? {};+ publish(active.document, active.proposalApplications);+ store.setState({ proposalRevision: adapter.version(remote) });force = true;store.setState({ conflict: null, locked: false });persist();@@ -397,7 +479,8 @@ export function createDraftStore<D extends Document, T>(adapter: DraftAdapter<D,dirty = false;deferred = null;resetHistory();- publish(remote);+ publish(remote, {});+ store.setState({ proposalRevision: adapter.version(remote) });store.setState({ conflict: null, status: "saved" });}} catch (error) {@@ -428,10 +511,18 @@ export function createDraftStore<D extends Document, T>(adapter: DraftAdapter<D,function applyRemote(remote: D) {if (!record || dirty || adapter.version(remote) <= adapter.version(record.baseline)) return;- if (JSON.stringify(adapter.data(remote)) !== JSON.stringify(adapter.data(record.document))) resetHistory();+ resetHistory();record.baseline = remote;record.document = remote;- publish(remote);+ record.proposalApplications = {};+ record.pendingProposalApplications = {};+ publish(remote, {});+ store.setState({ proposalRevision: adapter.version(remote) });+ try {+ settleStored();+ } catch {+ store.setState({ status: "error" });+ }}async function blur() {@@ -452,10 +543,29 @@ export function createDraftStore<D extends Document, T>(adapter: DraftAdapter<D,try {const queued = readStored(storageKey);if (!queued) continue;+ if (+ adapter.matches(queued.baseline, queued.document) &&+ Object.keys(queued.pendingProposalApplications ?? {}).length === 0+ )+ continue;if ((await env.scope()) !== owner || visit !== queueGeneration) return;- await adapter.save(queued.document, queued.baseline, queued.sessionId, false, owner);+ const saved = await adapter.save(+ queued.document,+ queued.baseline,+ queued.sessionId,+ false,+ owner,+ queued.pendingProposalApplications ?? {},+ );+ queued.document = adapter.merge(saved, queued.document, queued.document);if (visit !== queueGeneration) return;- removeStored(storageKey);+ queued.baseline = saved;+ queued.pendingProposalApplications = {};+ if (Object.keys(queued.proposalApplications ?? {}).length > 0)+ env.storage.setItemSync(storageKey, JSON.stringify(queued));+ else removeStored(storageKey);+ pending.delete(storageKey);+ notifyPending();} catch {/* Conflicts, locked documents and failures stay queued until opened. */}@@ -494,7 +604,12 @@ export function createDraftStore<D extends Document, T>(adapter: DraftAdapter<D,if (!storageKey.startsWith(prefix(owner))) continue;try {const queued = readStored(storageKey);- if (queued) documents.push(queued.document);+ if (+ queued &&+ (!adapter.matches(queued.baseline, queued.document) ||+ Object.keys(queued.pendingProposalApplications ?? {}).length > 0)+ )+ documents.push(queued.document);} catch {/* An unreadable entry must not hide other recoverable drafts. */}diff --git a/apps/mobile/src/draft/types.ts b/apps/mobile/src/draft/types.tsindex 6e01af5f1..2b309a0cc 100644--- a/apps/mobile/src/draft/types.ts+++ b/apps/mobile/src/draft/types.ts@@ -1,4 +1,5 @@import type { RouterOutput } from "@/api/client";+import type { ProposalApplications } from "@reactive-resume/resume/proposals";// The draft store contract (M3-T3 implements it), for resumes and cover letters. It ports// apps/web/src/features/resume/builder/draft.ts: a debounced save (500 ms resumes, 800 ms letters), undo/redo,// kv-store persistence with an offline queue, and a conflict check on reconnect.@@ -27,6 +28,8 @@ export type DraftConflict<TDocument> = {};export type UpdateOptions = {+ /** Filled by the synchronous proposal recipe; travels with this undo step. */+ proposalIds?: readonly string[];/** The field being edited. Consecutive edits with the same key within 1 s merge into one undo step. */coalesceKey?: string | undefined;/** Always a step of its own (adding, moving or deleting). */@@ -43,6 +46,9 @@ export type DraftState<TDocument, TData> = {/** Locked documents are read-only: `update` does nothing. */locked: boolean;conflict: DraftConflict<TDocument> | null;+ proposalApplications: ProposalApplications;+ /** External baseline for cached proposal marks; ordinary local saves keep them valid. */+ proposalRevision: string | number | null;canUndo: boolean;canRedo: boolean;};diff --git a/apps/mobile/src/features/assistant/chat-view.tsx b/apps/mobile/src/features/assistant/chat-view.tsxindex 00b8f81e6..1945afec7 100644--- a/apps/mobile/src/features/assistant/chat-view.tsx+++ b/apps/mobile/src/features/assistant/chat-view.tsx@@ -245,7 +245,7 @@ function Conversation(props: ConversationProps) {const { t } = useLingui();const { colors, radius, space } = useTheme();const queryClient = useQueryClient();- const [statuses, setStatuses] = useState<ReadonlyMap<string, EditStatus>>(new Map());+ const [rejections, setStatuses] = useState<ReadonlyMap<string, EditStatus>>(new Map());const [stopped, setStopped] = useState(false);const [recovering, setRecovering] = useState(props.activeRun);@@ -266,7 +266,7 @@ function Conversation(props: ConversationProps) {sendMessage,setMessages,status,- error,+ error: chatError,clearError,regenerate,addToolOutput,@@ -369,6 +369,10 @@ function Conversation(props: ConversationProps) {// since regenerating would drop the answer.const retry = () => {if (busy || readOnly || continuationBlocked) return;+ if (receipts.error) {+ void receipts.refetch();+ return;+ }clearError();void lane.run(async (isCurrent) => {const latest = await reloadThread();@@ -410,16 +414,42 @@ function Conversation(props: ConversationProps) {return () => subscription.remove();}, []);+ // Refresh receipts on document revisions without replacing a live streamed transcript.+ const receiptOptions = orpc.agent.threads.get.queryOptions({+ input: { id: threadId },+ context: { scope: props.scope },+ });+ const receipts = useQuery({+ ...receiptOptions,+ gcTime: 0,+ queryKey: [...receiptOptions.queryKey, props.scope, document?.proposalRevision],+ enabled: !!document?.proposalRevision,+ });+ const receiptsReady = !document?.proposalRevision || !!receipts.data;+ const error = chatError ?? receipts.error;+ const statuses = useMemo(+ () =>+ new Map([+ ...((receipts.data?.messages ?? []) as UIMessage[]).flatMap((message) =>+ message.parts.flatMap((part) =>+ isProposeEdits(part) ? toProposals(part, new Map()).map((edit) => [edit.id, edit.status] as const) : [],+ ),+ ),+ ...rejections,+ ]),+ [receipts.data, rejections],+ );+// ---- Proposed edits ----const proposals = useMemo(() =>- document+ document && receiptsReady? messages.flatMap((message) =>message.parts.flatMap((part) => (isProposeEdits(part) ? toProposals(part, statuses) : [])),): [],- [messages, statuses, document],+ [messages, statuses, document, receiptsReady],);// Kept after the assistant closes: Page marks them while they're pending.const documentId = document?.id;@@ -428,8 +458,8 @@ function Conversation(props: ConversationProps) {}, [documentId, document?.kind, proposals]);const record = (message: UIMessage, part: ToolPart, changed: readonly Proposal[], next: EditStatus) => {+ if (!part.toolCallId || next !== "rejected") return;setStatuses((current) => new Map([...current, ...changed.map((proposal) => [proposal.id, next] as const)]));- if (!part.toolCallId) return;void client.agent.messages.setEditStatus({@@ -449,37 +479,22 @@ function Conversation(props: ConversationProps) {recordRef.current = record;});- // Undoing an accepted edit (the toast's Undo, or undo in the editor) makes it pending again. Only an undo (the- // document) or a status change can cause one, so streamed chunks don't re-check every edit.- const recordUndone = useEffectEvent(() => {- if (!document) return;- for (const message of messages)- for (const part of message.parts) {- if (!isProposeEdits(part)) continue;- const undone = toProposals(part, statuses).filter(- (proposal) => proposal.status === "accepted" && document.stateOf(proposal) === "pending",- );- if (undone.length > 0) record(message, part, undone, "pending");- }- });- // oxlint-disable-next-line react/set-state-in-effect -- an undo happens in the draft store; the new status is also saved to the thread- useEffect(() => recordUndone(), [statuses, document]);-const handlers = useMemo<ProposalHandlers | null>(() =>document? {statuses,stateOf: document.stateOf,- locked: document.locked,+ locked: document.locked || !receiptsReady,onAccept: (message, part, chosen) => {- document.accept(chosen);- recordRef.current(message, part, chosen, "accepted");+ if (!receiptsReady) return;+ const { applied } = document.accept(chosen);+ if (applied.length > 0) recordRef.current(message, part, applied, "accepted");},onReject: (message, part, chosen) => recordRef.current(message, part, chosen, "rejected"),}: null,- [document, statuses],+ [document, statuses, receiptsReady],);const answer = useMemo(() =>@@ -598,9 +613,13 @@ function Conversation(props: ConversationProps) {<View style={{ flexDirection: "row", gap: space.s2 }}><Icon name="warning-circle" size={18} color={colors.dangerText} /><Text variant="callout" color="dangerText" style={{ flex: 1 }}>- <Trans>- {props.connection} returned “{errorText(error, t`an error`)}”. Your message is kept.- </Trans>+ {receipts.error ? (+ <Trans>This conversation couldn't be opened.</Trans>+ ) : (+ <Trans>+ {props.connection} returned “{errorText(error, t`an error`)}”. Your message is kept.+ </Trans>+ )}</Text></View>{continuationBlocked ? (diff --git a/apps/mobile/src/features/assistant/document.ts b/apps/mobile/src/features/assistant/document.tsindex 0f9fca8cd..60af616c5 100644--- a/apps/mobile/src/features/assistant/document.ts+++ b/apps/mobile/src/features/assistant/document.ts@@ -1,9 +1,9 @@-import type { Proposal, ProposalState } from "@reactive-resume/resume/proposals";+import type { Proposal, ProposalApplicationResult, ProposalState } from "@reactive-resume/resume/proposals";import type { ResumeData } from "@reactive-resume/schema/resume/data";-import { plural, t } from "@lingui/core/macro";+import { t } from "@lingui/core/macro";import { useMemo } from "react";-import { applyTo, getProposalState, getStateIn } from "@reactive-resume/resume/proposals";-import { acceptResumeProposals } from "./proposals";+import { applyProposals, getProposalState, getStateIn } from "@reactive-resume/resume/proposals";+import { acceptResumeProposals, proposalResultMessage } from "./proposals";import { getAccountScope } from "@/auth/session";import { useLetterStore, useResumeStore } from "@/draft";import { letterAdapter } from "@/draft/adapters";@@ -15,13 +15,15 @@ export type AssistantDocument = {kind: "resume" | "letter";id: string;name: string;+ /** Document revision whose authoritative proposal decisions should be read. */+ proposalRevision?: string;locked: boolean;/** The application it's for, whose posting is shared as context. */posting: { id: string; company: string; role: string } | null;/** A proposal's state against the document as it reads now. */stateOf: (proposal: Proposal) => ProposalState;/** Applies proposals to the draft as one undo step, with Undo in the toast. */- accept: (proposals: readonly Proposal[]) => void;+ accept: (proposals: readonly Proposal[]) => ProposalApplicationResult;/** Confirm the server has this draft before the model reads it. */flush: () => Promise<boolean>;};@@ -36,6 +38,7 @@ export function useResumeAssistantDocument(resumeId: string, applicationId?: strconst data = useResumeStore((state) => (state.document?.id === resumeId ? (state.data as ResumeData | null) : null));const scope = getAccountScope();const locked = useResumeStore((state) => state.locked);+ const applicationsOfProposals = useResumeStore((state) => state.proposalApplications);const { data: applications } = useApplications();return useMemo(() => {@@ -48,12 +51,14 @@ export function useResumeAssistantDocument(resumeId: string, applicationId?: strkind: "resume",id: document.id,name: document.name,+ proposalRevision: document.updatedAt.toISOString(),locked,posting: application ? { id: application.id, company: application.company, role: application.role } : null,- stateOf: (proposal) => getProposalState(data, proposal),+ stateOf: (proposal) => getProposalState(data, proposal, applicationsOfProposals),accept: (proposals) => {- if (getAccountScope() !== scope || useResumeStore.getState().document?.id !== resumeId) return;- acceptResumeProposals(proposals);+ if (getAccountScope() !== scope || useResumeStore.getState().document?.id !== resumeId)+ return { applied: [], stale: [] };+ return acceptResumeProposals(proposals);},flush: async () => {if (!scope || getAccountScope() !== scope || useResumeStore.getState().document?.id !== resumeId) return false;@@ -68,13 +73,14 @@ export function useResumeAssistantDocument(resumeId: string, applicationId?: str);},};- }, [document, data, locked, applications, applicationId, resumeId, scope]);+ }, [document, data, locked, applications, applicationId, resumeId, scope, applicationsOfProposals]);}/** Subscribes to the letter layout's draft; proposals edit the body using the shared letter contract. */export function useLetterAssistantDocument(letterId: string, applicationId?: string): AssistantDocument | null {const document = useLetterStore((state) => (state.document?.id === letterId ? state.document : null));const locked = useLetterStore((state) => state.locked);+ const applicationsOfProposals = useLetterStore((state) => state.proposalApplications);const { data: applications } = useApplications();const scope = getAccountScope();@@ -87,23 +93,36 @@ export function useLetterAssistantDocument(letterId: string, applicationId?: strkind: "letter",id: document.id,name: document.name,+ proposalRevision: String(document.revision),locked,posting: application ? { id: application.id, company: application.company, role: application.role } : null,- stateOf: (proposal) => getStateIn(document.content, proposal),+ stateOf: (proposal) => getStateIn(document.content, proposal, applicationsOfProposals),accept: (proposals) => {- if (!isCurrent() || useLetterStore.getState().locked) return;- const before = useLetterStore.getState().data?.content;+ let result: ProposalApplicationResult = { applied: [], stale: [] };+ const proposalIds: string[] = [];+ if (!isCurrent() || useLetterStore.getState().locked) return result;useLetterStore.getState().update((draft) => {- for (const proposal of proposals) draft.content = applyTo(draft.content, proposal) ?? draft.content;+ result = applyProposals(+ proposals,+ () => draft.content,+ (_, value) => {+ draft.content = value;+ },+ useLetterStore.getState().proposalApplications,+ );+ proposalIds.push(...result.applied.map((proposal) => proposal.id));},- { newStep: true },+ { newStep: true, proposalIds },);const accepted = useLetterStore.getState().data;- if (!accepted || accepted.content === before) return;+ if (!accepted || result.applied.length === 0) {+ if (result.stale.length > 0) showToast({ message: proposalResultMessage(result) });+ return result;+ }let eligible = true;const toastId = showToast({- message: plural(proposals.length, { 1: "Edit applied", other: "# edits applied" }),+ message: proposalResultMessage(result),action: {label: t`Undo`,onPress: () => {@@ -132,6 +151,7 @@ export function useLetterAssistantDocument(letterId: string, applicationId?: streligible = false;unsubscribe();}, 12000);+ return result;},flush: async () => {if (!isCurrent()) return false;@@ -145,5 +165,5 @@ export function useLetterAssistantDocument(letterId: string, applicationId?: str);},};- }, [document, locked, applications, applicationId, letterId, scope]);+ }, [document, locked, applications, applicationId, letterId, scope, applicationsOfProposals]);}diff --git a/apps/mobile/src/features/assistant/proposals.ts b/apps/mobile/src/features/assistant/proposals.tsindex cf09560ca..d638b7883 100644--- a/apps/mobile/src/features/assistant/proposals.ts+++ b/apps/mobile/src/features/assistant/proposals.ts@@ -1,14 +1,13 @@// Proposed edits from the assistant: as cards in the chat, applied to the draft through the M3-T3 store, and marked on// the Page tab (ported from apps/web/src/features/resume/editor/proposals/proposals.ts).-import type { Proposal } from "@reactive-resume/resume/proposals";+import type { Proposal, ProposalApplicationResult, ProposalApplications } from "@reactive-resume/resume/proposals";import type { ResumeData } from "@reactive-resume/schema/resume/data";import { plural, t } from "@lingui/core/macro";import { produce } from "immer";import { useMemo } from "react";import { create } from "zustand";import {- applyProposal,- applyTo,+ applyProposals,getProposalState,readTarget,splitBlock,@@ -54,23 +53,49 @@ export function toProposals(part: ToolPart, statuses: ReadonlyMap<string, Propos}));}+/** The toast uses actual writes, with placement failures reported separately from successes. */+export function proposalResultMessage({ applied, stale }: ProposalApplicationResult) {+ return [+ applied.length > 0 ? plural(applied.length, { 1: "Edit applied", other: "# edits applied" }) : "",+ stale.length > 0+ ? plural(stale.length, {+ one: "# edit couldn't be placed: its text changed. Ask again to redo it.",+ other: "# edits couldn't be placed: their text changed. Ask again to redo them.",+ })+ : "",+ ]+ .filter(Boolean)+ .join(" · ");+}+/** Applies proposals to the open resume as one undo step; the toast's Undo takes them back. */-export function acceptResumeProposals(proposals: readonly Proposal[]) {+export function acceptResumeProposals(proposals: readonly Proposal[]): ProposalApplicationResult {+ let result: ProposalApplicationResult = { applied: [], stale: [] };+ const proposalIds: string[] = [];const store = useResumeStore.getState();const scope = getAccountScope();const id = store.document?.id;- if (!id || !store.data || store.locked) return;+ if (!id || !store.data || store.locked) return result;store.update((draft) => {- for (const proposal of proposals) applyProposal(draft as ResumeData, proposal);+ result = applyProposals(+ proposals,+ (target) => readTarget(draft as ResumeData, target),+ (target, value) => writeTarget(draft as ResumeData, target, value),+ store.proposalApplications,+ );+ proposalIds.push(...result.applied.map((proposal) => proposal.id));},- { newStep: true },+ { newStep: true, proposalIds },);const accepted = useResumeStore.getState().data;- if (accepted === store.data) return;+ if (result.applied.length === 0) {+ if (result.stale.length > 0) showToast({ message: proposalResultMessage(result) });+ return result;+ }let eligible = true;const toastId = showToast({- message: plural(proposals.length, { 1: "Edit applied", other: "# edits applied" }),+ message: proposalResultMessage(result),action: {label: t`Undo`,onPress: () => {@@ -98,6 +123,7 @@ export function acceptResumeProposals(proposals: readonly Proposal[]) {eligible = false;unsubscribe();}, 12000);+ return result;}// ---- Page markings ----@@ -105,21 +131,35 @@ export function acceptResumeProposals(proposals: readonly Proposal[]) {const NONE: readonly Proposal[] = [];/** The assistant's proposals for one resume, kept after the assistant closes so Page can mark them. */-export const useAssistantProposals = create<{ resumeId: string | null; proposals: readonly Proposal[] }>(() => ({+export const useAssistantProposals = create<{+ resumeId: string | null;+ proposals: readonly Proposal[];+ revision: string | number | null;+}>(() => ({resumeId: null,proposals: [],+ revision: null,}));/** Skips an unchanged list: a streaming reply rebuilds it on every chunk, and Page re-marks on each publish. */export const publishProposals = (resumeId: string, proposals: readonly Proposal[]) => {const current = useAssistantProposals.getState();- if (current.resumeId === resumeId && JSON.stringify(current.proposals) === JSON.stringify(proposals)) return;- useAssistantProposals.setState({ resumeId, proposals });+ const revision = useResumeStore.getState().proposalRevision;+ if (+ current.resumeId === resumeId &&+ current.revision === revision &&+ JSON.stringify(current.proposals) === JSON.stringify(proposals)+ )+ return;+ useAssistantProposals.setState({ resumeId, proposals, revision });};/** The proposals still waiting on the user (not accepted, rejected or out of date). */-export const pendingProposals = (data: ResumeData, proposals: readonly Proposal[]) =>- proposals.filter((proposal) => getProposalState(data, proposal) === "pending");+export const pendingProposals = (+ data: ResumeData,+ proposals: readonly Proposal[],+ applications: ProposalApplications = {},+) => proposals.filter((proposal) => getProposalState(data, proposal, applications) === "pending");// The PDF needs literal colours for its marks (web README §5.9), the same as web's page canvas.const OLD_TEXT_COLOR = "#7d7b73";@@ -143,15 +183,20 @@ function markChange(before: string, after: string) {}/** The page as it would read with the proposals: old text struck through, new text highlighted. Never saved. */-export function markProposals(data: ResumeData, proposals: readonly Proposal[]): ResumeData {- const pending = pendingProposals(data, proposals);+export function markProposals(+ data: ResumeData,+ proposals: readonly Proposal[],+ applications: ProposalApplications = {},+): ResumeData {+ const pending = pendingProposals(data, proposals, applications);if (pending.length === 0) return data;return produce(data, (draft) => {- for (const proposal of pending) {- const value = readTarget(draft, proposal.target);- const next = applyTo(value, { before: proposal.before, after: markChange(proposal.before, proposal.after) });- if (next !== undefined) writeTarget(draft, proposal.target, next);- }+ applyProposals(+ pending.map((proposal) => ({ ...proposal, after: markChange(proposal.before, proposal.after) })),+ (target) => readTarget(draft, target),+ (target, value) => writeTarget(draft, target, value),+ applications,+ );});}@@ -160,12 +205,19 @@ export function markProposals(data: ResumeData, proposals: readonly Proposal[]):* `data` is the draft's data; pass the result to `usePreview` instead.*/export function useMarkedResumeData(resumeId: string, data: ResumeData | null) {- const proposals = useAssistantProposals((state) => (state.resumeId === resumeId ? state.proposals : NONE));+ const applications = useResumeStore((state) => state.proposalApplications);+ const revision = useResumeStore((state) => state.proposalRevision);+ const proposals = useAssistantProposals((state) =>+ state.resumeId === resumeId && state.revision === revision ? state.proposals : NONE,+ );return useMemo(() =>!data || proposals.length === 0? { data, pending: 0 }- : { data: markProposals(data, proposals), pending: pendingProposals(data, proposals).length },- [data, proposals],+ : {+ data: markProposals(data, proposals, applications),+ pending: pendingProposals(data, proposals, applications).length,+ },+ [data, proposals, applications],);}diff --git a/apps/mobile/src/features/check/actions.ts b/apps/mobile/src/features/check/actions.tsindex 3d2b5b0ce..2fcb47d0e 100644--- a/apps/mobile/src/features/check/actions.ts+++ b/apps/mobile/src/features/check/actions.ts@@ -9,10 +9,15 @@ import { routes } from "@/routes";import { dismissToast, haptics, showToast } from "@/ui";/** Shared draft owner retains history; a toast must never undo a later, unrelated edit. */-export function editWithUndo(id: string, edit: (draft: ResumeData) => void, message: string) {+export function editWithUndo(+ id: string,+ edit: (draft: ResumeData) => void,+ message: string,+ proposalIds?: readonly string[],+) {const store = useResumeStore.getState();if (store.document?.id !== id || !store.data || store.locked) return false;- store.update(edit, { newStep: true });+ store.update(edit, { newStep: true, ...(proposalIds ? { proposalIds } : {}) });const changed = useResumeStore.getState().data;if (changed === store.data) return false;const toastId = showToast({diff --git a/apps/mobile/src/features/check/review.ts b/apps/mobile/src/features/check/review.tsindex 5f00ae847..e1275c4c5 100644--- a/apps/mobile/src/features/check/review.ts+++ b/apps/mobile/src/features/check/review.ts@@ -8,6 +8,7 @@ export type WritingNote = {import type { PageMapTarget } from "@reactive-resume/pdf/page-map";import type { Passage, Proposal } from "@reactive-resume/resume/proposals";import { replaceBlockText } from "@reactive-resume/resume/proposals";+import { generateId } from "@reactive-resume/utils/string";type ReviewSuggestion = {section: string | null;@@ -37,7 +38,7 @@ export function mapWritingReview(suggestions: readonly ReviewSuggestion[], passaif (passage && rewrite && rewrite !== passage.text) {proposals.push({- id: `w${proposals.length + 1}`,+ id: generateId(),target: passage.target,location: passage.location,before: passage.html,diff --git a/apps/mobile/src/features/check/writing.tsx b/apps/mobile/src/features/check/writing.tsxindex 0d2469c7d..dc0d00a5e 100644--- a/apps/mobile/src/features/check/writing.tsx+++ b/apps/mobile/src/features/check/writing.tsx@@ -36,6 +36,7 @@ export type WritingReview = { summary: string; strengths: string[]; proposals: Pexport function Writing({ id, data, issues, offline, locked, review, setReview }: WritingProps) {const { t } = useLingui();+ const applications = useResumeStore((state) => state.proposalApplications);const { space } = useTheme();const providers = useHasAIProvider();const [setup, setSetup] = useState(false);@@ -102,6 +103,7 @@ export function Writing({ id, data, issues, offline, locked, review, setReview }applyProposal(draft, proposal);},t`Rewrite accepted`,+ [proposal.id],))setReview(@@ -177,7 +179,7 @@ export function Writing({ id, data, issues, offline, locked, review, setReview }<Text>{review.summary}</Text><ReportAiContent source="writing" text={JSON.stringify(review, null, 2)} />{review.proposals.map((proposal) => {- const state = getProposalState(data, proposal);+ const state = getProposalState(data, proposal, applications);const stale = state === "stale";return (<Card key={proposal.id} style={{ gap: space.s2 }}>diff --git a/apps/web/locales/af-ZA.po b/apps/web/locales/af-ZA.poindex b5f419e17..d2f77f6ee 100644--- a/apps/web/locales/af-ZA.po+++ b/apps/web/locales/af-ZA.po@@ -89,7 +89,7 @@ msgstr "(opsioneel)"msgid "(required)"msgstr "(verpligtend)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Wysiging toegepas} other {# wysigings toegepas}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# dokument na asblik geskuif} other {# dokumente na asblik geskuif}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# wysiging kon nie geplaas word nie: sy teks verander. Vra weer om dit oor te doen.} other {# wysigings kon nie geplaas word nie: hul teks het verander. Vra weer om hulle oor te doen.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} gesluit"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} wysigings toegepas"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Wysig {number}:"msgid "Edit application"msgstr "Wysig aansoek"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Redigering toegepas"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Hierdie blaaier kan nie diktee neem nie, en geen van jou KI-verbindingsmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Hierdie koppelingsversoek is ongeldig of het verval. Begin die koppeling weer vanaf jou kliënt."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Hierdie gesprek kon nie oopgemaak word nie."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/am-ET.po b/apps/web/locales/am-ET.poindex 3c3f4e4dc..5e7cd760a 100644--- a/apps/web/locales/am-ET.po+++ b/apps/web/locales/am-ET.po@@ -89,7 +89,7 @@ msgstr "(አማራጭ)"msgid "(required)"msgstr "(ግዴታ)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {አርትዖት ተተግብሯል} other {# አርትዖቶች ተተግብረዋል}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# ሰነድ ወደ መጣያ ተወስዷል} other {# ሰነዶች ወደ መጣያ ተወስደዋል}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# አርትዖት ሊቀመጥ አልቻለም፡ ጽሑፉ ተቀይሯል። እንደገና እንዲሰራው ጠይቅ።} other {# አርትዖቶች ሊቀመጡ አልቻሉም፡ ጽሑፋቸው ተቀይሯል። እንደገና እንዲሰራቸው ጠይቅ።}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} ተዘግቷል።"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} አርትዖቶች ተተግብረዋል።"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number} አርትዕ፡"msgid "Edit application"msgstr "ማመልከቻን ያርትዑ"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "አርትዕ ተተግብሯል።"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "ይህ አሳሽ የድምፅ ጽሕፈት መቀበል አይችልምmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "ይህ የግንኙነት ጥያቄ ልክ ያልሆነ ወይም ጊዜው ያለፈበት ነው። ግንኙነቱን ከደንበኛዎ እንደገና ይጀምሩ።"+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "ይህ ውይይት ሊከፈት አልቻለም።"+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/ar-SA.po b/apps/web/locales/ar-SA.poindex af5992216..14fa06580 100644--- a/apps/web/locales/ar-SA.po+++ b/apps/web/locales/ar-SA.po@@ -89,7 +89,7 @@ msgstr "(اختياري)"msgid "(required)"msgstr "(مطلوب)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {تم تطبيق التعديل} two {تم تطبيق تعديلين} few {تم تطبيق # تعديلات} many {تم تطبيق # تعديلًا} other {تم تطبيق # تعديل}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, zero {لم يُنقل أي مستند إلى سلة المهملات} one {تم نقل مستند واحد إلى سلة المهملات} two {تم نقل مستندين إلى سلة المهملات} few {تم نقل # مستندات إلى سلة المهملات} many {تم نقل # مستندًا إلى سلة المهملات} other {تم نقل # مستند إلى سلة المهملات}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {لا يمكن وضع تحرير #: تم تغيير النص الخاص به. اطلب مرة أخرى إعادته.} other {لا يمكن وضع تعديلات #: تم تغيير النص الخاص بها. اطلب مرة أخرى إعادتها.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} مغلق"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "تم تطبيق {0} من التعديلات"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "تحرير {number}:"msgid "Edit application"msgstr "تعديل الطلب"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "تم تطبيق التعديل"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "لا يستطيع هذا المتصفح الإملاء الصوتي، وmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "طلب الاتصال هذا غير صالح أو انتهت صلاحيته. ابدأ الاتصال من جديد من العميل."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "لا يمكن فتح هذه المحادثة."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/az-AZ.po b/apps/web/locales/az-AZ.poindex 86fe833bf..e75d0313e 100644--- a/apps/web/locales/az-AZ.po+++ b/apps/web/locales/az-AZ.po@@ -89,7 +89,7 @@ msgstr "(istəyə bağlı)"msgid "(required)"msgstr "(məcburi)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Düzəliş tətbiq edildi} other {# düzəliş tətbiq edildi}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# sənəd zibil qutusuna köçürüldü} other {# sənəd zibil qutusuna köçürüldü}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# redaktəsini yerləşdirmək mümkün olmadı: onun mətni dəyişdi. Yenidən etmək üçün yenidən soruşun.} other {# redaktələri yerləşdirmək mümkün olmadı: onların mətni dəyişdi. Onları yenidən düzəltmək üçün yenidən soruşun.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} bağlandı"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} redaktə tətbiq edildi"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number} redaktə edin:"msgid "Edit application"msgstr "Müraciəti redaktə edin"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Redaktə tətbiq edildi"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Bu brauzer diktəni qəbul edə bilmir və AI bağlantılarınızdan hemsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Bu əlaqə sorğusu etibarsızdır və ya vaxtı keçib. Əlaqəni müştərinizdən yenidən başladın."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Bu söhbəti açmaq mümkün olmadı."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/bg-BG.po b/apps/web/locales/bg-BG.poindex 4cc19c238..402e2a9eb 100644--- a/apps/web/locales/bg-BG.po+++ b/apps/web/locales/bg-BG.po@@ -89,7 +89,7 @@ msgstr "(незадължително)"msgid "(required)"msgstr "(задължително)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Редакцията е приложена} other {Приложени са # редакции}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# документ е преместен в кошчето} other {# документа са преместени в кошчето}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {Редакцията на # не можа да бъде поставена: текстът й е променен. Помолете отново да го повторите.} other {Редакциите на # не можаха да бъдат поставени: текстът им се промени. Помолете отново да ги повторите.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} затворен"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "Приложени редакции: {0}"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Редактиране на {number}:"msgid "Edit application"msgstr "Редактиране на кандидатурата"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Редактирането е приложено"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Този браузър не поддържа диктовка и никmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Тази заявка за връзка е невалидна или е изтекла. Започнете връзката отново от клиента си."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Този разговор не можа да бъде отворен."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/bn-BD.po b/apps/web/locales/bn-BD.poindex f0114dd02..9f3f87ac7 100644--- a/apps/web/locales/bn-BD.po+++ b/apps/web/locales/bn-BD.po@@ -89,7 +89,7 @@ msgstr "(ঐচ্ছিক)"msgid "(required)"msgstr "(আবশ্যক)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {পরিবর্তন প্রয়োগ করা হয়েছে} other {#টি পরিবর্তন প্রয়োগ করা হয়েছে}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {#টি নথি ট্র্যাশে সরানো হয়েছে} other {#টি নথি ট্র্যাশে সরানো হয়েছে}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# সম্পাদনা স্থাপন করা যায়নি: এর পাঠ্য পরিবর্তিত হয়েছে৷ আবার করতে বলুন।} other {# সম্পাদনা স্থাপন করা যায়নি: তাদের পাঠ্য পরিবর্তিত হয়েছে৷ সেগুলি আবার করতে বলুন।}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} বন্ধ"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} সম্পাদনাগুলি প্রয়োগ করা হয়েছে৷"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number} সম্পাদনা করুন:"msgid "Edit application"msgstr "আবেদন সম্পাদনা করুন"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "সম্পাদনা প্রয়োগ করা হয়েছে"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "এই ব্রাউজার ডিক্টেশন নিতেmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "এই সংযোগ অনুরোধটি অবৈধ বা মেয়াদোত্তীর্ণ। আপনার ক্লায়েন্ট থেকে আবার সংযোগ শুরু করুন।"+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "এই কথোপকথন খোলা যাবে না."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/ca-ES.po b/apps/web/locales/ca-ES.poindex 59f873028..282a8d506 100644--- a/apps/web/locales/ca-ES.po+++ b/apps/web/locales/ca-ES.po@@ -89,7 +89,7 @@ msgstr "(opcional)"msgid "(required)"msgstr "(obligatori)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Canvi aplicat} other {# canvis aplicats}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# document mogut a la paperera} other {# documents moguts a la paperera}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {No s'ha pogut fer l'edició de #: el seu text ha canviat. Torna a demanar que ho torni a fer.} other {No s'han pogut fer edicions de #: el seu text ha canviat. Torna a demanar que les torni a fer.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} tancat"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "S'han aplicat {0} edicions"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Edita {number}:"msgid "Edit application"msgstr "Edita la candidatura"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "S'ha aplicat l'edició"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Aquest navegador no admet el dictat i cap de les vostres connexions d'IAmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Aquesta sol·licitud de connexió no és vàlida o ha caducat. Torneu a iniciar la connexió des del vostre client."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Aquesta conversa no s'ha pogut obrir."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/cs-CZ.po b/apps/web/locales/cs-CZ.poindex 324cdf380..a26845061 100644--- a/apps/web/locales/cs-CZ.po+++ b/apps/web/locales/cs-CZ.po@@ -89,7 +89,7 @@ msgstr "(nepovinné)"msgid "(required)"msgstr "(povinné)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Úprava použita} few {# úpravy použity} other {# úprav použito}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# dokument přesunut do koše} few {# dokumenty přesunuty do koše} many {# dokumentu přesunuto do koše} other {# dokumentů přesunuto do koše}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {Úpravu # nelze umístit: její text se změnil. Požádejte znovu o její opakování.} other {Úpravy # nelze umístit: jejich text se změnil. Požádejte znovu o jejich přepracování.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} uzavřen"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "Použito úprav: {0}"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Upravit {number}:"msgid "Edit application"msgstr "Upravit žádost"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Úprava byla použita"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Tento prohlížeč neumí diktování a žádné z vašich připojení kmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Tento požadavek na připojení je neplatný nebo vypršel. Spusťte připojení znovu ze svého klienta."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Tuto konverzaci nelze otevřít."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/da-DK.po b/apps/web/locales/da-DK.poindex 642d37002..27268b736 100644--- a/apps/web/locales/da-DK.po+++ b/apps/web/locales/da-DK.po@@ -89,7 +89,7 @@ msgstr "(valgfrit)"msgid "(required)"msgstr "(påkrævet)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Ændring anvendt} other {# ændringer anvendt}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# dokument flyttet til papirkurven} other {# dokumenter flyttet til papirkurven}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# redigering kunne ikke placeres: dens tekst ændret. Bed igen om at lave det om.} other {#-redigeringer kunne ikke placeres: deres tekst er ændret. Bed igen om at lave dem om.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} lukket"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} redigeringer anvendt"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Rediger {number}:"msgid "Edit application"msgstr "Rediger ansøgning"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Ændring anvendt"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Denne browser kan ikke tage imod diktat, og ingen af dine AI-forbindelsemsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Denne forbindelsesanmodning er ugyldig eller udløbet. Start forbindelsen igen fra din klient."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Denne samtale kunne ikke åbnes."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/de-DE.po b/apps/web/locales/de-DE.poindex 1726a26ad..4b56a43a6 100644--- a/apps/web/locales/de-DE.po+++ b/apps/web/locales/de-DE.po@@ -89,7 +89,7 @@ msgstr "(optional)"msgid "(required)"msgstr "(erforderlich)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Änderung übernommen} other {# Änderungen übernommen}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# Dokument in den Papierkorb verschoben} other {# Dokumente in den Papierkorb verschoben}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {#-Bearbeitung konnte nicht platziert werden: Der Text wurde geändert. Bitten Sie noch einmal darum, es noch einmal zu machen.} other {#-Änderungen konnten nicht platziert werden: Ihr Text wurde geändert. Bitten Sie erneut, sie zu wiederholen.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} geschlossen"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} Änderungen übernommen"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Bearbeiten Sie {number}:"msgid "Edit application"msgstr "Bewerbung bearbeiten"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Änderung übernommen"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Dieser Browser unterstützt kein Diktat, und keine Ihrer KI-Verbindungenmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Diese Verbindungsanfrage ist ungültig oder abgelaufen. Starten Sie die Verbindung in Ihrem Client erneut."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Diese Konversation konnte nicht geöffnet werden."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/el-GR.po b/apps/web/locales/el-GR.poindex d530ef652..7911d5269 100644--- a/apps/web/locales/el-GR.po+++ b/apps/web/locales/el-GR.po@@ -89,7 +89,7 @@ msgstr "(προαιρετικό)"msgid "(required)"msgstr "(υποχρεωτικό)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Εφαρμόστηκε η αλλαγή} other {Εφαρμόστηκαν # αλλαγές}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# έγγραφο μετακινήθηκε στον Κάδο απορριμμάτων} other {# έγγραφα μετακινήθηκαν στον Κάδο απορριμμάτων}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {Δεν ήταν δυνατή η πραγματοποίηση επεξεργασίας #: το κείμενό του άλλαξε. Ζητήστε ξανά να το επαναλάβετε.} other {Δεν ήταν δυνατή η τοποθέτηση επεξεργασιών #: το κείμενό τους άλλαξε. Ζητήστε ξανά να τα επαναλάβετε.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} κλειστό"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "Εφαρμόστηκαν {0} τροποποιήσεις"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Επεξεργασία {number}:"msgid "Edit application"msgstr "Επεξεργασία αίτησης"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Εφαρμόστηκε η επεξεργασία"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Αυτό το πρόγραμμα περιήγησης δεν υποστmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Αυτό το αίτημα σύνδεσης δεν είναι έγκυρο ή έχει λήξει. Ξεκινήστε ξανά τη σύνδεση από την εφαρμογή-πελάτη σας."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Δεν ήταν δυνατό το άνοιγμα αυτής της συνομιλίας."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/en-GB.po b/apps/web/locales/en-GB.poindex 239cdb3fd..dc75fa31e 100644--- a/apps/web/locales/en-GB.po+++ b/apps/web/locales/en-GB.po@@ -89,7 +89,7 @@ msgstr "(optional)"msgid "(required)"msgstr "(required)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Edit applied} other {# edits applied}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# document moved to Trash} other {# documents moved to Trash}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} closed"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} edits applied"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Edit {number}:"msgid "Edit application"msgstr "Edit application"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Edit applied"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "This browser can't take dictation, and none of your AI connections can tmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "This connection request is invalid or has expired. Start the connection again from your client."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "This conversation couldn't be opened."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/en-US.po b/apps/web/locales/en-US.poindex 2f6b17b71..d58c7ffda 100644--- a/apps/web/locales/en-US.po+++ b/apps/web/locales/en-US.po@@ -84,7 +84,7 @@ msgstr "(optional)"msgid "(required)"msgstr "(required)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Edit applied} other {# edits applied}}"@@ -169,7 +169,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# document moved to Trash} other {# documents moved to Trash}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"@@ -339,11 +341,6 @@ msgstr "{0} (mine)"msgid "{0} closed"msgstr "{0} closed"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} edits applied"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5022,10 +5019,6 @@ msgstr "Edit {number}:"msgid "Edit application"msgstr "Edit application"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Edit applied"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12968,6 +12961,10 @@ msgstr "This browser can't take dictation, and none of your AI connections can tmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "This connection request is invalid or has expired. Start the connection again from your client."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "This conversation couldn't be opened."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/es-ES.po b/apps/web/locales/es-ES.poindex d85c62d13..f733eb2a4 100644--- a/apps/web/locales/es-ES.po+++ b/apps/web/locales/es-ES.po@@ -89,7 +89,7 @@ msgstr "(opcional)"msgid "(required)"msgstr "(obligatorio)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Cambio aplicado} other {# cambios aplicados}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# documento movido a la Papelera} other {# documentos movidos a la Papelera}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {No se pudo colocar la edición #: su texto cambió. Pregunta nuevamente para rehacerlo.} other {No se pudieron realizar las ediciones #: su texto cambió. Pida nuevamente que los rehaga.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} cerrado"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} ediciones aplicadas"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Editar {number}:"msgid "Edit application"msgstr "Editar candidatura"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Edición aplicada"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Este navegador no admite dictado y ninguna de tus conexiones de IA puedemsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Esta solicitud de conexión no es válida o ha caducado. Vuelve a iniciar la conexión desde tu cliente."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Esta conversación no se pudo abrir."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/fa-IR.po b/apps/web/locales/fa-IR.poindex 03a4f622c..e2e2bb788 100644--- a/apps/web/locales/fa-IR.po+++ b/apps/web/locales/fa-IR.po@@ -89,7 +89,7 @@ msgstr "(اختیاری)"msgid "(required)"msgstr "(الزامی)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {ویرایش اعمال شد} other {# ویرایش اعمال شد}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# سند به سطل زباله منتقل شد} other {# سند به سطل زباله منتقل شد}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {ویرایش # انجام نشد: متن آن تغییر کرد. دوباره بخواهید آن را دوباره انجام دهید.} other {ویرایشهای # انجام نشد: متن آنها تغییر کرد. دوباره بخواهید آنها را دوباره انجام دهید.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} بسته شد"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} ویرایش اعمال شد"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "ویرایش {number}:"msgid "Edit application"msgstr "ویرایش درخواست"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "ویرایش اعمال شد"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "این مرورگر از تایپ صوتی پشتیبانی نمیکmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "این درخواست اتصال نامعتبر است یا منقضی شده است. اتصال را از کلاینت خود دوباره شروع کنید."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "این گفتگو باز نشد."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/fi-FI.po b/apps/web/locales/fi-FI.poindex 76f9facef..94f16d38f 100644--- a/apps/web/locales/fi-FI.po+++ b/apps/web/locales/fi-FI.po@@ -89,7 +89,7 @@ msgstr "(valinnainen)"msgid "(required)"msgstr "(pakollinen)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Muokkaus tehty} other {# muokkausta tehty}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# asiakirja siirrettiin roskakoriin} other {# asiakirjaa siirrettiin roskakoriin}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# muokkausta ei voitu sijoittaa: sen tekstiä muutettiin. Pyydä uudelleen tekemään se.} other {#-muokkauksia ei voitu sijoittaa: niiden tekstiä muutettiin. Pyydä tekemään ne uudelleen.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} suljettu"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} muokkausta otettu käyttöön"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Muokkaa {number}:"msgid "Edit application"msgstr "Muokkaa hakemusta"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Muokkaus otettu käyttöön"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Tämä selain ei tue sanelua, eikä mikään tekoälyyhteyksistäsi osaamsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Tämä yhteyspyyntö on virheellinen tai vanhentunut. Aloita yhdistäminen uudelleen asiakasohjelmastasi."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Tätä keskustelua ei voitu avata."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/fr-FR.po b/apps/web/locales/fr-FR.poindex 1000f6ea0..0be0bd3df 100644--- a/apps/web/locales/fr-FR.po+++ b/apps/web/locales/fr-FR.po@@ -89,7 +89,7 @@ msgstr "(facultatif)"msgid "(required)"msgstr "(obligatoire)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Modification appliquée} other {# modifications appliquées}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# document déplacé vers la corbeille} other {# documents déplacés vers la corbeille}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {La modification # n'a pas pu être placée : son texte a été modifié. Demandez à nouveau de le refaire.} other {Les modifications # n'ont pas pu être placées : leur texte a été modifié. Demandez à nouveau de les refaire.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} fermé"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} modifications appliquées"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Modifier {number} :"msgid "Edit application"msgstr "Modifier la candidature"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Modification appliquée"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Ce navigateur ne prend pas en charge la dictée, et aucune de vos connexmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Cette demande de connexion est invalide ou a expiré. Relancez la connexion depuis votre client."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Cette conversation n'a pas pu être ouverte."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/he-IL.po b/apps/web/locales/he-IL.poindex 21b65239e..a08945563 100644--- a/apps/web/locales/he-IL.po+++ b/apps/web/locales/he-IL.po@@ -89,7 +89,7 @@ msgstr "(רשות)"msgid "(required)"msgstr "(חובה)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {העריכה הוחלה} other {# עריכות הוחלו}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# מסמך הועבר לאשפה} other {# מסמכים הועברו לאשפה}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {לא ניתן היה למקם את העריכה #: הטקסט שלה השתנה. בקש שוב לעשות זאת מחדש.} other {לא ניתן היה לבצע עריכות #: הטקסט שלהן השתנה. בקש שוב לעשות אותם מחדש.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} סגור"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "הוחלו {0} עריכות"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "ערוך {number}:"msgid "Edit application"msgstr "ערוך מועמדות"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "העריכה הוחלה"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "הדפדפן הזה לא תומך בהכתבה, ואף אחד מחיבוmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "בקשת החיבור הזו אינה חוקית או שפג תוקפה. התחל את החיבור מחדש מהלקוח שלך."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "לא ניתן היה לפתוח את השיחה הזו."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/hi-IN.po b/apps/web/locales/hi-IN.poindex fd659ff0d..f9a882c4b 100644--- a/apps/web/locales/hi-IN.po+++ b/apps/web/locales/hi-IN.po@@ -89,7 +89,7 @@ msgstr "(वैकल्पिक)"msgid "(required)"msgstr "(आवश्यक)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {बदलाव लागू किया गया} other {# बदलाव लागू किए गए}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# दस्तावेज़ ट्रैश में ले जाया गया} other {# दस्तावेज़ ट्रैश में ले जाए गए}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# संपादन नहीं रखा जा सका: इसका पाठ बदल गया। इसे दोबारा करने के लिए दोबारा पूछें.} other {# संपादन नहीं रखे जा सके: उनका पाठ बदल गया। उन्हें दोबारा करने के लिए दोबारा पूछें.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} बंद हो गया"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} संपादन लागू किये गये"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number} संपादित करें:"msgid "Edit application"msgstr "आवेदन संपादित करें"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "संपादन लागू किया गया"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "यह ब्राउज़र डिक्टेशन नहींmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "यह कनेक्शन अनुरोध अमान्य है या समाप्त हो चुका है। अपने क्लाइंट से कनेक्शन फिर से शुरू करें।"+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "यह बातचीत खोली नहीं जा सकी."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/hu-HU.po b/apps/web/locales/hu-HU.poindex fb8c16b73..e1797107b 100644--- a/apps/web/locales/hu-HU.po+++ b/apps/web/locales/hu-HU.po@@ -89,7 +89,7 @@ msgstr "(nem kötelező)"msgid "(required)"msgstr "(kötelező)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Módosítás alkalmazva} other {# módosítás alkalmazva}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# dokumentum a kukába került} other {# dokumentum a kukába került}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {A # szerkesztést nem sikerült elhelyezni: a szövege megváltozott. Kérje meg újra, hogy ismételje meg.} other {A # szerkesztéseket nem sikerült elhelyezni: a szövegük megváltozott. Kérje meg újra, hogy ismételje meg őket.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} zárva"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} szerkesztés alkalmazva"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number} szerkesztése:"msgid "Edit application"msgstr "Jelentkezés szerkesztése"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Szerkesztés alkalmazva"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Ez a böngésző nem támogatja a diktálást, és egyik AI-kapcsolatodmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Ez a csatlakozási kérés érvénytelen vagy lejárt. Indítsd újra a csatlakozást a kliensből."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Ezt a beszélgetést nem sikerült megnyitni."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/id-ID.po b/apps/web/locales/id-ID.poindex 091d92aa6..c4d46905a 100644--- a/apps/web/locales/id-ID.po+++ b/apps/web/locales/id-ID.po@@ -89,7 +89,7 @@ msgstr "(opsional)"msgid "(required)"msgstr "(wajib)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Suntingan diterapkan} other {# suntingan diterapkan}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# dokumen dipindahkan ke Sampah} other {# dokumen dipindahkan ke Sampah}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {Pengeditan # tidak dapat dilakukan: teksnya berubah. Minta lagi untuk mengulanginya.} other {Pengeditan # tidak dapat dilakukan: teksnya berubah. Minta lagi untuk mengulanginya.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} ditutup"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} suntingan diterapkan"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Sunting {number}:"msgid "Edit application"msgstr "Edit lamaran"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Pengeditan diterapkan"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Browser ini tidak mendukung dikte, dan tidak satu pun koneksi AI Anda damsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Permintaan koneksi ini tidak valid atau telah kedaluwarsa. Mulai koneksi lagi dari klien Anda."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Percakapan ini tidak dapat dibuka."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/it-IT.po b/apps/web/locales/it-IT.poindex fad4a433b..06be3cda9 100644--- a/apps/web/locales/it-IT.po+++ b/apps/web/locales/it-IT.po@@ -89,7 +89,7 @@ msgstr "(facoltativo)"msgid "(required)"msgstr "(obbligatorio)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Modifica applicata} other {# modifiche applicate}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# documento spostato nel Cestino} other {# documenti spostati nel Cestino}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {Impossibile inserire la modifica #: il testo è stato modificato. Chiedi di nuovo di rifarlo.} other {Impossibile apportare modifiche #: il testo è cambiato. Chiedi di nuovo di rifarli.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} chiuso"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} modifiche applicate"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Modifica {number}:"msgid "Edit application"msgstr "Modifica candidatura"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Modifica applicata"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Questo browser non supporta la dettatura e nessuna delle tue connessionimsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Questa richiesta di connessione non è valida o è scaduta. Avvia di nuovo la connessione dal tuo client."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Impossibile aprire questa conversazione."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/ja-JP.po b/apps/web/locales/ja-JP.poindex 1b4be642d..fb0fa18b6 100644--- a/apps/web/locales/ja-JP.po+++ b/apps/web/locales/ja-JP.po@@ -89,7 +89,7 @@ msgstr "(任意)"msgid "(required)"msgstr "(必須)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {編集を適用しました} other {# 件の編集を適用しました}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# 件の書類をゴミ箱に移動しました} other {# 件の書類をゴミ箱に移動しました}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# 編集を配置できませんでした。テキストが変更されました。やり直しをもう一度依頼してください。} other {# 編集を配置できませんでした。テキストが変更されました。もう一度やり直してもらいます。}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} 閉店"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} 編集が適用されました"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number}を編集:"msgid "Edit application"msgstr "応募を編集"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "編集が適用されました"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "このブラウザーは音声入力に対応しておらず、あなたmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "この接続リクエストは無効か、有効期限が切れています。クライアントから接続をやり直してください。"+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "この会話を開くことができませんでした。"+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/km-KH.po b/apps/web/locales/km-KH.poindex efed1771f..4e6935bb4 100644--- a/apps/web/locales/km-KH.po+++ b/apps/web/locales/km-KH.po@@ -89,7 +89,7 @@ msgstr "(ស្រេចចិត្ត)"msgid "(required)"msgstr "(តម្រូវឱ្យបំពេញ)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {បានអនុវត្តការកែសម្រួល} other {បានអនុវត្តការកែសម្រួល #}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {ឯកសារចំនួន # ត្រូវបានផ្លាស់ទីទៅធុងសំរាម} other {ឯកសារចំនួន # ត្រូវបានផ្លាស់ទីទៅធុងសំរាម}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {ការកែសម្រួល # មិនអាចត្រូវបានដាក់៖ អត្ថបទរបស់វាបានផ្លាស់ប្តូរ។ សួរម្តងទៀតដើម្បីធ្វើវាឡើងវិញ។} other {ការកែសម្រួល # មិនអាចត្រូវបានដាក់៖ អត្ថបទរបស់ពួកគេបានផ្លាស់ប្តូរ។ សុំម្តងទៀតដើម្បីធ្វើពួកវាឡើងវិញ។}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} បានបិទ"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "ការកែសម្រួល {0} បានអនុវត្ត"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "កែសម្រួល {number}៖"msgid "Edit application"msgstr "កែសម្រួលពាក្យសុំ"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "បានអនុវត្តការកែសម្រួល"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "កម្មវិធីរុករកនេះមិនអាចទទmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "សំណើតភ្ជាប់នេះមិនត្រឹមត្រូវ ឬបានផុតកំណត់។ ចាប់ផ្តើមការតភ្ជាប់ម្តងទៀតពីកម្មវិធីអតិថិជនរបស់អ្នក។"+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "ការសន្ទនានេះមិនអាចបើកបានទេ។"+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/kn-IN.po b/apps/web/locales/kn-IN.poindex f6ff715a9..856c5499c 100644--- a/apps/web/locales/kn-IN.po+++ b/apps/web/locales/kn-IN.po@@ -89,7 +89,7 @@ msgstr "(ಐಚ್ಛಿಕ)"msgid "(required)"msgstr "(ಕಡ್ಡಾಯ)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {ಸಂಪಾದನೆಯನ್ನು ಅನ್ವಯಿಸಲಾಗಿದೆ} other {# ಸಂಪಾದನೆಗಳನ್ನು ಅನ್ವಯಿಸಲಾಗಿದೆ}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# ದಾಖಲೆಯನ್ನು ಅನುಪಯುಕ್ತಕ್ಕೆ ಸರಿಸಲಾಗಿದೆ} other {# ದಾಖಲೆಗಳನ್ನು ಅನುಪಯುಕ್ತಕ್ಕೆ ಸರಿಸಲಾಗಿದೆ}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# ಸಂಪಾದನೆಯನ್ನು ಇರಿಸಲಾಗಲಿಲ್ಲ: ಅದರ ಪಠ್ಯ ಬದಲಾಗಿದೆ. ಅದನ್ನು ಪುನಃ ಮಾಡಲು ಮತ್ತೊಮ್ಮೆ ಕೇಳಿ.} other {# ಸಂಪಾದನೆಗಳನ್ನು ಇರಿಸಲಾಗಲಿಲ್ಲ: ಅವುಗಳ ಪಠ್ಯ ಬದಲಾಗಿದೆ. ಅವುಗಳನ್ನು ಪುನಃ ಮಾಡಲು ಮತ್ತೊಮ್ಮೆ ಕೇಳಿ.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} ಮುಚ್ಚಲಾಗಿದೆ"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} ಸಂಪಾದನೆಗಳನ್ನು ಅನ್ವಯಿಸಲಾಗಿದೆ"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number} ಸಂಪಾದಿಸಿ:"msgid "Edit application"msgstr "ಅರ್ಜಿಯನ್ನು ಸಂಪಾದಿಸಿ"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "ಸಂಪಾದನೆ ಅನ್ವಯಿಸಲಾಗಿದೆ"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "ಈ ಬ್ರೌಸರ್ ಡಿಕ್ಟೇಶನ್ ತೆಗೆದುmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "ಈ ಸಂಪರ್ಕ ವಿನಂತಿ ಅಮಾನ್ಯವಾಗಿದೆ ಅಥವಾ ಅವಧಿ ಮೀರಿದೆ. ನಿಮ್ಮ ಕ್ಲೈಂಟ್ನಿಂದ ಸಂಪರ್ಕವನ್ನು ಮತ್ತೆ ಪ್ರಾರಂಭಿಸಿ."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "ಈ ಸಂವಾದವನ್ನು ತೆರೆಯಲಾಗಲಿಲ್ಲ."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/ko-KR.po b/apps/web/locales/ko-KR.poindex dbe076aa7..d1ac1ce43 100644--- a/apps/web/locales/ko-KR.po+++ b/apps/web/locales/ko-KR.po@@ -89,7 +89,7 @@ msgstr "(선택)"msgid "(required)"msgstr "(필수)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {편집이 적용되었습니다} other {편집 #개가 적용되었습니다}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {서류 #개를 휴지통으로 이동했습니다} other {서류 #개를 휴지통으로 이동했습니다}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# 편집을 배치할 수 없습니다. 텍스트가 변경되었습니다. 다시 실행해 달라고 다시 요청하세요.} other {# 편집 내용을 배치할 수 없습니다. 텍스트가 변경되었습니다. 다시 실행하도록 요청하세요.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} 폐쇄"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} 수정사항 적용됨"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number} 편집:"msgid "Edit application"msgstr "지원 편집"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "수정사항 적용됨"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "이 브라우저는 받아쓰기를 지원하지 않으며, 연결된 AImsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "이 연결 요청이 잘못되었거나 만료되었습니다. 클라이언트에서 연결을 다시 시작하세요."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "이 대화를 열 수 없습니다."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/lt-LT.po b/apps/web/locales/lt-LT.poindex cbad9002f..b10a5d34e 100644--- a/apps/web/locales/lt-LT.po+++ b/apps/web/locales/lt-LT.po@@ -89,7 +89,7 @@ msgstr "(neprivaloma)"msgid "(required)"msgstr "(privaloma)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Pakeitimas pritaikytas} one {Pritaikytas # pakeitimas} few {Pritaikyti # pakeitimai} many {Pritaikyta # pakeitimo} other {Pritaikyta # pakeitimų}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# dokumentas perkeltas į šiukšliadėžę} few {# dokumentai perkelti į šiukšliadėžę} many {# dokumento perkelta į šiukšliadėžę} other {# dokumentų perkelta į šiukšliadėžę}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# redagavimo nepavyko įdėti: jo tekstas pasikeitė. Paprašykite dar kartą tai padaryti.} other {Nepavyko įdėti # redagavimo: jų tekstas pasikeitė. Dar kartą paprašykite juos perdaryti.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} uždarytas"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "Pritaikyta pakeitimų: {0}"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Redaguoti {number}:"msgid "Edit application"msgstr "Redaguoti paraišką"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Pritaikytas redagavimas"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Ši naršyklė nepalaiko diktavimo, o nė vienas jūsų AI ryšys negalimsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Ši ryšio užklausa neteisinga arba nebegalioja. Pradėkite ryšį iš naujo iš savo kliento."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Šio pokalbio nepavyko atidaryti."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/lv-LV.po b/apps/web/locales/lv-LV.poindex 8965a7836..d7fd09339 100644--- a/apps/web/locales/lv-LV.po+++ b/apps/web/locales/lv-LV.po@@ -89,7 +89,7 @@ msgstr "(neobligāti)"msgid "(required)"msgstr "(obligāti)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Labojums piemērots} zero {Piemēroti # labojumi} one {Piemērots # labojums} other {Piemēroti # labojumi}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, zero {# dokumenti pārvietoti uz atkritni} one {# dokuments pārvietots uz atkritni} other {# dokumenti pārvietoti uz atkritni}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# labojumu nevarēja ievietot: tā teksts ir mainīts. Jautājiet vēlreiz, lai to atkārtotu.} other {# labojumus nevarēja ievietot: to teksts ir mainīts. Lūdziet vēlreiz tās atkārtot.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} slēgts"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} labojumi ir piemēroti"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Rediģēt {number}:"msgid "Edit application"msgstr "Rediģēt pieteikumu"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Labojums piemērots"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Šī pārlūkprogramma neatbalsta diktēšanu, un neviens no jūsu AI samsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Šis savienojuma pieprasījums nav derīgs vai ir beidzies. Sāciet savienojumu vēlreiz no sava klienta."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Šo sarunu nevarēja atvērt."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/ml-IN.po b/apps/web/locales/ml-IN.poindex 4f3bcd7c7..1b8d20e26 100644--- a/apps/web/locales/ml-IN.po+++ b/apps/web/locales/ml-IN.po@@ -89,7 +89,7 @@ msgstr "(ഐച്ഛികം)"msgid "(required)"msgstr "(നിർബന്ധം)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {തിരുത്ത് പ്രയോഗിച്ചു} other {# തിരുത്തുകൾ പ്രയോഗിച്ചു}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# പ്രമാണം ട്രാഷിലേക്ക് നീക്കി} other {# പ്രമാണങ്ങൾ ട്രാഷിലേക്ക് നീക്കി}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# എഡിറ്റ് സ്ഥാപിക്കാൻ കഴിഞ്ഞില്ല: അതിൻ്റെ വാചകം മാറി. അത് വീണ്ടും ചെയ്യാൻ വീണ്ടും ആവശ്യപ്പെടുക.} other {# എഡിറ്റുകൾ സ്ഥാപിക്കാൻ കഴിഞ്ഞില്ല: അവയുടെ വാചകം മാറി. അവ വീണ്ടും ചെയ്യാൻ വീണ്ടും ആവശ്യപ്പെടുക.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} അടച്ചു"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} എഡിറ്റുകൾ പ്രയോഗിച്ചു"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number} എഡിറ്റ് ചെയ്യുക:"msgid "Edit application"msgstr "അപേക്ഷ എഡിറ്റ് ചെയ്യുക"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "എഡിറ്റ് പ്രയോഗിച്ചു"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "ഈ ബ്രൗസറിന് ഡിക്റ്റേഷൻ എടുmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "ഈ കണക്ഷൻ അഭ്യർത്ഥന അസാധുവാണ് അല്ലെങ്കിൽ കാലഹരണപ്പെട്ടു. നിങ്ങളുടെ ക്ലയന്റിൽ നിന്ന് കണക്ഷൻ വീണ്ടും ആരംഭിക്കുക."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "ഈ സംഭാഷണം തുറക്കാനായില്ല."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/mr-IN.po b/apps/web/locales/mr-IN.poindex aee149dcd..9d97ec487 100644--- a/apps/web/locales/mr-IN.po+++ b/apps/web/locales/mr-IN.po@@ -89,7 +89,7 @@ msgstr "(ऐच्छिक)"msgid "(required)"msgstr "(आवश्यक)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {संपादन लागू केले} other {# संपादने लागू केली}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# कागदपत्र कचऱ्यात हलवले} other {# कागदपत्रे कचऱ्यात हलवली}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# संपादन ठेवता आले नाही: त्याचा मजकूर बदलला. ते पुन्हा करण्यासाठी पुन्हा विचारा.} other {# संपादने ठेवता आली नाहीत: त्यांचा मजकूर बदलला. त्यांना पुन्हा करण्यास सांगा.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} बंद"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} संपादने लागू केली"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number} संपादित करा:"msgid "Edit application"msgstr "अर्ज संपादित करा"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "संपादन लागू केले"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "हा ब्राउझर डिक्टेशन घेऊ शकmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "ही कनेक्शन विनंती अवैध आहे किंवा कालबाह्य झाली आहे. तुमच्या क्लायंटमधून कनेक्शन पुन्हा सुरू करा."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "हे संभाषण उघडले जाऊ शकले नाही."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/ms-MY.po b/apps/web/locales/ms-MY.poindex 8b8218fc3..d83b9fa3b 100644--- a/apps/web/locales/ms-MY.po+++ b/apps/web/locales/ms-MY.po@@ -89,7 +89,7 @@ msgstr "(pilihan)"msgid "(required)"msgstr "(wajib)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Suntingan digunakan} other {# suntingan digunakan}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# dokumen dialihkan ke Sampah} other {# dokumen dialihkan ke Sampah}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {Suntingan # tidak dapat diletakkan: teksnya berubah. Minta lagi untuk buat semula.} other {Suntingan # tidak dapat diletakkan: teksnya berubah. Minta lagi untuk membuat semula mereka.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} ditutup"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "Pengeditan {0} digunakan"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Sunting {number}:"msgid "Edit application"msgstr "Edit permohonan"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Edit digunakan"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Pelayar ini tidak boleh mengambil imlak, dan tiada sambungan AI anda yanmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Permintaan sambungan ini tidak sah atau telah tamat tempoh. Mulakan sambungan semula daripada klien anda."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Perbualan ini tidak dapat dibuka."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/ne-NP.po b/apps/web/locales/ne-NP.poindex 10a605b7c..64c3fc800 100644--- a/apps/web/locales/ne-NP.po+++ b/apps/web/locales/ne-NP.po@@ -89,7 +89,7 @@ msgstr "(वैकल्पिक)"msgid "(required)"msgstr "(अनिवार्य)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {सम्पादन लागू गरियो} other {# सम्पादनहरू लागू गरिए}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# कागजात रद्दीटोकरीमा सारियो} other {# कागजातहरू रद्दीटोकरीमा सारिए}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# सम्पादन राख्न सकिएन: यसको पाठ परिवर्तन भयो। यसलाई पुन: गर्न सोध्नुहोस्।} other {# सम्पादनहरू राख्न सकिएन: तिनीहरूको पाठ परिवर्तन भयो। तिनीहरूलाई पुन: गर्न सोध्नुहोस्।}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} बन्द"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} सम्पादनहरू लागू गरियो"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number} सम्पादन गर्नुहोस्:"msgid "Edit application"msgstr "आवेदन सम्पादन गर्नुहोस्"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "सम्पादन लागू गरियो"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "यो ब्राउजरले डिक्टेसन लिनmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "यो जडान अनुरोध अमान्य छ वा म्याद सकिएको छ। आफ्नो क्लाइन्टबाट जडान फेरि सुरु गर्नुहोस्।"+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "यो कुराकानी खोल्न सकिएन।"+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/nl-NL.po b/apps/web/locales/nl-NL.poindex f0d83bc81..141fc8fe0 100644--- a/apps/web/locales/nl-NL.po+++ b/apps/web/locales/nl-NL.po@@ -89,7 +89,7 @@ msgstr "(optioneel)"msgid "(required)"msgstr "(verplicht)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Bewerking toegepast} other {# bewerkingen toegepast}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# document naar de prullenbak verplaatst} other {# documenten naar de prullenbak verplaatst}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {#-bewerking kan niet worden geplaatst: de tekst is gewijzigd. Vraag opnieuw om het opnieuw te doen.} other {#-bewerkingen konden niet worden geplaatst: de tekst ervan is gewijzigd. Vraag opnieuw om ze opnieuw uit te voeren.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} gesloten"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} bewerkingen toegepast"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number} bewerken:"msgid "Edit application"msgstr "Sollicitatie bewerken"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Bewerking toegepast"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Deze browser kan niet dicteren, en geen van uw AI-verbindingen kan spraamsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Dit verbindingsverzoek is ongeldig of verlopen. Start de verbinding opnieuw vanuit uw client."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Dit gesprek kan niet worden geopend."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/no-NO.po b/apps/web/locales/no-NO.poindex 1c07f5c8a..94846efd3 100644--- a/apps/web/locales/no-NO.po+++ b/apps/web/locales/no-NO.po@@ -89,7 +89,7 @@ msgstr "(valgfritt)"msgid "(required)"msgstr "(påkrevd)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Endring tatt i bruk} other {# endringer tatt i bruk}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# dokument flyttet til papirkurven} other {# dokumenter flyttet til papirkurven}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {#-redigering kunne ikke plasseres: teksten er endret. Be igjen om å gjøre det på nytt.} other {#-redigeringer kunne ikke plasseres: teksten deres er endret. Be igjen om å gjøre dem om.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} lukket"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} redigeringer utført"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Rediger {number}:"msgid "Edit application"msgstr "Rediger søknad"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Redigering utført"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Denne nettleseren støtter ikke diktering, og ingen av AI-tilkoblingenemsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Denne tilkoblingsforespørselen er ugyldig eller utløpt. Start tilkoblingen på nytt fra klienten din."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Denne samtalen kunne ikke åpnes."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/or-IN.po b/apps/web/locales/or-IN.poindex 940af27a7..3b792c382 100644--- a/apps/web/locales/or-IN.po+++ b/apps/web/locales/or-IN.po@@ -89,7 +89,7 @@ msgstr "(ଇଚ୍ଛାଧୀନ)"msgid "(required)"msgstr "(ଆବଶ୍ୟକ)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {ସମ୍ପାଦନା ପ୍ରୟୋଗ ହେଲା} other {#ଟି ସମ୍ପାଦନା ପ୍ରୟୋଗ ହେଲା}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# ଡକ୍ୟୁମେଣ୍ଟ୍ ଟ୍ରାଶକୁ ଚାଲିଗଲା} other {# ଡକ୍ୟୁମେଣ୍ଟ୍ ଟ୍ରାଶକୁ ଚାଲିଗଲା}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# ସମ୍ପାଦନା ସ୍ଥାନିତ ହୋଇପାରିବ ନାହିଁ: ଏହାର ପାଠ ବଦଳିଗଲା | ଏହାକୁ ପୁନର୍ବାର କରିବାକୁ କୁହନ୍ତୁ |} other {# ସମ୍ପାଦନା ସ୍ଥାନିତ ହୋଇପାରିବ ନାହିଁ: ସେମାନଙ୍କର ପାଠ ବଦଳିଗଲା | ସେମାନଙ୍କୁ ପୁନର୍ବାର କରିବାକୁ କୁହନ୍ତୁ |}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} ବନ୍ଦ |"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} ସମ୍ପାଦନା ପ୍ରୟୋଗ ହୋଇଛି |"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number} ସଂପାଦନ କରନ୍ତୁ:"msgid "Edit application"msgstr "ଆବେଦନ ସଂପାଦନ କରନ୍ତୁ |"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "ସମ୍ପାଦନା ପ୍ରୟୋଗ ହୋଇଛି"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12975,6 +12968,10 @@ msgstr "ଏହି ବ୍ରାଉଜର ଡିକ୍ଟେସନ୍ ନେଇପmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "ଏହି ସଂଯୋଗ ଅନୁରୋଧ ଅବୈଧ କିମ୍ବା ମିଆଦ ସରିଯାଇଛି। ଆପଣଙ୍କ କ୍ଲାଏଣ୍ଟରୁ ସଂଯୋଗ ପୁଣି ଆରମ୍ଭ କରନ୍ତୁ।"+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "ଏହି ବାର୍ତ୍ତାଳାପ ଖୋଲାଯାଇ ପାରିଲା ନାହିଁ |"+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/pl-PL.po b/apps/web/locales/pl-PL.poindex 9ebcd09f9..a4d1c447e 100644--- a/apps/web/locales/pl-PL.po+++ b/apps/web/locales/pl-PL.po@@ -89,7 +89,7 @@ msgstr "(opcjonalne)"msgid "(required)"msgstr "(wymagane)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Zastosowano zmianę} few {Zastosowano # zmiany} many {Zastosowano # zmian} other {Zastosowano # zmiany}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# dokument przeniesiono do Kosza} few {# dokumenty przeniesiono do Kosza} many {# dokumentów przeniesiono do Kosza} other {# dokumentu przeniesiono do Kosza}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {Nie można umieścić edycji #: zmieniono jej tekst. Poproś ponownie o ponowne wykonanie.} other {Nie można umieścić zmian w #: zmieniono ich tekst. Poproś ponownie o ich ponowne wykonanie.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} zamknięty"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "Zastosowane zmiany: {0}"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Edytuj {number}:"msgid "Edit application"msgstr "Edytuj aplikację"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Zastosowano zmianę"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Ta przeglądarka nie obsługuje dyktowania, a żadne z Twoich połączemsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "To żądanie połączenia jest nieprawidłowe lub wygasło. Rozpocznij połączenie ponownie ze swojego klienta."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Nie można otworzyć tej rozmowy."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/pt-BR.po b/apps/web/locales/pt-BR.poindex 5c22bd805..d5f26a7b9 100644--- a/apps/web/locales/pt-BR.po+++ b/apps/web/locales/pt-BR.po@@ -89,7 +89,7 @@ msgstr "(opcional)"msgid "(required)"msgstr "(obrigatório)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Edição aplicada} other {# edições aplicadas}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# documento movido para a Lixeira} other {# documentos movidos para a Lixeira}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {A edição # não pôde ser colocada: seu texto foi alterado. Peça novamente para refazer.} other {As edições de # não puderam ser colocadas: seu texto foi alterado. Peça novamente para refazê-los.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} fechado"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} edições aplicadas"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Editar {number}:"msgid "Edit application"msgstr "Editar candidatura"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Edição aplicada"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Este navegador não faz ditado, e nenhuma das suas conexões de IA consemsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Esta solicitação de conexão é inválida ou expirou. Inicie a conexão novamente no seu cliente."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Não foi possível abrir esta conversa."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/pt-PT.po b/apps/web/locales/pt-PT.poindex d7376e94a..d8c2ff251 100644--- a/apps/web/locales/pt-PT.po+++ b/apps/web/locales/pt-PT.po@@ -89,7 +89,7 @@ msgstr "(opcional)"msgid "(required)"msgstr "(obrigatório)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Edição aplicada} other {# edições aplicadas}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# documento movido para a Lixeira} other {# documentos movidos para a Lixeira}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {A edição # não pôde ser colocada: o seu texto foi alterado. Peça novamente para refazer.} other {As edições de # não puderam ser colocadas: o seu texto foi alterado. Peça novamente para os refazer.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} fechado"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} edições aplicadas"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Editar {number}:"msgid "Edit application"msgstr "Editar candidatura"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Edição aplicada"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Este navegador não suporta ditado e nenhuma das suas ligações de IA cmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Este pedido de ligação é inválido ou expirou. Inicie a ligação novamente a partir do seu cliente."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Não foi possível abrir esta conversa."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/ro-RO.po b/apps/web/locales/ro-RO.poindex 505298b84..4df2d7c0c 100644--- a/apps/web/locales/ro-RO.po+++ b/apps/web/locales/ro-RO.po@@ -89,7 +89,7 @@ msgstr "(opțional)"msgid "(required)"msgstr "(obligatoriu)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Modificare aplicată} few {# modificări aplicate} other {# de modificări aplicate}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# document mutat în Coșul de gunoi} few {# documente mutate în Coșul de gunoi} other {# de documente mutate în Coșul de gunoi}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {Editarea # nu a putut fi plasată: textul său s-a schimbat. Solicitați din nou să o refaceți.} other {Editările # nu au putut fi plasate: textul acestora s-a schimbat. Solicitați din nou să le refaceți.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} închis"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "S-au aplicat {0} modificări"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Editați {number}:"msgid "Edit application"msgstr "Editați candidatura"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Editare aplicată"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Acest browser nu poate prelua dictarea, iar niciuna dintre conexiunile dmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Această cerere de conectare este invalidă sau a expirat. Reia conectarea din clientul tău."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Această conversație nu a putut fi deschisă."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/ru-RU.po b/apps/web/locales/ru-RU.poindex e11f29f8a..5896fa66f 100644--- a/apps/web/locales/ru-RU.po+++ b/apps/web/locales/ru-RU.po@@ -89,7 +89,7 @@ msgstr "(необязательно)"msgid "(required)"msgstr "(обязательно)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Правка применена} one {Применена # правка} few {Применено # правки} many {Применено # правок} other {Применено # правки}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# документ перемещён в корзину} few {# документа перемещены в корзину} many {# документов перемещены в корзину} other {# документа перемещены в корзину}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {Редактирование # не удалось разместить: его текст изменился. Попросите еще раз переделать.} other {Не удалось разместить изменения #: их текст изменился. Попросите еще раз переделать их.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} закрыто"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "Применено изменений: {0}"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Редактировать {number}:"msgid "Edit application"msgstr "Редактировать заявку"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Изменение применено"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Этот браузер не поддерживает диктовку,msgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Этот запрос на подключение недействителен или истек. Начните подключение заново в своем клиенте."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Этот разговор не удалось открыть."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/sk-SK.po b/apps/web/locales/sk-SK.poindex 1152fb920..0082c0409 100644--- a/apps/web/locales/sk-SK.po+++ b/apps/web/locales/sk-SK.po@@ -89,7 +89,7 @@ msgstr "(voliteľné)"msgid "(required)"msgstr "(povinné)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Úprava použitá} few {Použité # úpravy} many {Použitej # úpravy} other {Použitých # úprav}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# dokument presunutý do koša} few {# dokumenty presunuté do koša} many {# dokumentu presunutého do koša} other {# dokumentov presunutých do koša}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {Úpravu # nebolo možné umiestniť: zmenil sa jej text. Znova požiadajte o zopakovanie.} other {Úpravy # nebolo možné umiestniť: ich text sa zmenil. Znova požiadajte o ich opätovné vykonanie.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} zatvorené"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "Použité úpravy: {0}"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Upraviť {number}:"msgid "Edit application"msgstr "Upraviť žiadosť"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Úprava bola použitá"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Tento prehliadač nepodporuje diktovanie a žiadne z vašich pripojenímsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Táto žiadosť o pripojenie je neplatná alebo jej platnosť vypršala. Spustite pripojenie znova zo svojho klienta."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Túto konverzáciu sa nepodarilo otvoriť."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/sl-SI.po b/apps/web/locales/sl-SI.poindex 2f59e0889..821817d5e 100644--- a/apps/web/locales/sl-SI.po+++ b/apps/web/locales/sl-SI.po@@ -89,7 +89,7 @@ msgstr "(neobvezno)"msgid "(required)"msgstr "(obvezno)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Sprememba uporabljena} one {# sprememba uporabljena} two {# spremembi uporabljeni} few {# spremembe uporabljene} other {# sprememb uporabljenih}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# dokument premaknjen v smetnjak} two {# dokumenta premaknjena v smetnjak} few {# dokumenti premaknjeni v smetnjak} other {# dokumentov premaknjenih v smetnjak}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {Urejanja # ni bilo mogoče umestiti: besedilo se je spremenilo. Prosite znova, da ga ponovite.} other {# urejanj ni bilo mogoče umestiti: njihovo besedilo se je spremenilo. Prosite znova, da jih ponovite.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} zaprto"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "Uporabljena urejanja: {0}"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Uredi {number}:"msgid "Edit application"msgstr "Uredi prijavo"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Urejanje je uporabljeno"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Ta brskalnik ne podpira narekovanja in nobena vaša povezava AI ne zna pmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Ta zahteva za povezavo je neveljavna ali je potekla. Povezavo znova zaženite iz odjemalca."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Tega pogovora ni bilo mogoče odpreti."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/sq-AL.po b/apps/web/locales/sq-AL.poindex 96e849b95..9e37b0adc 100644--- a/apps/web/locales/sq-AL.po+++ b/apps/web/locales/sq-AL.po@@ -89,7 +89,7 @@ msgstr "(opsionale)"msgid "(required)"msgstr "(e detyrueshme)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Ndryshimi u zbatua} other {U zbatuan # ndryshime}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# dokument u zhvendos në Kosh} other {# dokumente u zhvendosën në Kosh}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {Redaktimi # nuk mund të vendosej: teksti i tij ndryshoi. Kërkoni sërish ta ribëni.} other {Redaktimet # nuk mund të vendoseshin: teksti i tyre ndryshoi. Kërkoni përsëri t'i ribëni ato.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} i mbyllur"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "U zbatuan {0} modifikime"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Redakto {number}:"msgid "Edit application"msgstr "Redakto aplikimin"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Zbatohet modifikimi"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Ky shfletues nuk mund të marrë diktim dhe asnjë nga lidhjet tuaja AImsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Kjo kërkesë për lidhje është e pavlefshme ose ka skaduar. Nisni lidhjen përsëri nga klienti juaj."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Kjo bisedë nuk mund të hapej."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/sr-SP.po b/apps/web/locales/sr-SP.poindex 033f25c15..b517f6218 100644--- a/apps/web/locales/sr-SP.po+++ b/apps/web/locales/sr-SP.po@@ -89,7 +89,7 @@ msgstr "(опционо)"msgid "(required)"msgstr "(обавезно)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Измена је примењена} one {# измена је примењена} few {# измене су примењене} other {# измена је примењено}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# документ је премештен у Отпад} few {# документа су премештена у Отпад} other {# докумената је премештено у Отпад}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# измена није могла да се постави: њен текст је промењен. Поново замолите да то поновите.} other {# измене нису могле бити постављене: њихов текст је промењен. Замолите поново да их поновите.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} затворен"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "Примењено измена: {0}"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Уреди {number}:"msgid "Edit application"msgstr "Уреди пријаву"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Измена је примењена"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Овај прегледач не подржава диктирање, аmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Овај захтев за повезивање је неважећи или је истекао. Поново покрените повезивање са клијента."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Овај разговор није могао да се отвори."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/sv-SE.po b/apps/web/locales/sv-SE.poindex 5b9594d44..6117514b3 100644--- a/apps/web/locales/sv-SE.po+++ b/apps/web/locales/sv-SE.po@@ -89,7 +89,7 @@ msgstr "(valfritt)"msgid "(required)"msgstr "(obligatoriskt)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Ändringen tillämpades} other {# ändringar tillämpades}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# dokument flyttades till papperskorgen} other {# dokument flyttades till papperskorgen}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# redigering kunde inte placeras: dess text ändrades. Be igen att göra om det.} other {# redigeringar kunde inte placeras: deras text ändrades. Be igen att göra om dem.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} stängd"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} ändringar tillämpade"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Redigera {number}:"msgid "Edit application"msgstr "Redigera ansökan"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Ändring tillämpad"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Den här webbläsaren kan inte ta diktering, och ingen av dina AI-anslutmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Den här anslutningsbegäran är ogiltig eller har upphört att gälla. Starta anslutningen igen från din klient."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Den här konversationen kunde inte öppnas."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/ta-IN.po b/apps/web/locales/ta-IN.poindex cb1e644b3..a93284033 100644--- a/apps/web/locales/ta-IN.po+++ b/apps/web/locales/ta-IN.po@@ -89,7 +89,7 @@ msgstr "(விருப்பத்தேர்வு)"msgid "(required)"msgstr "(கட்டாயம்)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {திருத்தம் பயன்படுத்தப்பட்டது} other {# திருத்தங்கள் பயன்படுத்தப்பட்டன}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# ஆவணம் குப்பைக்கு நகர்த்தப்பட்டது} other {# ஆவணங்கள் குப்பைக்கு நகர்த்தப்பட்டன}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# திருத்தத்தை வைக்க முடியவில்லை: அதன் உரை மாற்றப்பட்டது. அதை மீண்டும் செய்ய மீண்டும் கேளுங்கள்.} other {# திருத்தங்களைச் செய்ய முடியவில்லை: அவற்றின் உரை மாற்றப்பட்டது. அவற்றை மீண்டும் செய்ய மீண்டும் கேளுங்கள்.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} மூடப்பட்டது"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} திருத்தங்கள் பயன்படுத்தப்பட்டன"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "திருத்து {number}:"msgid "Edit application"msgstr "பயன்பாட்டைத் திருத்தவும்"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "திருத்தம் பயன்படுத்தப்பட்டது"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "இந்த உலாவியால் குரல் தட்டசmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "இந்த இணைப்புக் கோரிக்கை செல்லாதது அல்லது காலாவதியானது. உங்கள் கிளையண்டிலிருந்து இணைப்பை மீண்டும் தொடங்கவும்."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "இந்த உரையாடலைத் திறக்க முடியவில்லை."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/te-IN.po b/apps/web/locales/te-IN.poindex 55eff14c9..3e3cf963d 100644--- a/apps/web/locales/te-IN.po+++ b/apps/web/locales/te-IN.po@@ -89,7 +89,7 @@ msgstr "(ఐచ్ఛికం)"msgid "(required)"msgstr "(తప్పనిసరి)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {సవరణ వర్తింపజేయబడింది} other {# సవరణలు వర్తింపజేయబడ్డాయి}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# పత్రం ట్రాష్కి తరలించబడింది} other {# పత్రాలు ట్రాష్కి తరలించబడ్డాయి}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# సవరణను ఉంచడం సాధ్యపడలేదు: దాని వచనం మార్చబడింది. దీన్ని మళ్లీ చేయమని మళ్లీ అడగండి.} other {# సవరణలు ఉంచడం సాధ్యపడలేదు: వాటి వచనం మార్చబడింది. వాటిని మళ్లీ చేయమని మళ్లీ అడగండి.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} మూసివేయబడింది"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} సవరణలు వర్తింపజేయబడ్డాయి"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number}ని సవరించండి:"msgid "Edit application"msgstr "దరఖాస్తును సవరించు"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "సవరణ వర్తింపజేయబడింది"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "ఈ బ్రౌజర్ వాయిస్ టైపింగ్ చmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "ఈ కనెక్షన్ అభ్యర్థన చెల్లనిది లేదా గడువు ముగిసింది. మీ క్లయింట్ నుండి కనెక్షన్ను మళ్ళీ ప్రారంభించండి."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "ఈ సంభాషణ తెరవడం సాధ్యపడలేదు."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/th-TH.po b/apps/web/locales/th-TH.poindex 6013931a9..b523fd6a6 100644--- a/apps/web/locales/th-TH.po+++ b/apps/web/locales/th-TH.po@@ -89,7 +89,7 @@ msgstr "(ไม่บังคับ)"msgid "(required)"msgstr "(จำเป็น)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {ใช้การแก้ไขแล้ว} other {ใช้การแก้ไข # รายการแล้ว}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {ย้ายเอกสาร # รายการไปที่ถังขยะแล้ว} other {ย้ายเอกสาร # รายการไปที่ถังขยะแล้ว}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {ไม่สามารถวางการแก้ไข # ได้ เนื่องจากข้อความมีการเปลี่ยนแปลง ถามอีกครั้งเพื่อทำซ้ำ} other {ไม่สามารถวางการแก้ไข # ได้ เนื่องจากข้อความมีการเปลี่ยนแปลง ถามอีกครั้งเพื่อทำซ้ำ}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} ปิดแล้ว"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "ปรับใช้การแก้ไข {0} รายการแล้ว"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "แก้ไข {number}:"msgid "Edit application"msgstr "แก้ไขใบสมัคร"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "แก้ไขแล้ว"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "เบราว์เซอร์นี้พิมพ์ด้วยเmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "คำขอเชื่อมต่อนี้ไม่ถูกต้องหรือหมดอายุแล้ว เริ่มการเชื่อมต่ออีกครั้งจากไคลเอนต์ของคุณ"+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "ไม่สามารถเปิดการสนทนานี้ได้"+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/tr-TR.po b/apps/web/locales/tr-TR.poindex c69b4883b..25a9b310a 100644--- a/apps/web/locales/tr-TR.po+++ b/apps/web/locales/tr-TR.po@@ -89,7 +89,7 @@ msgstr "(isteğe bağlı)"msgid "(required)"msgstr "(zorunlu)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Düzenleme uygulandı} other {# düzenleme uygulandı}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# belge Çöp Kutusu'na taşındı} other {# belge Çöp Kutusu'na taşındı}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# düzenlemesi yerleştirilemedi: metni değiştirildi. Yeniden yapılmasını tekrar isteyin.} other {# düzenlemeleri yerleştirilemedi: metinleri değiştirildi. Tekrar yapmalarını isteyin.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} kapalı"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} düzenleme uygulandı"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number}'yu düzenleyin:"msgid "Edit application"msgstr "Başvuruyu düzenle"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Düzenleme uygulandı"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Bu tarayıcı sesle yazmayı desteklemiyor ve yapay zeka bağlantılarımsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Bu bağlantı isteği geçersiz veya süresi dolmuş. Bağlantıyı istemcinizden yeniden başlatın."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Bu görüşme açılamadı."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/uk-UA.po b/apps/web/locales/uk-UA.poindex 00574fc2f..6d74885de 100644--- a/apps/web/locales/uk-UA.po+++ b/apps/web/locales/uk-UA.po@@ -89,7 +89,7 @@ msgstr "(необов’язково)"msgid "(required)"msgstr "(обов’язково)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Зміну застосовано} one {Застосовано # зміну} few {Застосовано # зміни} many {Застосовано # змін} other {Застосовано # зміни}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# документ переміщено в кошик} few {# документи переміщено в кошик} many {# документів переміщено в кошик} other {# документа переміщено в кошик}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {Не вдалося розмістити правку #: її текст змінено. Попросіть ще раз переробити.} other {Не вдалося розмістити зміни #: їхній текст змінено. Попросіть ще раз їх переробити.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} закрито"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "Застосовано змін: {0}"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Редагувати {number}:"msgid "Edit application"msgstr "Редагувати заявку"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Редагування застосовано"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Цей браузер не підтримує диктування, аmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Цей запит на підключення недійсний або його термін дії минув. Почніть підключення знову зі свого клієнта."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Не вдалося відкрити цю бесіду."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/uz-UZ.po b/apps/web/locales/uz-UZ.poindex 876a79e65..bc5ad4230 100644--- a/apps/web/locales/uz-UZ.po+++ b/apps/web/locales/uz-UZ.po@@ -89,7 +89,7 @@ msgstr "(ixtiyoriy)"msgid "(required)"msgstr "(majburiy)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Tahrir qo'llandi} other {# ta tahrir qo'llandi}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {# ta hujjat chiqindiga o‘tkazildi} other {# ta hujjat chiqindiga o‘tkazildi}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {# tahririni joylab boʻlmadi: uning matni oʻzgartirildi. Buni qayta bajarishni so'rang.} other {# tahrirlarini joylashtirib boʻlmadi: ularning matni oʻzgartirildi. Ularni qayta tiklashni so'rang.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} yopildi"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} ta tahrir qo'llanildi"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "{number} tahrirlash:"msgid "Edit application"msgstr "Arizani tahrirlash"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Tahrirlash qo'llanildi"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Bu brauzer diktovkani qo'llab-quvvatlamaydi va AI ulanishlaringizdan hecmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Bu ulanish so'rovi noto'g'ri yoki muddati tugagan. Ulanishni mijozingizdan qayta boshlang."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Bu suhbatni ochib bo‘lmadi."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/vi-VN.po b/apps/web/locales/vi-VN.poindex a411fa6f7..7bb44df35 100644--- a/apps/web/locales/vi-VN.po+++ b/apps/web/locales/vi-VN.po@@ -89,7 +89,7 @@ msgstr "(không bắt buộc)"msgid "(required)"msgstr "(bắt buộc)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {Đã áp dụng chỉnh sửa} other {Đã áp dụng # chỉnh sửa}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {Đã chuyển # tài liệu vào Thùng rác} other {Đã chuyển # tài liệu vào Thùng rác}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {Không thể đặt bản chỉnh sửa #: văn bản của nó đã thay đổi. Yêu cầu làm lại lần nữa.} other {Không thể đặt các chỉnh sửa #: văn bản của chúng đã thay đổi. Yêu cầu một lần nữa để làm lại chúng.}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} đã đóng"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "Đã áp dụng {0} chỉnh sửa"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "Chỉnh sửa {number}:"msgid "Edit application"msgstr "Chỉnh sửa hồ sơ ứng tuyển"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "Đã áp dụng chỉnh sửa"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "Trình duyệt này không hỗ trợ đọc chính tả, và không kmsgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "Yêu cầu kết nối này không hợp lệ hoặc đã hết hạn. Hãy bắt đầu lại kết nối từ máy khách của bạn."+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "Không thể mở cuộc trò chuyện này."+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/zh-CN.po b/apps/web/locales/zh-CN.poindex d6c0f3f65..3456a662b 100644--- a/apps/web/locales/zh-CN.po+++ b/apps/web/locales/zh-CN.po@@ -89,7 +89,7 @@ msgstr "(选填)"msgid "(required)"msgstr "(必填)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {已应用修改} other {已应用 # 处修改}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {已将 # 个文件移至垃圾箱} other {已将 # 个文件移至垃圾箱}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {无法放置 # 编辑:其文本已更改。再次要求重做。} other {无法放置 # 编辑:其文本已更改。再次要求重做。}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} 已关闭"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} 编辑已应用"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "编辑{number}:"msgid "Edit application"msgstr "编辑申请"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "编辑已应用"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "此浏览器不支持听写,且您的 AI 连接都无法转写语音msgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "此连接请求无效或已过期。请从你的客户端重新发起连接。"+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "该对话无法打开。"+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/zh-TW.po b/apps/web/locales/zh-TW.poindex 90410026d..7b9c50d30 100644--- a/apps/web/locales/zh-TW.po+++ b/apps/web/locales/zh-TW.po@@ -89,7 +89,7 @@ msgstr "(選填)"msgid "(required)"msgstr "(必填)"-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr "{0, plural, =1 {已套用修改} other {已套用 # 處修改}}"@@ -174,7 +174,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr "{0, plural, one {已將 # 份文件移至垃圾箱} other {已將 # 份文件移至垃圾箱}}"#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr "{0, plural, one {無法放置 # 編輯:其文字已更改。再次要求重做。} other {無法放置 # 編輯:其文字已更改。再次要求重做。}}"@@ -344,11 +346,6 @@ msgstr ""msgid "{0} closed"msgstr "{0} 已關閉"-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr "{0} 編輯已套用"-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5027,10 +5024,6 @@ msgstr "編輯{number}:"msgid "Edit application"msgstr "編輯應徵紀錄"-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr "編輯已套用"-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12973,6 +12966,10 @@ msgstr "此瀏覽器不支援聽寫,且您的 AI 連線都無法轉錄語音msgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr "此連線要求無效或已過期。請從您的用戶端重新發起連線。"+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr "該對話無法開啟。"+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/locales/zu-ZA.po b/apps/web/locales/zu-ZA.poindex 551920a35..2d6861261 100644--- a/apps/web/locales/zu-ZA.po+++ b/apps/web/locales/zu-ZA.po@@ -84,7 +84,7 @@ msgstr ""msgid "(required)"msgstr ""-#. placeholder {0}: proposals.length+#. placeholder {0}: applied.length#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, =1 {Edit applied} other {# edits applied}}"msgstr ""@@ -169,7 +169,9 @@ msgid "{0, plural, one {# document moved to Trash} other {# documents moved to Tmsgstr ""#. placeholder {0}: output.skipped.length+#. placeholder {0}: stale.length#: src/features/assistant/conversation.tsx+#: src/features/resume/editor/proposals/proposals.tsmsgid "{0, plural, one {# edit couldn't be placed: its text changed. Ask again to redo it.} other {# edits couldn't be placed: their text changed. Ask again to redo them.}}"msgstr ""@@ -339,11 +341,6 @@ msgstr ""msgid "{0} closed"msgstr ""-#. placeholder {0}: proposals.length-#: src/features/assistant/document.ts-msgid "{0} edits applied"-msgstr ""-#. placeholder {0}: semantics.dates.length#: src/features/resume/editor/check/parser-view.tsxmsgid "{0} found"@@ -5022,10 +5019,6 @@ msgstr ""msgid "Edit application"msgstr ""-#: src/features/assistant/document.ts-msgid "Edit applied"-msgstr ""-#. placeholder {0}: shownColor.token.value#: src/features/resume/stylesheet/editor.tsxmsgid "Edit color {0}"@@ -12968,6 +12961,10 @@ msgstr ""msgid "This connection request is invalid or has expired. Start the connection again from your client."msgstr ""+#: src/features/assistant/conversation.tsx+msgid "This conversation couldn't be opened."+msgstr ""+#: src/features/assistant/assistant-panel.tsx#: src/features/career/coach-thread.tsxmsgid "This conversation couldn't be opened. Refresh the page to try again."diff --git a/apps/web/src/features/assistant/assistant-panel.test.tsx b/apps/web/src/features/assistant/assistant-panel.test.tsxindex 70b5720a4..958a92f53 100644--- a/apps/web/src/features/assistant/assistant-panel.test.tsx+++ b/apps/web/src/features/assistant/assistant-panel.test.tsx@@ -52,7 +52,7 @@ const document: AssistantDocument = {locked: false,posting: null,stateOf: () => "pending",- accept: () => {},+ accept: () => ({ applied: [], stale: [] }),locationOf: () => undefined,};beforeEach(() => {diff --git a/apps/web/src/features/assistant/conversation.test.tsx b/apps/web/src/features/assistant/conversation.test.tsxindex 8a3343040..5dad9023b 100644--- a/apps/web/src/features/assistant/conversation.test.tsx+++ b/apps/web/src/features/assistant/conversation.test.tsx@@ -1,18 +1,32 @@-// @vitest-environment happy-domimport type { AssistantDocument } from "./document";+// @vitest-environment happy-dom+import type { Proposal } from "@reactive-resume/resume/proposals";import { cleanup, fireEvent, render, screen, waitFor } from "@testing-library/react";import { afterEach, beforeEach, expect, it, vi } from "vite-plus/test";import { i18n } from "@lingui/core";import { I18nProvider } from "@lingui/react";+import { applyProposals, getStateIn } from "@reactive-resume/resume/proposals";-const mocks = vi.hoisted(() => ({ chat: vi.fn(), send: vi.fn(), attach: vi.fn(), publish: vi.fn() }));-vi.mock("@tanstack/react-query", () => ({ useQueryClient: () => ({ invalidateQueries: vi.fn() }) }));+const mocks = vi.hoisted(() => ({+ chat: vi.fn(),+ send: vi.fn(),+ attach: vi.fn(),+ publish: vi.fn(),+ record: vi.fn(),+ receipts: vi.fn(),+}));+vi.mock("@tanstack/react-query", () => ({+ useQueryClient: () => ({ invalidateQueries: vi.fn() }),+ useQuery: mocks.receipts,+}));vi.mock("@/features/resume/editor/store", () => ({useEditorStore: { setState: mocks.publish },}));vi.mock("@/libs/orpc/client", () => ({- client: { agent: { attachments: { create: mocks.attach } } },- orpc: { agent: { threads: { list: { key: () => ["threads"] } } } },+ client: { agent: { attachments: { create: mocks.attach }, messages: { setEditStatus: mocks.record } } },+ orpc: {+ agent: { threads: { get: { queryOptions: () => ({ queryKey: ["thread"] }) }, list: { key: () => ["threads"] } } },+ },}));vi.mock("@reactive-resume/ui/components/toast", () => ({ toast: { add: vi.fn() } }));vi.mock("./use-assistant-chat", () => ({ useAssistantChat: mocks.chat }));@@ -36,13 +50,15 @@ const document: AssistantDocument = {locked: false,posting: { id: "application-2", company: "Selected Company", role: "Engineer" },stateOf: () => "pending",- accept: () => {},+ accept: () => ({ applied: [], stale: [] }),locationOf: () => undefined,};beforeEach(() => {vi.clearAllMocks();+ mocks.receipts.mockReturnValue({});i18n.loadAndActivate({ locale: "en-US", messages: {} });mocks.chat.mockReturnValue({ messages: [], sendMessage: mocks.send, status: "ready", clearError: vi.fn() });+ mocks.record.mockResolvedValue(undefined);mocks.attach.mockResolvedValue({ id: "file-1", filename: "posting.txt", mediaType: "text/plain" });});afterEach(cleanup);@@ -238,3 +254,171 @@ it("reopens native and custom web results with sources, clipping and failed or u"https://careers.example/role",);});++it("records only edits actually applied, with failed cards out of date and an accurate applied count", async () => {+ let content = "<p>Original</p>";+ const applications: Record<string, boolean> = {};+ const base: Proposal = {+ id: "rewrite",+ target: { sectionId: "summary", field: "content" },+ location: "Summary",+ before: content,+ after: "<p>Rewritten</p>",+ why: "Clearer",+ status: "pending",+ source: "assistant",+ };+ const edits = [base, { ...base, id: "addition", after: "<p>Conflicting rewrite</p>" }];+ const doc: AssistantDocument = {+ ...document,+ stateOf: (edit) => getStateIn(content, edit, applications),+ accept: (chosen) => {+ const result = applyProposals(+ chosen,+ () => content,+ (_, value) => {+ content = value;+ },+ );+ for (const edit of result.applied) applications[edit.id] = true;+ return result;+ },+ };+ mocks.chat.mockReturnValue({+ messages: [+ {+ id: "message",+ role: "assistant",+ parts: [+ { type: "tool-propose_edits", toolCallId: "call", state: "output-available", output: { edits, skipped: [] } },+ ],+ },+ ],+ status: "ready",+ clearError: vi.fn(),+ });+ const view = () => (+ <I18nProvider i18n={i18n}>+ <Conversation+ document={doc}+ threadId="thread-1"+ initialMessages={[]}+ activeRun={false}+ readOnly={false}+ providerLabel="Local"+ initialContext={{ document: true, posting: true }}+ prompt={null}+ promptAttachments={[]}+ onPromptSent={() => {}}+ onSwitchModel={() => {}}+ />+ </I18nProvider>+ );+ const { rerender } = render(view());+ fireEvent.click(screen.getByRole("button", { name: "Accept all" }));+ rerender(view());+ expect(mocks.record).not.toHaveBeenCalled();+ expect(content).toBe("<p>Rewritten</p>");+ expect(screen.getByText("1 of 2 applied")).toBeDefined();+ expect(screen.getByText("Out of date: the text has changed since.")).toBeDefined();+ expect(screen.queryByRole("button", { name: "Accept" })).toBeNull();+});++it("persists only explicit history changes after acceptance, retaining refinements and restoring redo", async () => {+ const edit: Proposal = {+ id: "edit",+ target: { sectionId: "summary", field: "content" },+ location: "Summary",+ before: "<p>Old</p>",+ after: "<p>Old</p><p>Added</p>",+ why: "Clearer",+ status: "pending",+ source: "assistant",+ };+ const part = {+ type: "tool-propose_edits",+ toolCallId: "call",+ state: "output-available",+ output: { edits: [edit], skipped: [] },+ };+ mocks.chat.mockReturnValue({+ messages: [{ id: "message", role: "assistant", parts: [part] }],+ status: "ready",+ clearError: vi.fn(),+ });+ let content = edit.before;+ let proposalRevision = "local";+ mocks.receipts.mockReturnValue({ data: { messages: [] } });+ let applied: boolean | undefined;+ const view = () => {+ const doc: AssistantDocument = {+ ...document,+ proposalRevision,+ stateOf: (proposal) => getStateIn(content, proposal, applied === undefined ? {} : { edit: applied }),+ accept: (chosen) => {+ const result = applyProposals(+ chosen,+ () => content,+ (_, value) => {+ content = value;+ },+ applied === undefined ? {} : { edit: applied },+ );+ if (result.applied.length) applied = true;+ return result;+ },+ };+ return (+ <I18nProvider i18n={i18n}>+ <Conversation+ document={doc}+ threadId="thread-1"+ initialMessages={[]}+ activeRun={false}+ readOnly={false}+ providerLabel="Local"+ initialContext={{ document: true, posting: true }}+ prompt={null}+ promptAttachments={[]}+ onPromptSent={() => {}}+ onSwitchModel={() => {}}+ />+ </I18nProvider>+ );+ };+ const { rerender } = render(view());+ fireEvent.click(screen.getByRole("button", { name: "Accept" }));+ rerender(view());+ await waitFor(() => expect(screen.getByText("1 of 1 applied")).toBeDefined());+ content = "<p>Refined anchor</p><p>Refined addition</p>";+ rerender(view());+ expect(screen.getByText("1 of 1 applied")).toBeDefined();+ expect(mocks.record).not.toHaveBeenCalled();+ applied = false;+ content = edit.before;+ rerender(view());+ await waitFor(() => expect(screen.getByRole("button", { name: "Accept" })).toBeDefined());+ applied = true;+ content = "<p>Refined anchor</p><p>Refined addition</p>";+ rerender(view());+ await waitFor(() => expect(screen.getByText("1 of 1 applied")).toBeDefined());+ expect(mocks.record).not.toHaveBeenCalled();+ expect(screen.queryByRole("button", { name: "Accept" })).toBeNull();+ // A newer remote Undo invalidates both the owner overlay and mounted chat's old receipt.+ applied = undefined;+ content = edit.before;+ proposalRevision = "remote-undo";+ mocks.receipts.mockReturnValue({ data: { messages: [{ id: "message", role: "assistant", parts: [part] }] } });+ rerender(view());+ expect(screen.getByRole("button", { name: "Accept" })).toBeDefined();+ expect(mocks.receipts).toHaveBeenLastCalledWith(expect.objectContaining({ queryKey: ["thread", "remote-undo"] }));+ const refetch = vi.fn();+ proposalRevision = "remote-unread";+ mocks.receipts.mockReturnValue({ error: new Error("Offline"), refetch });+ rerender(view());+ expect(screen.getByRole("button", { name: "Accept" }).hasAttribute("disabled")).toBe(true);+ expect(screen.getByRole("alert").textContent).toContain("This conversation couldn't be opened.");+ fireEvent.click(screen.getByRole("button", { name: "Retry" }));+ expect(refetch).toHaveBeenCalledOnce();+ expect(mocks.send).not.toHaveBeenCalled();+});diff --git a/apps/web/src/features/assistant/conversation.tsx b/apps/web/src/features/assistant/conversation.tsxindex 13db1b994..b1b2f71e9 100644--- a/apps/web/src/features/assistant/conversation.tsx+++ b/apps/web/src/features/assistant/conversation.tsx@@ -7,9 +7,9 @@ import type { UIMessage } from "ai";import type { ReactNode } from "react";import { t } from "@lingui/core/macro";import { Plural, Trans } from "@lingui/react/macro";-import { useQueryClient } from "@tanstack/react-query";+import { useQuery, useQueryClient } from "@tanstack/react-query";import { lastAssistantMessageIsCompleteWithApprovalResponses, lastAssistantMessageIsCompleteWithToolCalls } from "ai";-import { memo, useEffect, useEffectEvent, useId, useMemo, useRef, useState } from "react";+import { memo, useEffect, useId, useMemo, useRef, useState } from "react";import { agentWebSources, readPageOutputSchema } from "@reactive-resume/ai/tools/agent-tool-contracts";import { Button } from "@reactive-resume/ui/components/button";import { Icon } from "@reactive-resume/ui/components/icon";@@ -69,7 +69,7 @@ export function Conversation(props: ConversationProps) {const { threadId, document, readOnly } = props;const queryClient = useQueryClient();const [context, setContext] = useState<MessageContext>(props.initialContext);- const [statuses, setStatuses] = useState<ReadonlyMap<string, EditStatus>>(new Map());+ const [rejections, setStatuses] = useState<ReadonlyMap<string, EditStatus>>(new Map());const [stopped, setStopped] = useState(false);// Messages already in the thread when it opens are history; only new ones rise in.const [initialIds] = useState(() => new Set(props.initialMessages.map((message) => message.id)));@@ -82,7 +82,7 @@ export function Conversation(props: ConversationProps) {messages,sendMessage,status,- error,+ error: chatError,clearError,regenerate,stop,@@ -132,6 +132,10 @@ export function Conversation(props: ConversationProps) {// A failed continuation (after an answer) is sent again as it was; regenerating would drop the answer.const retry = () => {if (busy || readOnly || continuationBlocked) return;+ if (receipts.error) {+ void receipts.refetch();+ return;+ }clearError();if (lastAssistantMessageIsCompleteWithToolCalls({ messages }) ||@@ -147,13 +151,38 @@ export function Conversation(props: ConversationProps) {void stop();};+ // Refresh receipts on document revisions without replacing a live streamed transcript.+ const receiptOptions = orpc.agent.threads.get.queryOptions({ input: { id: threadId } });+ const receipts = useQuery({+ ...receiptOptions,+ gcTime: 0,+ queryKey: [...receiptOptions.queryKey, document?.proposalRevision],+ enabled: !!document?.proposalRevision,+ });+ const receiptsReady = !document.proposalRevision || !!receipts.data;+ const error = chatError ?? receipts.error;+ const statuses = useMemo(+ () =>+ new Map([+ ...((receipts.data?.messages ?? []) as UIMessage[]).flatMap((message) =>+ message.parts.flatMap((part) =>+ isProposeEdits(part)+ ? toProposals(part, new Map(), document).map((edit) => [edit.id, edit.status] as const)+ : [],+ ),+ ),+ ...rejections,+ ]),+ [receipts.data, rejections, document],+ );+// Every proposed edit in the conversation, with what the user did with it: marked on the page while pending.const proposals = useMemo(() =>- messages.flatMap((message) =>+ (receiptsReady ? messages : []).flatMap((message) =>message.parts.flatMap((part) => (isProposeEdits(part) ? toProposals(part, statuses, document) : [])),),- [messages, statuses, document],+ [messages, statuses, document, receiptsReady],);// Published only when they change: the page canvas and every section row re-render on each publish, and a// streaming reply rebuilds this list on every chunk.@@ -167,8 +196,8 @@ export function Conversation(props: ConversationProps) {useEffect(() => () => useEditorStore.setState({ assistantProposals: [] }), []);const record = (message: UIMessage, part: ToolPart, changed: readonly Proposal[], next: EditStatus) => {+ if (!part.toolCallId || next !== "rejected") return;setStatuses((current) => new Map([...current, ...changed.map((proposal) => [proposal.id, next] as const)]));- if (!part.toolCallId) return;void client.agent.messages.setEditStatus({threadId,@@ -180,22 +209,6 @@ export function Conversation(props: ConversationProps) {.catch(() => undefined);};- // Undoing an accepted edit makes it pending again. Only an undo (the document) or a status change can cause- // one, so streamed chunks don't re-check every edit.- const recordUndone = useEffectEvent(() => {- for (const message of messages) {- for (const part of message.parts) {- if (!isProposeEdits(part)) continue;- const undone = toProposals(part, statuses, document).filter(- (proposal) => proposal.status === "accepted" && document.stateOf(proposal) === "pending",- );- if (undone.length > 0) record(message, part, undone, "pending");- }- }- });- // oxlint-disable-next-line react/set-state-in-effect -- an undo happens in the resume store; the new status is also saved to the thread- useEffect(() => recordUndone(), [statuses, document]);-const answer = (toolCallId: string, output: string) =>addToolOutput({ tool: "ask_user_question", toolCallId, output });@@ -219,7 +232,7 @@ export function Conversation(props: ConversationProps) {busy={busy && index === messages.length - 1}answerable={index === messages.length - 1}enter={!initialIds.has(message.id)}- readOnly={readOnly || continuationBlocked}+ readOnly={readOnly || continuationBlocked || !receiptsReady}statuses={statuses}document={document}onAnswer={answer}@@ -272,14 +285,18 @@ export function Conversation(props: ConversationProps) {><span className="flex gap-2"><Icon name="warning-circle" size={18} className="shrink-0" />- <Trans>- {props.providerLabel} returned “- {getOrpcErrorMessage(error, {- fallback: t`an error`,- allowServerMessage: true,- })}- ”. Your message is kept.- </Trans>+ {receipts.error ? (+ <Trans>This conversation couldn't be opened.</Trans>+ ) : (+ <Trans>+ {props.providerLabel} returned “+ {getOrpcErrorMessage(error, {+ fallback: t`an error`,+ allowServerMessage: true,+ })}+ ”. Your message is kept.+ </Trans>+ )}</span><span className="flex gap-1.5"><Button size="sm" variant="secondary" onClick={retry}>@@ -601,8 +618,8 @@ function ToolPartView({)}onAccept={(chosen) => {- document.accept(chosen);- onRecord(message, part, chosen, "accepted");+ const { applied } = document.accept(chosen);+ if (applied.length > 0) onRecord(message, part, applied, "accepted");}}onReject={(chosen) => onRecord(message, part, chosen, "rejected")}/>diff --git a/apps/web/src/features/assistant/document.test.tsx b/apps/web/src/features/assistant/document.test.tsxnew file mode 100644index 000000000..759f2cc77--- /dev/null+++ b/apps/web/src/features/assistant/document.test.tsx@@ -0,0 +1,267 @@+// @vitest-environment happy-dom+import type { Proposal } from "@reactive-resume/resume/proposals";+import type { CoverLetter } from "@reactive-resume/schema/cover-letter/data";+import { act, cleanup, renderHook } from "@testing-library/react";+import { afterEach, beforeEach, expect, it, vi } from "vite-plus/test";+import { i18n } from "@lingui/core";+import { copyCoverLetterStyle } from "@reactive-resume/resume/cover-letter";+import { defaultResumeData } from "@reactive-resume/schema/resume/default";++const mocks = vi.hoisted(() => ({ toast: vi.fn(), save: vi.fn() }));+vi.mock("@tanstack/react-query", () => ({ useQuery: () => ({ data: [] }) }));+vi.mock("@tanstack/react-router", () => ({ useSearch: () => ({}) }));+vi.mock("@/features/applications/queries", () => ({ applicationsListQueryOptions: () => ({}) }));+vi.mock("@/libs/orpc/client", () => ({ client: { coverLetters: { update: mocks.save } }, streamClient: {} }));+vi.mock("@reactive-resume/ui/components/toast", () => ({ toast: { add: mocks.toast } }));+vi.mock("@/features/resume/builder/draft", () => ({+ useCurrentResume: vi.fn(),+ useResumeStore: { getState: vi.fn() },+}));+vi.mock("@/features/resume/editor/check/issues", () => ({ getSectionName: vi.fn() }));+vi.mock("@/features/resume/editor/write/model", () => ({ describeEntry: vi.fn() }));++import { useLetterAssistantDocument } from "./document";+import { useLetterEditorStore } from "@/features/letters/store";+const store = () => useLetterEditorStore.getState();+const letter: CoverLetter = {+ id: "letter",+ name: "Letter",+ recipient: "",+ content: "<p>They've said "yes".</p>",+ greeting: null,+ signOff: null,+ style: copyCoverLetterStyle(defaultResumeData),+ layout: "structured",+ recipientName: "",+ recipientCompany: "",+ letterDate: null,+ sourceResumeId: null,+ sourceApplicationId: null,+ senderLinked: false,+ designLinked: false,+ isLocked: false,+ revision: 1,+ createdAt: new Date(),+ updatedAt: new Date(),+};+const edit = (id: string, after: string): Proposal => ({+ id,+ before: letter.content,+ after,+ target: { sectionId: "letter", field: "content" },+ location: "Letter",+ why: "Clearer",+ status: "pending",+ source: "assistant",+});+beforeEach(() => {+ vi.useFakeTimers();+ vi.clearAllMocks();+ window.localStorage.clear();+ i18n.loadAndActivate({ locale: "en-US", messages: {} });+ store().load(letter);+ mocks.save.mockImplementation(async () => ({ ...store().letter, revision: 2 }));+});+afterEach(() => {+ cleanup();+ store().reset();+ vi.useRealTimers();+});++it("applies ordered additions and a rewrite through the real letter store, retaining identity through refinements, saves and explicit toast Undo", async () => {+ const { result } = renderHook(useLetterAssistantDocument);+ const doc = result.current;+ if (!doc) throw new Error("Missing letter adapter");+ const first = edit("first", `${letter.content}<p>First</p>`);+ const additions = [first, edit("second", `${letter.content}<p>Second</p>`)];+ const rewrite = edit("rewrite", "<p>Rewritten</p>");+ act(() => store().edit({ content: `<p>They've said "yes".</p>` }));+ act(() => {+ expect(doc.accept([rewrite, ...additions]).applied).toEqual([rewrite, ...additions]);+ });+ expect(store().letter?.content).toBe("<p>Rewritten</p><p>First</p><p>Second</p>");+ const undo = mocks.toast.mock.lastCall?.[0].actionProps.onClick;+ await act(async () => {+ await store().flush();+ });+ act(() => undo());+ expect(store().letter?.content).toBe(`<p>They've said "yes".</p>`);+ expect(result.current?.stateOf({ ...first, status: "accepted" })).toBe("pending");+ act(() => {+ expect(doc.accept(additions).applied).toEqual(additions);+ });+ act(() => store().edit({ content: "<p>Refined anchor</p><p>Refined first</p><p>Second</p>" }));+ expect(result.current?.stateOf(first)).toBe("accepted");+ act(() => {+ expect(doc.accept(additions)).toEqual({ applied: [], stale: [] });+ });+ await act(async () => {+ await store().flush();+ });+ const refined = store().letter;+ if (!refined) throw new Error("Missing refined letter");+ act(() => store().load(refined));+ expect(result.current?.stateOf({ ...first, status: "accepted" })).toBe("accepted");+});++it("reports genuine stale edits and refuses old callbacks after switching or locking letters", () => {+ const { result } = renderHook(useLetterAssistantDocument);+ const doc = result.current;+ if (!doc) throw new Error("Missing letter adapter");+ const rewrite = edit("rewrite", "<p>Rewritten</p>");+ const conflict = edit("conflict", "<p>Conflicting rewrite</p>");+ act(() => {+ expect(doc.accept([rewrite, conflict])).toEqual({ applied: [rewrite], stale: [conflict] });+ });+ expect(mocks.toast.mock.lastCall?.[0].description).toContain("1 edit couldn't be placed");+ act(() => store().load({ ...letter, id: "other" }));+ act(() => {+ expect(doc.accept([rewrite])).toEqual({ applied: [], stale: [] });+ });+ act(() => store().load({ ...letter, isLocked: true }));+ act(() => {+ expect(doc.accept([rewrite])).toEqual({ applied: [], stale: [] });+ });+ expect(store().letter?.isLocked).toBe(true);+ expect(store().letter?.content).toBe("<p>Rewritten</p>");+});++it("keeps a surviving letter toast inside its original editing session", () => {+ const { result } = renderHook(useLetterAssistantDocument);+ const doc = result.current;+ if (!doc) throw new Error("Missing letter adapter");+ act(() => {+ doc.accept([edit("session-rewrite", "<p>Rewritten</p>")]);+ });+ const undo = mocks.toast.mock.lastCall?.[0].actionProps.onClick;+ const saved = store().letter;+ if (!saved) throw new Error("Missing saved letter");+ const originalSession = store().sessionId;+ act(() => {+ store().reset();+ store().load(saved);+ });+ expect(store().sessionId).not.toBe(originalSession);+ act(() => undo());+ expect(store().letter?.content).toBe(saved.content);+});++it("does not record or toast a normalized no-op in the real letter adapter", () => {+ const { result } = renderHook(useLetterAssistantDocument);+ const noop = edit("noop", `<p>They've said "yes".</p>`);+ act(() => store().edit({ content: noop.after }));+ act(() => {+ expect(result.current?.accept([noop]).applied).toEqual([]);+ });+ expect(store().proposalApplications[noop.id]).toBeUndefined();+ expect(result.current?.stateOf(noop)).toBe("stale");+ expect(mocks.toast.mock.lastCall?.[0].description).not.toContain("Edit applied");+});++it("retains an offscreen letter Undo and its failed synchronization across reset/reload", async () => {+ const { result, unmount } = renderHook(useLetterAssistantDocument);+ const doc = result.current;+ if (!doc) throw new Error("Missing letter adapter");+ const rewrite = edit("durable-undo", "<p>Rewritten</p>");+ act(() => {+ doc.accept([rewrite]);+ });+ const undo = mocks.toast.mock.lastCall?.[0].actionProps.onClick;+ await act(async () => {+ await store().flush();+ });+ unmount();+ act(() => undo());+ mocks.save.mockRejectedValueOnce(new Error("Offline"));+ expect(await store().flush()).toBe(false);+ expect(mocks.save.mock.lastCall?.[0].proposalApplications).toEqual({ "durable-undo": false });+ const saved = store().letter;+ if (!saved) throw new Error("Missing undone letter");+ store().reset();+ vi.setSystemTime(Date.now() + 8 * 86_400_000);+ store().load(saved);+ expect(store().proposalApplications[rewrite.id]).toBe(false);+ expect(store().pendingProposalApplications[rewrite.id]).toBe(false);+ expect(await store().flush()).toBe(true);+ expect(mocks.save.mock.lastCall?.[0].proposalApplications).toEqual({ "durable-undo": false });+ expect(store().pendingProposalApplications).toEqual({});+});++it("keeps an unconfirmed decision at its original revision even when fetched text matches", async () => {+ const { result } = renderHook(useLetterAssistantDocument);+ act(() => {+ result.current?.accept([edit("unconfirmed", "<p>Saved</p>")]);+ });+ mocks.save.mockRejectedValueOnce(new Error("Response lost"));+ await act(async () => {+ expect(await store().flush()).toBe(false);+ });+ const saved = store().letter;+ if (!saved) throw new Error("Missing submitted letter");+ act(() => {+ store().reset();+ store().load({ ...saved, revision: saved.revision + 1 });+ });+ expect(store().status).toBe("conflict");+ expect(store().letter?.revision).toBe(saved.revision);+ expect(store().pendingProposalApplications).toEqual({ unconfirmed: true });+ mocks.save.mockClear();+ expect(await store().flush()).toBe(false);+ expect(mocks.save).not.toHaveBeenCalled();+});++it("honors explicit Reload without reviving the discarded session's unsaved content", () => {+ act(() => store().edit({ content: "<p>Unsaved</p>" }, { proposalIds: ["discarded"] }));+ act(() => store().load({ ...letter, revision: 2 }, { recover: false }));+ expect(store().letter?.content).toBe(letter.content);+ expect(store().pending).toEqual({});+ expect(store().pendingProposalApplications).toEqual({});+ act(() => {+ store().reset();+ store().load({ ...letter, revision: 2 });+ });+ expect(store().letter?.content).toBe(letter.content);+ expect(store().proposalApplications).toEqual({});+});++it("a recovered old letter Undo may not use a later same-text revision", async () => {+ const { result } = renderHook(useLetterAssistantDocument);+ act(() => {+ result.current?.accept([edit("receipt", "<p>New</p>")]);+ });+ await act(async () => {+ await store().flush();+ });+ const undo = mocks.toast.mock.lastCall?.[0].actionProps.onClick;+ act(() => undo());+ mocks.save.mockRejectedValueOnce(new Error("offline"));+ await act(async () => {+ expect(await store().flush()).toBe(false);+ });+ act(() => store().reset());+ mocks.save.mockClear();+ const remote = { ...letter, revision: 8 };+ act(() => store().load(remote));+ await act(async () => {+ await store().flush();+ });+ expect(mocks.save).not.toHaveBeenCalled();+});++it("recovers only authored letter fields alongside a queued receipt", async () => {+ const remote = { ...letter, greeting: "Hello Rowan,", signOff: "With thanks," };+ act(() => {+ store().load(remote);+ store().edit({ content: "<p>New</p>" }, { proposalIds: ["receipt"] });+ });+ act(() => {+ store().reset();+ store().load(remote);+ });+ expect(store().letter?.greeting).toBe(remote.greeting);+ expect(store().letter?.signOff).toBe(remote.signOff);+ expect(store().pending).toEqual({ content: "<p>New</p>" });+ expect(await store().flush()).toBe(true);+ expect(mocks.save.mock.lastCall?.[0]).not.toHaveProperty("greeting");+ expect(mocks.save.mock.lastCall?.[0].proposalApplications).toEqual({ receipt: true });+});diff --git a/apps/web/src/features/assistant/document.ts b/apps/web/src/features/assistant/document.tsindex 6fd6f2730..cceb59cff 100644--- a/apps/web/src/features/assistant/document.ts+++ b/apps/web/src/features/assistant/document.ts@@ -1,10 +1,10 @@-import type { Passage, Proposal, ProposalState } from "@reactive-resume/resume/proposals";+import type { Passage, Proposal, ProposalApplicationResult, ProposalState } from "@reactive-resume/resume/proposals";import { t } from "@lingui/core/macro";import { useQuery } from "@tanstack/react-query";import { useSearch } from "@tanstack/react-router";import { useMemo } from "react";import {- applyTo,+ applyProposals,collectLetterPassages,collectPassages,getProposalState,@@ -13,9 +13,9 @@ import {import { toast } from "@reactive-resume/ui/components/toast";import { applicationsListQueryOptions } from "@/features/applications/queries";import { useLetterEditorStore } from "@/features/letters/store";-import { useCurrentResume } from "@/features/resume/builder/draft";+import { useCurrentResume, useResumeStore } from "@/features/resume/builder/draft";import { getSectionName } from "@/features/resume/editor/check/issues";-import { acceptResumeProposals } from "@/features/resume/editor/proposals/proposals";+import { acceptResumeProposals, proposalResultMessage } from "@/features/resume/editor/proposals/proposals";import { describeEntry } from "@/features/resume/editor/write/model";/** The document the assistant works on, as the panel needs it. Resumes and letters each provide one. */@@ -23,13 +23,15 @@ export type AssistantDocument = {kind: "resume" | "letter";id: string;name: string;+ /** Document revision whose authoritative proposal decisions should be read. */+ proposalRevision?: string;locked: boolean;/** The application it's for, whose posting is shared as context. */posting: { id: string; company: string; role: string } | null;/** A proposal's state against the document as it reads now. */stateOf: (proposal: Proposal) => ProposalState;/** Applies proposals as one undo step, with Undo in the toast. */- accept: (proposals: readonly Proposal[]) => void;+ accept: (proposals: readonly Proposal[]) => ProposalApplicationResult;/** Where a proposal lands, in the app's language, when its passage is still there. */locationOf: (proposal: Pick<Proposal, "before" | "target">) => string | undefined;};@@ -53,6 +55,7 @@ function locate(passages: readonly Passage[], { before, target }: Pick<Proposal,export function useResumeAssistantDocument(): AssistantDocument {const resume = useCurrentResume();+ const applicationsOfProposals = useResumeStore((state) => state.proposalApplications);const { applicationId } = useSearch({ strict: false });const { data: applications } = useQuery(applicationsListQueryOptions());// The application it was made for, otherwise the latest one it's linked to (as the server reads it).@@ -74,17 +77,22 @@ export function useResumeAssistantDocument(): AssistantDocument {kind: "resume",id: resume.id,name: resume.name,+ proposalRevision: resume.updatedAt.toISOString(),locked: resume.isLocked,posting: application ? { id: application.id, company: application.company, role: application.role } : null,- stateOf: (proposal) => getProposalState(resume.data, proposal),- accept: acceptResumeProposals,+ stateOf: (proposal) => getProposalState(resume.data, proposal, applicationsOfProposals),+ accept: (proposals) =>+ useResumeStore.getState().resume?.id === resume.id+ ? acceptResumeProposals(proposals)+ : { applied: [], stale: [] },locationOf: (proposal) => locate(passages, proposal),};- }, [resume.id, resume.name, resume.isLocked, resume.data, application]);+ }, [resume.id, resume.name, resume.updatedAt, resume.isLocked, resume.data, application, applicationsOfProposals]);}export function useLetterAssistantDocument(): AssistantDocument | null {const letter = useLetterEditorStore((state) => state.letter);+ const applicationsOfProposals = useLetterEditorStore((state) => state.proposalApplications);const { applicationId } = useSearch({ strict: false });const { data: applications } = useQuery(applicationsListQueryOptions());const application = applications?.find((item) => item.id === (applicationId ?? letter?.sourceApplicationId));@@ -97,21 +105,50 @@ export function useLetterAssistantDocument(): AssistantDocument | null {kind: "letter",id: letter.id,name: letter.name,+ proposalRevision: String(letter.revision),locked: letter.isLocked,posting: application ? { id: application.id, company: application.company, role: application.role } : null,- stateOf: (proposal) => getStateIn(letter.content, proposal),+ stateOf: (proposal) => getStateIn(letter.content, proposal, applicationsOfProposals),accept: (proposals) => {- const { letter: current, edit } = useLetterEditorStore.getState();- if (!current) return;+ const { letter: current, edit, changing, proposalApplications, sessionId } = useLetterEditorStore.getState();+ if (!current || current.id !== letter.id || current.isLocked || changing) return { applied: [], stale: [] };const before = current.content;- const content = proposals.reduce((value, proposal) => applyTo(value, proposal) ?? value, before);- edit({ content });- toast.add({- description: proposals.length === 1 ? t`Edit applied` : t`${proposals.length} edits applied`,- actionProps: { children: t`Undo`, onClick: () => edit({ content: before }) },- });+ let content = before;+ const result = applyProposals(+ proposals,+ () => content,+ (_, value) => {+ content = value;+ },+ proposalApplications,+ );+ if (result.applied.length > 0)+ edit({ content }, { proposalIds: result.applied.map((proposal) => proposal.id) });+ if (result.applied.length > 0 || result.stale.length > 0)+ toast.add({+ description: proposalResultMessage(result),+ ...(result.applied.length > 0+ ? {+ actionProps: {+ children: t`Undo`,+ onClick: () => {+ const latest = useLetterEditorStore.getState();+ if (+ latest.sessionId === sessionId &&+ latest.letter?.id === current.id &&+ latest.letter.content === content &&+ !latest.letter.isLocked &&+ !latest.changing+ )+ latest.edit({ content: before }, { restoreApplications: proposalApplications });+ },+ },+ }+ : {}),+ });+ return result;},locationOf: (proposal) => locate(passages, proposal),};- }, [letter, application]);+ }, [letter, application, applicationsOfProposals]);}diff --git a/apps/web/src/features/letters/store.ts b/apps/web/src/features/letters/store.tsindex b7fac8e3c..c40fef995 100644--- a/apps/web/src/features/letters/store.ts+++ b/apps/web/src/features/letters/store.ts@@ -1,7 +1,16 @@+import type { ProposalApplications } from "@reactive-resume/resume/proposals";import type { CoverLetter } from "@reactive-resume/schema/cover-letter/data";import { t } from "@lingui/core/macro";import { ORPCError } from "@orpc/client";+import { isEqual } from "es-toolkit";import { create } from "zustand/react";+import {+ acknowledgeProposalApplications,+ queueProposalApplications,+ readProposalApplications,+ restoreProposalApplications,+} from "@reactive-resume/resume/proposals";+import { coverLetterSchema } from "@reactive-resume/schema/cover-letter/data";import { generateId } from "@reactive-resume/utils/string";import { client, streamClient } from "@/libs/orpc/client";@@ -54,6 +63,8 @@ export type LetterDraft =const SAVE_DELAY_MS = 800;type LetterEditorStore = {+ proposalApplications: ProposalApplications;+ pendingProposalApplications: ProposalApplications;letter: CoverLetter | null;/** The server's name, kept apart from optimistic edits for the browser title. */savedName: string | null;@@ -65,8 +76,11 @@ type LetterEditorStore = {/** One editing visit: its saves share one History version. */sessionId: string;draft: LetterDraft;- load: (letter: CoverLetter) => void;- edit: (edits: LetterEdits) => void;+ load: (letter: CoverLetter, options?: { recover?: boolean }) => void;+ edit: (+ edits: LetterEdits,+ options?: { proposalIds?: readonly string[]; restoreApplications?: ProposalApplications },+ ) => void;/** Saves everything typed so far. False on failure; edits remain for retry. */flush: () => Promise<boolean>;/**@@ -83,9 +97,133 @@ let timer: ReturnType<typeof setTimeout> | undefined;let inflight: Promise<void> | null = null;let drafting: AbortController | null = null;+const recoveryEditsSchema = coverLetterSchema+ .pick({+ name: true,+ recipient: true,+ content: true,+ greeting: true,+ signOff: true,+ recipientName: true,+ recipientCompany: true,+ letterDate: true,+ })+ .partial()+ .extend({+ sender: coverLetterSchema.shape.style.shape.basics+ .pick({ name: true, email: true, phone: true, location: true })+ .partial()+ .optional(),+ metadata: coverLetterSchema.shape.style.shape.metadata+ .pick({ typography: true, design: true, page: true })+ .partial()+ .optional(),+ });++type LetterRecovery = {+ letter: CoverLetter;+ pending: LetterEdits;+ proposalApplications: ProposalApplications;+ pendingProposalApplications: ProposalApplications;+ storedAt: number;+ key: string;+ raw: string;+};+const RECOVERY_PREFIX = "reactive-resume:unsaved:letter:";+let restoredRecovery: { key: string; raw: string } | undefined;+let savingEdits: { sessionId: string; pending: LetterEdits } | null = null;++function readRecovery(id: string): LetterRecovery | undefined {+ try {+ let latest: LetterRecovery | undefined;+ for (const key of Object.keys(window.localStorage)) {+ if (!key.startsWith(`${RECOVERY_PREFIX}${id}:`)) continue;+ try {+ const raw = window.localStorage.getItem(key) ?? "null";+ const value = JSON.parse(raw) as LetterRecovery;+ if (+ !Number.isFinite(value?.storedAt) ||+ (Date.now() - value.storedAt > 7 * 86_400_000 &&+ Object.keys(readProposalApplications(value.pendingProposalApplications)).length === 0)+ ) {+ window.localStorage.removeItem(key);+ continue;+ }+ const letter = coverLetterSchema.parse({+ ...value.letter,+ createdAt: new Date(value.letter.createdAt),+ updatedAt: new Date(value.letter.updatedAt),+ });+ const pending: LetterEdits = Object.fromEntries(+ Object.entries(recoveryEditsSchema.parse(value.pending)).filter(+ ([key, parsed]) => Object.hasOwn(value.pending, key) && parsed !== undefined,+ ),+ );+ const dirty =+ hasEdits(pending) || Object.keys(readProposalApplications(value.pendingProposalApplications)).length > 0;+ const latestDirty =+ latest && (hasEdits(latest.pending) || Object.keys(latest.pendingProposalApplications).length > 0);+ if (+ letter.id !== id ||+ (latest && ((latestDirty && !dirty) || (Boolean(latestDirty) === dirty && latest.storedAt > value.storedAt)))+ )+ continue;+ latest = {+ ...value,+ key,+ raw,+ letter,+ pending,+ proposalApplications: readProposalApplications(value.proposalApplications),+ pendingProposalApplications: readProposalApplications(value.pendingProposalApplications),+ };+ } catch {+ /* Invalid recovery data never replaces a server document. */+ }+ }+ return latest;+ } catch {+ return undefined;+ }+}++/** The autosave owner retains authored edits and unsynchronized decisions in one recovery record. */+function persistRecovery() {+ const state = useLetterEditorStore.getState();+ if (!state.letter) return;+ const pending = mergeEdits(savingEdits?.sessionId === state.sessionId ? savingEdits.pending : {}, state.pending);+ try {+ const key = `${RECOVERY_PREFIX}${state.letter.id}:${state.sessionId}`;+ if (!hasEdits(pending) && Object.keys(state.proposalApplications).length === 0) window.localStorage.removeItem(key);+ else+ window.localStorage.setItem(+ key,+ JSON.stringify({+ letter: state.letter,+ pending,+ proposalApplications: state.proposalApplications,+ pendingProposalApplications: state.pendingProposalApplications,+ storedAt: Date.now(),+ }),+ );+ if (+ !hasEdits(pending) &&+ Object.keys(state.pendingProposalApplications).length === 0 &&+ restoredRecovery &&+ restoredRecovery.key !== key &&+ window.localStorage.getItem(restoredRecovery.key) === restoredRecovery.raw+ )+ window.localStorage.removeItem(restoredRecovery.key);+ } catch {+ /* Full or blocked storage never discards the in-memory edits; autosave can still retry. */+ }+}+const hasEdits = (edits: LetterEdits) => Object.keys(edits).length > 0;export const useLetterEditorStore = create<LetterEditorStore>()((set, get) => ({+ proposalApplications: {},+ pendingProposalApplications: {},letter: null,savedName: null,status: "saved",@@ -94,35 +232,93 @@ export const useLetterEditorStore = create<LetterEditorStore>()((set, get) => ({sessionId: generateId(),draft: idleDraft,- load: (letter) => {+ load: (letter, options = {}) => {+ if (options.recover === false) {+ // Explicit Reload discards this visit, never another tab's independent recovery entry.+ const current = get();+ try {+ if (current.letter?.id === letter.id)+ window.localStorage.removeItem(`${RECOVERY_PREFIX}${letter.id}:${current.sessionId}`);+ if (+ restoredRecovery?.key.startsWith(`${RECOVERY_PREFIX}${letter.id}:`) &&+ window.localStorage.getItem(restoredRecovery.key) === restoredRecovery.raw+ )+ window.localStorage.removeItem(restoredRecovery.key);+ } catch {+ /* Reload still opens the server document when browser storage is unavailable. */+ }+ } else persistRecovery();+ let recovery = options.recover === false ? undefined : readRecovery(letter.id);+ if (+ recovery &&+ Object.keys(recovery.pendingProposalApplications).length === 0 &&+ isEqual(applyEdits(letter, recovery.pending), letter)+ )+ recovery = { ...recovery, pending: {} };+ if (+ recovery &&+ !hasEdits(recovery.pending) &&+ Object.keys(recovery.pendingProposalApplications).length === 0 &&+ recovery.letter.revision !== letter.revision+ )+ recovery = undefined;+ restoredRecovery = recovery ? { key: recovery.key, raw: recovery.raw } : undefined;+ const restore =+ recovery && (hasEdits(recovery.pending) || Object.keys(recovery.pendingProposalApplications).length > 0)+ ? recovery+ : undefined;clearTimeout(timer);drafting?.abort();drafting = null;set({- letter,+ proposalApplications: recovery?.proposalApplications ?? {},+ pendingProposalApplications: recovery?.pendingProposalApplications ?? {},+ letter: restore ? { ...applyEdits(letter, restore.pending), revision: restore.letter.revision } : letter,savedName: letter.name,- status: "saved",+ status: restore+ ? restore.letter.revision !== letter.revision+ ? "conflict"+ : "saving"+ : Object.keys(recovery?.pendingProposalApplications ?? {}).length+ ? "saving"+ : "saved",changing: false,- pending: {},+ pending: restore?.pending ?? {},sessionId: generateId(),draft: idleDraft,});+ if (restore || Object.keys(get().pendingProposalApplications).length > 0)+ timer = setTimeout(() => void get().flush(), SAVE_DELAY_MS);},- edit: (input) => {- const { letter, changing } = get();+ edit: (input, options = {}) => {+ const { letter, changing, proposalApplications, pendingProposalApplications } = get();const { sender, ...otherEdits } = input;const edits = sender && (changing || (letter?.sourceResumeId && letter.senderLinked)) ? otherEdits : input;- if (!hasEdits(edits)) return;+ if (!hasEdits(edits) || letter?.isLocked) return;set((state) =>state.letter? {letter: applyEdits(state.letter, edits),+ proposalApplications: options.restoreApplications+ ? restoreProposalApplications(state.proposalApplications, options.restoreApplications)+ : {+ ...state.proposalApplications,+ ...Object.fromEntries((options.proposalIds ?? []).map((id) => [id, true])),+ },pending: mergeEdits(state.pending, edits),status: state.status === "conflict" ? "conflict" : "saving",}: state,);+ set({+ pendingProposalApplications: queueProposalApplications(+ proposalApplications,+ get().proposalApplications,+ pendingProposalApplications,+ ),+ });+ persistRecovery();clearTimeout(timer);timer = setTimeout(() => void get().flush(), SAVE_DELAY_MS);},@@ -133,10 +329,18 @@ export const useLetterEditorStore = create<LetterEditorStore>()((set, get) => ({if (inflight) await inflight;if (get().sessionId !== sessionId) return false;- const { letter, pending, status } = get();- if (!letter || !hasEdits(pending) || status === "conflict") return status === "saved";+ const { letter, pending, status, pendingProposalApplications } = get();+ if (+ !letter ||+ letter.isLocked ||+ (!hasEdits(pending) && Object.keys(pendingProposalApplications).length === 0) ||+ status === "conflict"+ )+ return status === "saved";const current = (state: LetterEditorStore) => state.letter?.id === letter.id && state.sessionId === sessionId;+ savingEdits = { sessionId, pending };+ persistRecovery();set({ pending: {}, status: "saving" });inflight = (async () => {try {@@ -145,6 +349,9 @@ export const useLetterEditorStore = create<LetterEditorStore>()((set, get) => ({expectedRevision: letter.revision,sessionId,...pending,+ ...(Object.keys(pendingProposalApplications).length+ ? { proposalApplications: { ...pendingProposalApplications } }+ : {}),});// What was typed stays as typed (the server trims and cleans what it stores), and so does anything typed// since.@@ -152,6 +359,10 @@ export const useLetterEditorStore = create<LetterEditorStore>()((set, get) => ({current(state)? {letter: applyEdits(saved, mergeEdits(pending, state.pending)),+ pendingProposalApplications: acknowledgeProposalApplications(+ state.pendingProposalApplications,+ pendingProposalApplications,+ ),savedName: saved.name,status: hasEdits(state.pending) ? "saving" : "saved",}@@ -166,13 +377,19 @@ export const useLetterEditorStore = create<LetterEditorStore>()((set, get) => ({);} finally {inflight = null;+ if (savingEdits?.sessionId === sessionId) savingEdits = null;+ if (current(get())) persistRecovery();}})();await inflight;// Typed while that save was on its way.if (!current(get())) return false;- if (get().status === "saving" && hasEdits(get().pending)) return get().flush();+ if (+ get().status === "saving" &&+ (hasEdits(get().pending) || Object.keys(get().pendingProposalApplications).length > 0)+ )+ return get().flush();return get().status === "saved";},@@ -197,10 +414,13 @@ export const useLetterEditorStore = create<LetterEditorStore>()((set, get) => ({},reset: () => {+ persistRecovery();clearTimeout(timer);drafting?.abort();drafting = null;set({+ proposalApplications: {},+ pendingProposalApplications: {},letter: null,savedName: null,status: "saved",diff --git a/apps/web/src/features/resume/builder/draft.test.ts b/apps/web/src/features/resume/builder/draft.test.tsindex af1affb84..66bf7e063 100644--- a/apps/web/src/features/resume/builder/draft.test.ts+++ b/apps/web/src/features/resume/builder/draft.test.ts@@ -829,9 +829,10 @@ describe("builder resume undo/redo", () => {expect(store().resume?.data).toBe(current.data);});- it("clears the undo stack when the server sends different data (external rebase)", () => {+ it("clears the undo stack when the server sends different data (external rebase)", async () => {const store = useResumeStore.getState;store().initialize(makeResume("rebase-external"));+ orpcMocks.updateResume.mockImplementation(async (input) => ({ ...makeResume(input.id), data: input.data }));store().updateResumeData((draft) => {draft.basics.name = "Edited";@@ -840,6 +841,7 @@ describe("builder resume undo/redo", () => {const current = store().resume;if (!current) throw new Error("expected a current resume");+ expect(await savePendingChanges(current.id)).toBe(true);// External / AI rebase: incoming data differs, so the local undo history no longer applies.store().replaceResumeFromServer(withBasicsName(current, "External Name"));@@ -993,3 +995,204 @@ describe("resume update stream subscription", () => {expect(useResumeStore.getState().resume?.data.basics.name).toBe("Local Name");});});++it("restores proposal decisions only at their explicit undo checkpoints, preserving refinements and redo", () => {+ const store = () => useResumeStore.getState();+ store().initialize(makeResume("proposal-history"));+ store().updateResumeData(+ (draft) => {+ draft.summary.content = "<p>Accepted</p>";+ },+ { newStep: true, proposalIds: ["edit"] },+ );+ store().updateResumeData(+ (draft) => {+ draft.summary.content = "<p>Refined</p>";+ },+ { newStep: true },+ );+ expect(store().proposalApplications).toEqual({ edit: true });+ store().undo();+ expect(store().proposalApplications).toEqual({ edit: true });+ expect(store().resume?.data.summary.content).toBe("<p>Accepted</p>");+ store().undo();+ expect(store().proposalApplications).toEqual({ edit: false });+ store().redo();+ expect(store().proposalApplications).toEqual({ edit: true });+ store().redo();+ expect(store().resume?.data.summary.content).toBe("<p>Refined</p>");+ expect(store().proposalApplications).toEqual({ edit: true });+});++it("retains offscreen resume Undo and pending synchronization through a failed save and builder reload", async () => {+ vi.useFakeTimers();+ window.localStorage.clear();+ const store = () => useResumeStore.getState();+ const initial = makeResume("closed-assistant-undo");+ initial.data.summary.content = "<p>Original</p>";+ try {+ orpcMocks.updateResume.mockImplementation(async (input: { data: ResumeData }) => ({+ ...initial,+ data: input.data,+ }));+ store().initialize(initial);+ store().updateResumeData(+ (draft) => {+ draft.summary.content = "<p>Rewritten</p>";+ },+ { newStep: true, proposalIds: ["edit"] },+ );+ expect(await savePendingChanges(initial.id)).toBe(true);+ // No Conversation is mounted. Document owner must save the decision with Undo's content.+ store().undo();+ orpcMocks.updateResume.mockRejectedValueOnce(new Error("Offline"));+ expect(await savePendingChanges(initial.id)).toBe(false);+ expect(orpcMocks.updateResume).toHaveBeenCalledWith(+ expect.objectContaining({ proposalApplications: { edit: false } }),+ expect.anything(),+ );+ vi.setSystemTime(Date.now() + 8 * 86_400_000);+ clearResumeDrafts();+ store().initialize(initial);+ expect(store().proposalApplications).toEqual({ edit: false });+ expect(await savePendingChanges(initial.id)).toBe(true);+ expect(orpcMocks.updateResume).toHaveBeenCalledWith(+ expect.objectContaining({ proposalApplications: { edit: false } }),+ expect.anything(),+ );+ const saved = store().resume;+ if (!saved) throw new Error("Missing saved resume");+ clearResumeDrafts();+ store().initialize(saved);+ expect(store().proposalApplications).toEqual({ edit: false });+ } finally {+ clearResumeDrafts();+ window.localStorage.clear();+ vi.clearAllTimers();+ vi.useRealTimers();+ }+});++describe("concurrent receipt ownership", () => {+ beforeEach(() => {+ vi.useFakeTimers();+ clearResumeDrafts();+ window.localStorage.clear();+ orpcMocks.updateResume.mockReset();+ i18n.loadAndActivate({ locale: "en-US", messages: {} });+ });+ afterEach(() => {+ clearResumeDrafts();+ vi.clearAllTimers();+ vi.useRealTimers();+ });+ const s = () => useResumeStore.getState();+ it("newer remote Undo must supersede clean local acceptance, including after restart", async () => {+ const initial = makeResume("remote-undo");+ initial.data.summary.content = "<p>Old</p>";+ const p = {+ id: "receipt",+ target: { sectionId: "summary", field: "content" },+ before: "<p>Old</p>",+ after: "<p>New</p>",+ status: "pending" as const,+ source: "assistant" as const,+ location: "Summary",+ why: "Rewrite",+ };+ const { getProposalState } = await import("@reactive-resume/resume/proposals");+ s().initialize(initial);+ orpcMocks.updateResume.mockImplementation(async (input) => ({+ ...initial,+ data: input.data,+ updatedAt: new Date(initial.updatedAt.getTime() + 1),+ }));+ s().updateResumeData(+ (d) => {+ d.summary.content = p.after;+ },+ { newStep: true, proposalIds: [p.id] },+ );+ await vi.advanceTimersByTimeAsync(500);+ expect(s().saveStatus).toBe("saved");+ const own = s().resume;+ assert.exists(own);+ // A different revision invalidates confirmed decisions even if the authored text matches.+ s().replaceResumeFromServer({ ...own, updatedAt: new Date(initial.updatedAt.getTime() + 2) });+ expect(s().proposalApplications).toEqual({});+ // Another client explicitly undoes this proposal and commits content+pending receipt at newer revision.+ const remote = { ...initial, updatedAt: new Date(initial.updatedAt.getTime() + 3) };+ s().replaceResumeFromServer(remote);+ const afterRebase = getProposalState(s().resume?.data ?? initial.data, p, s().proposalApplications);+ clearResumeDrafts();+ s().initialize(remote);+ const afterRestart = getProposalState(s().resume?.data ?? initial.data, p, s().proposalApplications);+ expect({ afterRebase, afterRestart }).toEqual({ afterRebase: "pending", afterRestart: "pending" });+ });+ it("an old pending decision cannot attach itself to a newer matching server revision", async () => {+ const initial = makeResume("stale-pending");+ initial.data.summary.content = "<p>Old</p>";+ s().initialize(initial);+ orpcMocks.updateResume.mockRejectedValue(new Error("offline"));+ s().updateResumeData(+ (d) => {+ d.summary.content = "<p>New</p>";+ },+ { newStep: true, proposalIds: ["receipt"] },+ );+ s().undo();+ await vi.advanceTimersByTimeAsync(500);+ // A different client has a later historical acceptance, then manually restores Old text.+ // Same content is not proof the failed Undo request committed.+ const remote = { ...initial, updatedAt: new Date(initial.updatedAt.getTime() + 10) };+ clearResumeDrafts();+ orpcMocks.updateResume+ .mockReset()+ .mockResolvedValue({ ...remote, updatedAt: new Date(remote.updatedAt.getTime() + 1) });+ s().initialize(remote);+ await flushMicrotasks();+ expect(orpcMocks.updateResume).not.toHaveBeenCalled();+ expect(s().saveStatus).toBe("conflict");+ });+ it("later Undo while acceptance save is in flight is sent after the earlier acknowledgement", async () => {+ const initial = makeResume("inflight");+ initial.data.summary.content = "<p>Old</p>";+ s().initialize(initial);+ let done: (resume: Resume) => void = () => {+ throw new Error("Save did not start");+ };+ orpcMocks.updateResume+ .mockImplementationOnce(+ () =>+ new Promise((resolve) => {+ done = resolve;+ }),+ )+ .mockImplementation(async (input) => ({+ ...initial,+ data: input.data,+ updatedAt: new Date(initial.updatedAt.getTime() + 2),+ }));+ s().updateResumeData(+ (d) => {+ d.summary.content = "<p>New</p>";+ },+ { newStep: true, proposalIds: ["receipt"] },+ );+ await vi.advanceTimersByTimeAsync(500);+ s().undo();+ await vi.advanceTimersByTimeAsync(500);+ done({+ ...initial,+ data: { ...initial.data, summary: { ...initial.data.summary, content: "<p>New</p>" } },+ updatedAt: new Date(initial.updatedAt.getTime() + 1),+ });+ await flushMicrotasks();+ await vi.advanceTimersByTimeAsync(0);+ expect(orpcMocks.updateResume.mock.calls.map((c) => c[0].proposalApplications)).toEqual([+ { receipt: true },+ { receipt: false },+ ]);+ expect(s().resume?.data.summary.content).toBe("<p>Old</p>");+ });+});diff --git a/apps/web/src/features/resume/builder/draft.ts b/apps/web/src/features/resume/builder/draft.tsindex 1fb31d06c..1700d1105 100644--- a/apps/web/src/features/resume/builder/draft.ts+++ b/apps/web/src/features/resume/builder/draft.ts@@ -1,3 +1,4 @@+import type { ProposalApplications, ProposalSnapshot } from "@reactive-resume/resume/proposals";import type { ResumeData } from "@reactive-resume/schema/resume/data";import type { QueryClient, QueryKey } from "@tanstack/react-query";import type { WritableDraft } from "immer";@@ -9,6 +10,12 @@ import { debounce, isEqual } from "es-toolkit";import { useCallback, useEffect, useState } from "react";import { immer } from "zustand/middleware/immer";import { create } from "zustand/react";+import {+ acknowledgeProposalApplications,+ queueProposalApplications,+ readProposalApplications,+ restoreProposalApplications,+} from "@reactive-resume/resume/proposals";import { syncResumeDates } from "@reactive-resume/schema/resume/dates";import { toast } from "@reactive-resume/ui/components/toast";import { generateId } from "@reactive-resume/utils/string";@@ -46,6 +53,8 @@ type ResumeUpdateEvent = { mutation: ResumeUpdateMutation };type SaveStatus = "idle" | "saving" | "saved" | "offline" | "error" | "conflict";type UpdateResumeDataOptions = {+ /** Successful proposal IDs, recorded in this undo step alongside the authored data. */+ proposalIds?: readonly string[];/*** Identifies the field being edited. Consecutive edits to the same field within a second merge into* one undo step, so typing a sentence undoes as a whole.@@ -67,8 +76,9 @@ type ResumeStoreState = {saveStatus: SaveStatus;// Undo/redo stacks of `ResumeData` references. Immer's immutable updates share structure, so a// step costs only the parts that changed.- undoStack: ResumeData[];- redoStack: ResumeData[];+ proposalApplications: ProposalApplications;+ undoStack: ProposalSnapshot<ResumeData>[];+ redoStack: ProposalSnapshot<ResumeData>[];};type ResumeStoreActions = {@@ -90,6 +100,8 @@ type ResumeStoreActions = {type ResumeStore = ResumeStoreState & ResumeStoreActions;type Runtime = {+ proposalApplications: ProposalApplications;+ pendingProposalApplications: ProposalApplications;abortController: AbortController;queryClient?: QueryClient;hasPendingLocalChanges: boolean;@@ -160,7 +172,13 @@ function storeUnsavedResume(resume: Resume) {try {window.localStorage.setItem(recoveryKey(resume),- JSON.stringify({ data: resume.data, baseUpdatedAt: getRuntime(resume.id).baseUpdatedAt, storedAt: Date.now() }),+ JSON.stringify({+ data: resume.data,+ baseUpdatedAt: getRuntime(resume.id).baseUpdatedAt,+ storedAt: Date.now(),+ proposalApplications: getRuntime(resume.id).proposalApplications,+ pendingProposalApplications: getRuntime(resume.id).pendingProposalApplications,+ }),);} catch {// Storage can be full or blocked; the in-memory copy still retries.@@ -169,16 +187,38 @@ function storeUnsavedResume(resume: Resume) {function clearUnsavedResume(resume: Resume) {try {- window.localStorage.removeItem(recoveryKey(resume));+ const runtime = getRuntime(resume.id);+ if (Object.keys(runtime.proposalApplications).length > 0) {+ window.localStorage.setItem(+ recoveryKey(resume),+ JSON.stringify({+ data: resume.data,+ baseUpdatedAt: runtime.baseUpdatedAt,+ storedAt: Date.now(),+ clean: true,+ proposalApplications: runtime.proposalApplications,+ pendingProposalApplications: runtime.pendingProposalApplications,+ }),+ );+ } else window.localStorage.removeItem(recoveryKey(resume));const restored = getRuntime(resume.id).restoredDraft;- if (restored && window.localStorage.getItem(restored.key) === restored.raw)+ if (restored && restored.key !== recoveryKey(resume) && window.localStorage.getItem(restored.key) === restored.raw)window.localStorage.removeItem(restored.key);} catch {// Nothing to clear.}}-type UnsavedResume = { data: ResumeData; baseUpdatedAt?: string; storedAt: number; key: string; raw: string };+type UnsavedResume = {+ data: ResumeData;+ baseUpdatedAt?: string;+ storedAt: number;+ key: string;+ raw: string;+ clean?: boolean;+ proposalApplications?: ProposalApplications;+ pendingProposalApplications?: ProposalApplications;+};function readUnsavedResume(id: string): UnsavedResume | undefined {try {@@ -190,11 +230,21 @@ function readUnsavedResume(id: string): UnsavedResume | undefined {if (!raw) continue;try {const parsed = JSON.parse(raw) as Omit<UnsavedResume, "key" | "raw">;- if (!Number.isFinite(parsed.storedAt) || Date.now() - parsed.storedAt > 7 * 86_400_000) {+ if (+ !Number.isFinite(parsed.storedAt) ||+ (Date.now() - parsed.storedAt > 7 * 86_400_000 &&+ Object.keys(readProposalApplications(parsed.pendingProposalApplications)).length === 0)+ ) {window.localStorage.removeItem(key);continue;}- if (parsed.data && (!newest || parsed.storedAt >= newest.storedAt)) newest = { ...parsed, key, raw };+ if (+ parsed.data &&+ (!newest ||+ (newest.clean && !parsed.clean) ||+ (Boolean(newest.clean) === Boolean(parsed.clean) && parsed.storedAt >= newest.storedAt))+ )+ newest = { ...parsed, key, raw };} catch {// A damaged entry must not hide other recoverable drafts.}@@ -206,7 +256,8 @@ function readUnsavedResume(id: string): UnsavedResume | undefined {}export function readUnsavedResumeData(id: string): ResumeData | undefined {- return readUnsavedResume(id)?.data;+ const recovery = readUnsavedResume(id);+ return recovery?.clean ? undefined : recovery?.data;}function isBrowserOffline() {@@ -308,22 +359,35 @@ async function flushResumeSave(id: string) {const submitted = runtime.pendingResume;const submittedData = structuredClone(submitted.data);+ const submittedApplications = runtime.pendingProposalApplications;runtime.pendingResume = undefined;runtime.isSaving = true;try {const updated = (await orpc.resume.update.call(- { id: submitted.id, data: submittedData, sessionId: runtime.sessionId, expectedUpdatedAt: runtime.baseUpdatedAt },+ {+ id: submitted.id,+ data: submittedData,+ sessionId: runtime.sessionId,+ expectedUpdatedAt: runtime.baseUpdatedAt,+ ...(Object.keys(submittedApplications).length ? { proposalApplications: { ...submittedApplications } } : {}),+ },{ signal: runtime.abortController.signal },)) as Resume;if (runtime.abortController.signal.aborted) return;+ runtime.pendingProposalApplications = acknowledgeProposalApplications(+ runtime.pendingProposalApplications,+ submittedApplications,+ );runtime.baseUpdatedAt = updated.updatedAt;runtime.queryClient?.setQueryData(getResumeQueryKey(submitted.id), updated);const currentResume = useResumeStore.getState().resume;const currentDataStillMatchesSubmission =- currentResume?.id === submitted.id && isEqual(currentResume.data, submittedData);+ currentResume?.id === submitted.id &&+ isEqual(currentResume.data, submittedData) &&+ Object.keys(runtime.pendingProposalApplications).length === 0;if (currentDataStillMatchesSubmission && !runtime.pendingResume) {runtime.hasPendingLocalChanges = false;@@ -389,6 +453,8 @@ function createRuntime(): Runtime {);const runtime: Runtime = {+ proposalApplications: {},+ pendingProposalApplications: {},abortController,hasPendingLocalChanges: false,isSaving: false,@@ -474,6 +540,7 @@ export const useResumeStore = create<ResumeStore>()(resumeId: undefined,isReady: false,saveStatus: "idle",+ proposalApplications: {},undoStack: [],redoStack: [],@@ -483,13 +550,25 @@ export const useResumeStore = create<ResumeStore>()(// Changes that couldn't be saved last time (offline, closed tab) come back and are sent again.const unsaved = resume ? readUnsavedResume(resume.id) : undefined;+ const pending = readProposalApplications(unsaved?.pendingProposalApplications);+ const hasPendingDecisions = Object.keys(pending).length > 0;+ const sameRevision = unsaved?.baseUpdatedAt === resume?.updatedAt.toISOString();const restored =- resume && unsaved && !isEqual(unsaved.data, resume.data) ? { ...resume, data: unsaved.data } : null;- if (resume && unsaved) getRuntime(resume.id).restoredDraft = { key: unsaved.key, raw: unsaved.raw };+ resume && unsaved && ((!unsaved.clean && !isEqual(unsaved.data, resume.data)) || hasPendingDecisions)+ ? { ...resume, data: unsaved.data }+ : null;+ if (resume) {+ const runtime = getRuntime(resume.id);+ runtime.proposalApplications = sameRevision ? readProposalApplications(unsaved?.proposalApplications) : pending;+ runtime.pendingProposalApplications = pending;+ if (unsaved) runtime.restoredDraft = { key: unsaved.key, raw: unsaved.raw };+ }if (resume && unsaved && !restored) clearUnsavedResume(resume);- const conflict = !!restored && unsaved?.baseUpdatedAt !== resume?.updatedAt.toISOString();+ // Matching text cannot acknowledge a queued decision from another document revision.+ const conflict = !!restored && !sameRevision;set((state) => {+ state.proposalApplications = resume ? getRuntime(resume.id).proposalApplications : {};state.resume = restored ?? resume;state.resumeId = resume?.id;state.isReady = resume !== null;@@ -497,6 +576,8 @@ export const useResumeStore = create<ResumeStore>()(clearHistory(state);});+ if (resume && !restored && Object.keys(getRuntime(resume.id).pendingProposalApplications).length > 0)+ queueResumeSave(resume);if (restored) {toast.add({type: "info",@@ -516,6 +597,7 @@ export const useResumeStore = create<ResumeStore>()(resetHistoryRuntime();set((state) => {+ state.proposalApplications = {};state.resume = null;state.resumeId = undefined;state.isReady = false;@@ -525,6 +607,16 @@ export const useResumeStore = create<ResumeStore>()(},replaceResumeFromServer: (resume) => {+ const runtime = getRuntime(resume.id);+ if (runtime.hasPendingLocalChanges) {+ get().mergeResumeMetadata(resume);+ return;+ }+ const externalRevision = runtime.baseUpdatedAt?.getTime() !== resume.updatedAt.getTime();+ if (externalRevision) {+ runtime.proposalApplications = {};+ runtime.pendingProposalApplications = {};+ }setRuntimeBaseline(resume);// This runs both for the echo of our own autosave (identical data → keep history) and for@@ -533,10 +625,11 @@ export const useResumeStore = create<ResumeStore>()(// An echo keeps the data object the store already holds: a new but identical one would make everything that// renders from it run again, the preview's PDF render of every page included, after every save.const keptData = current && isEqual(current.data, resume.data) ? current.data : undefined;- const isRebase = keptData === undefined;+ const isRebase = keptData === undefined || externalRevision;if (isRebase) resetHistoryRuntime();set((state) => {+ state.proposalApplications = runtime.proposalApplications;state.resume = keptData ? { ...resume, data: keptData } : resume;state.resumeId = resume.id;state.isReady = true;@@ -544,6 +637,7 @@ export const useResumeStore = create<ResumeStore>()(if (isRebase) clearHistory(state);});+ if (externalRevision) clearUnsavedResume(resume);},patchResume: (fn) => {@@ -603,13 +697,18 @@ export const useResumeStore = create<ResumeStore>()(if (!state.resume) return;if (snapshotBefore) {- state.undoStack.push(snapshotBefore);+ state.undoStack.push({ data: snapshotBefore, applications: state.proposalApplications });if (state.undoStack.length > MAX_HISTORY_ENTRIES) state.undoStack.shift();// A fresh edit invalidates the redo branch.state.redoStack = [];}fn(state.resume.data as WritableDraft<ResumeData>);+ if (options.proposalIds?.length)+ state.proposalApplications = {+ ...state.proposalApplications,+ ...Object.fromEntries(options.proposalIds.map((id) => [id, true])),+ };// The server writes the date text from the dates on save; doing the same here keeps its echo// identical to the draft, so an autosave never reads as an outside change.syncResumeDates(state.resume.data as ResumeData);@@ -617,7 +716,16 @@ export const useResumeStore = create<ResumeStore>()(});const edited = get().resume;- if (edited) storeUnsavedResume(edited);+ if (edited) {+ const runtime = getRuntime(edited.id);+ runtime.pendingProposalApplications = queueProposalApplications(+ runtime.proposalApplications,+ get().proposalApplications,+ runtime.pendingProposalApplications,+ );+ runtime.proposalApplications = get().proposalApplications;+ storeUnsavedResume(edited);+ }getRuntime(currentResume.id).hasPendingLocalChanges = true;syncCurrentResume(currentResume.id);},@@ -646,6 +754,9 @@ export const useResumeStore = create<ResumeStore>()(if (runtime.abortController.signal.aborted) return;if (get().resume?.id !== current.id || !isEqual(get().resume?.data, current.data))throw new Error(t`Your changes are still open. Try reloading again when you've finished typing.`);+ runtime.proposalApplications = {};+ runtime.pendingProposalApplications = {};+ runtime.hasPendingLocalChanges = false;clearUnsavedResume(current);get().replaceResumeFromServer(remote);delete runtime.copyId;@@ -699,15 +810,25 @@ function applyHistoryStep(get: StoreGet, set: ImmerSet, direction: "undo" | "redconst snapshot = from.pop();if (snapshot === undefined) return;- to.push(current as WritableDraft<ResumeData>);+ to.push({ data: current as WritableDraft<ResumeData>, applications: draft.proposalApplications });if (to.length > MAX_HISTORY_ENTRIES) to.shift();- draft.resume.data = snapshot;+ draft.resume.data = snapshot.data;+ draft.proposalApplications = restoreProposalApplications(draft.proposalApplications, snapshot.applications);if (!getRuntime(currentResume.id).conflict) draft.saveStatus = "saving";});const edited = get().resume;- if (edited) storeUnsavedResume(edited);+ if (edited) {+ const runtime = getRuntime(edited.id);+ runtime.pendingProposalApplications = queueProposalApplications(+ runtime.proposalApplications,+ get().proposalApplications,+ runtime.pendingProposalApplications,+ );+ runtime.proposalApplications = get().proposalApplications;+ storeUnsavedResume(edited);+ }getRuntime(currentResume.id).hasPendingLocalChanges = true;syncCurrentResume(currentResume.id);}diff --git a/apps/web/src/features/resume/editor/check/page-layer.tsx b/apps/web/src/features/resume/editor/check/page-layer.tsxindex 0c1a4fc96..64db5a9dc 100644--- a/apps/web/src/features/resume/editor/check/page-layer.tsx+++ b/apps/web/src/features/resume/editor/check/page-layer.tsx@@ -14,6 +14,7 @@ import { findEntry } from "../write/model";import { scrollToIssue, useCheckActions } from "./actions";import { useCheck } from "./use-check";import { getPdfFindingMessage } from "@/features/ats-checker/messages";+import { useResumeStore } from "@/features/resume/builder/draft";const toTarget = (node: PageMapNode): PageMapTarget => {if (node.kind === "item") return { kind: "item", sectionId: node.sectionId, itemId: node.itemId };@@ -85,6 +86,7 @@ type CheckPageLayerProps = { pageIndex: number; pageMap: PageMap | undefined };*/export function CheckPageLayer({ pageIndex, pageMap }: CheckPageLayerProps) {const check = useCheck();+ const applications = useResumeStore((state) => state.proposalApplications);const tab = useEditorStore((state) => state.checkTab);const selected = useEditorStore((state) => state.checkIssue);const highlightTerm = useEditorStore((state) => state.highlightTerm);@@ -119,7 +121,7 @@ export function CheckPageLayer({ pageIndex, pageMap }: CheckPageLayerProps) {const markers =tab === "writing"? proposals.flatMap((proposal, index) => {- if (getProposalState(check.data, proposal) !== "pending") return [];+ if (getProposalState(check.data, proposal, applications) !== "pending") return [];const target: PageMapTarget = proposal.target.itemId? { kind: "item", sectionId: proposal.target.sectionId, itemId: proposal.target.itemId }: { kind: "section", sectionId: proposal.target.sectionId };diff --git a/apps/web/src/features/resume/editor/check/review.test.ts b/apps/web/src/features/resume/editor/check/review.test.tsnew file mode 100644index 000000000..e96ca8feb--- /dev/null+++ b/apps/web/src/features/resume/editor/check/review.test.ts@@ -0,0 +1,23 @@+import { expect, it } from "vite-plus/test";+import { getStateIn } from "@reactive-resume/resume/proposals";+import { mapWritingReview } from "./review";++it("does not reuse an accepted proposal identity for a fresh writing review", () => {+ const passages = [+ {+ id: "passage",+ target: { sectionId: "summary", field: "content" },+ html: "<p>Original</p>",+ text: "Original",+ location: "Summary",+ },+ ];+ const suggestions = [+ { passageId: "passage", section: null, issue: "Clearer", rewrite: "Rewritten", impact: "high" as const },+ ];+ const first = mapWritingReview(suggestions, passages).proposals[0];+ const next = mapWritingReview(suggestions, passages).proposals[0];+ if (!first || !next) throw new Error("Missing proposals");+ expect(next.id).not.toBe(first.id);+ expect(getStateIn("<p>Original</p>", next, { [first.id]: true })).toBe("pending");+});diff --git a/apps/web/src/features/resume/editor/check/review.ts b/apps/web/src/features/resume/editor/check/review.tsindex 3e83cbf3f..f0f3e6124 100644--- a/apps/web/src/features/resume/editor/check/review.ts+++ b/apps/web/src/features/resume/editor/check/review.ts@@ -2,6 +2,7 @@ import type { WritingNote } from "../store";import type { PageMapTarget } from "@reactive-resume/pdf/page-map";import type { Passage, Proposal } from "@reactive-resume/resume/proposals";import { replaceBlockText } from "@reactive-resume/resume/proposals";+import { generateId } from "@reactive-resume/utils/string";type ReviewSuggestion = {section: string | null;@@ -31,7 +32,7 @@ export function mapWritingReview(suggestions: readonly ReviewSuggestion[], passaif (passage && rewrite && rewrite !== passage.text) {proposals.push({- id: `w${proposals.length + 1}`,+ id: generateId(),target: passage.target,location: passage.location,before: passage.html,diff --git a/apps/web/src/features/resume/editor/proposals/proposal-list.tsx b/apps/web/src/features/resume/editor/proposals/proposal-list.tsxindex fd6a30769..8723f2940 100644--- a/apps/web/src/features/resume/editor/proposals/proposal-list.tsx+++ b/apps/web/src/features/resume/editor/proposals/proposal-list.tsx@@ -10,7 +10,7 @@ import { Icon } from "@reactive-resume/ui/components/icon";import { cn } from "@reactive-resume/utils/style";import { useEditorStore } from "../store";import { acceptResumeProposals } from "./proposals";-import { useIsResumeLocked } from "@/features/resume/builder/draft";+import { useIsResumeLocked, useResumeStore } from "@/features/resume/builder/draft";import { ENTER_CLASS, POP_CLASS } from "@/libs/motion";/** The visible text of a passage's HTML, for the card. */@@ -28,16 +28,17 @@ type ProposalListProps = {export function ProposalList({ proposals, data, onSuggestAgain }: ProposalListProps) {const setProposalStatus = useEditorStore((state) => state.setProposalStatus);const locked = useIsResumeLocked();+ const applications = useResumeStore((state) => state.proposalApplications);return (<ChangeSetproposals={proposals}- states={proposals.map((proposal) => getProposalState(data, proposal))}+ states={proposals.map((proposal) => getProposalState(data, proposal, applications))}locked={locked}onAccept={(accepted) => {- acceptResumeProposals(accepted);+ const { applied } = acceptResumeProposals(accepted);setProposalStatus(- accepted.map((proposal) => proposal.id),+ applied.map((proposal) => proposal.id),"accepted",);}}diff --git a/apps/web/src/features/resume/editor/proposals/proposals.test.ts b/apps/web/src/features/resume/editor/proposals/proposals.test.tsindex a63110ab5..656e00dbb 100644--- a/apps/web/src/features/resume/editor/proposals/proposals.test.ts+++ b/apps/web/src/features/resume/editor/proposals/proposals.test.ts@@ -1,6 +1,7 @@import type { Proposal } from "@reactive-resume/resume/proposals";import type { ResumeData } from "@reactive-resume/schema/resume/data";-import { describe, expect, it } from "vite-plus/test";+import { describe, expect, it, vi } from "vite-plus/test";+import { i18n } from "@lingui/core";import { produce } from "immer";import {applyProposal,@@ -10,7 +11,11 @@ import {replaceBlockText,} from "@reactive-resume/resume/proposals";import { defaultResumeData } from "@reactive-resume/schema/resume/default";-import { markProposals } from "./proposals";+const mocks = vi.hoisted(() => ({ store: vi.fn(), toast: vi.fn() }));+vi.mock("@/features/resume/builder/draft", () => ({ useResumeStore: { getState: mocks.store } }));+vi.mock("@reactive-resume/ui/components/toast", () => ({ toast: { add: mocks.toast } }));++import { acceptResumeProposals, markProposals } from "./proposals";const OLD_BULLET = "<li><p>Responsible for various design tasks</p></li>";@@ -90,3 +95,37 @@ describe("proposals", () => {expect(getProposalState(next, { ...addition, status: "accepted" })).toBe("accepted");});});++it("toasts real applied and failed counts, skips locked writes, and keeps Undo from erasing later edits", () => {+ i18n.loadAndActivate({ locale: "en-US", messages: {} });+ mocks.toast.mockClear();+ const state = {+ resume: { id: "resume", data: makeData(), isLocked: false },+ updateResumeData: vi.fn((recipe: (draft: ResumeData) => void) => {+ state.resume.data = produce(state.resume.data, recipe);+ }),+ undo: vi.fn(),+ };+ mocks.store.mockReturnValue(state);+ const rewrite = proposal();+ const addition = proposal({ id: "addition", after: "<p>Conflicting rewrite</p>" });+ expect(acceptResumeProposals([rewrite, addition])).toEqual({ applied: [rewrite], stale: [addition] });+ expect(mocks.toast).toHaveBeenLastCalledWith(+ expect.objectContaining({+ description: "Edit applied · 1 edit couldn't be placed: its text changed. Ask again to redo it.",+ }),+ );+ const undo = mocks.toast.mock.lastCall?.[0].actionProps.onClick;+ undo();+ expect(state.undo).toHaveBeenCalledOnce();+ state.undo.mockClear();+ state.resume.data = makeData();+ undo();+ expect(state.undo).not.toHaveBeenCalled();+ state.resume.isLocked = true;+ mocks.toast.mockClear();+ state.updateResumeData.mockClear();+ expect(acceptResumeProposals([rewrite, addition])).toEqual({ applied: [], stale: [] });+ expect(mocks.toast).not.toHaveBeenCalled();+ expect(state.updateResumeData).not.toHaveBeenCalled();+});diff --git a/apps/web/src/features/resume/editor/proposals/proposals.ts b/apps/web/src/features/resume/editor/proposals/proposals.tsindex 19fa34000..be6f3da74 100644--- a/apps/web/src/features/resume/editor/proposals/proposals.ts+++ b/apps/web/src/features/resume/editor/proposals/proposals.ts@@ -1,10 +1,9 @@-import type { Proposal } from "@reactive-resume/resume/proposals";+import type { Proposal, ProposalApplicationResult, ProposalApplications } from "@reactive-resume/resume/proposals";import type { ResumeData } from "@reactive-resume/schema/resume/data";import { plural, t } from "@lingui/core/macro";import { produce } from "immer";import {- applyProposal,- applyTo,+ applyProposals,getProposalState,readTarget,splitBlock,@@ -41,41 +40,91 @@ export function markChange(before: string, after: string) {}/** The proposals still waiting on the user (not accepted, rejected or out of date), optionally in one section. */-export const pendingProposals = (data: ResumeData, proposals: readonly Proposal[], sectionId?: string) =>+export const pendingProposals = (+ data: ResumeData,+ proposals: readonly Proposal[],+ sectionId?: string,+ applications: ProposalApplications = {},+) =>proposals.filter((proposal) =>(sectionId === undefined || proposal.target.sectionId === sectionId) &&- getProposalState(data, proposal) === "pending",+ getProposalState(data, proposal, applications) === "pending",);/*** The page as it would read with the proposals: each passage struck through, followed by its replacement,* highlighted. For the preview only; it's never saved.*/-export function markProposals(data: ResumeData, proposals: readonly Proposal[]): ResumeData {- const pending = pendingProposals(data, proposals);+export function markProposals(+ data: ResumeData,+ proposals: readonly Proposal[],+ applications: ProposalApplications = {},+): ResumeData {+ const pending = pendingProposals(data, proposals, undefined, applications);if (pending.length === 0) return data;return produce(data, (draft) => {- for (const proposal of pending) {- const value = readTarget(draft, proposal.target);- const marked = markChange(proposal.before, proposal.after);- const next = applyTo(value, { before: proposal.before, after: marked });- if (next !== undefined) writeTarget(draft, proposal.target, next);- }+ applyProposals(+ pending.map((proposal) => ({ ...proposal, after: markChange(proposal.before, proposal.after) })),+ (target) => readTarget(draft, target),+ (target, value) => writeTarget(draft, target, value),+ applications,+ );});}-/** Applies proposals to the resume as one undo step; the toast's Undo takes them back, and they show as pending again. */-export function acceptResumeProposals(proposals: readonly Proposal[]) {- useResumeStore.getState().updateResumeData(- (draft) => {- for (const proposal of proposals) applyProposal(draft, proposal);- },- { newStep: true },- );- toast.add({- description: plural(proposals.length, { 1: "Edit applied", other: "# edits applied" }),- actionProps: { children: t`Undo`, onClick: () => useResumeStore.getState().undo() },+/** The toast uses actual writes, with placement failures reported separately from successes. */+export function proposalResultMessage({ applied, stale }: ProposalApplicationResult) {+ return [+ applied.length > 0 ? plural(applied.length, { 1: "Edit applied", other: "# edits applied" }) : "",+ stale.length > 0+ ? plural(stale.length, {+ one: "# edit couldn't be placed: its text changed. Ask again to redo it.",+ other: "# edits couldn't be placed: their text changed. Ask again to redo them.",+ })+ : "",+ ]+ .filter(Boolean)+ .join(" · ");+}++/** Applies proposals as one undo step, returning only real writes for callers to record as accepted. */+export function acceptResumeProposals(proposals: readonly Proposal[]): ProposalApplicationResult {+ const store = useResumeStore.getState();+ const resume = store.resume;+ if (!resume || resume.isLocked) return { applied: [], stale: [] };+ let result: ProposalApplicationResult = { applied: [], stale: [] };+ const next = produce(resume.data, (draft) => {+ result = applyProposals(+ proposals,+ (target) => readTarget(draft, target),+ (target, value) => writeTarget(draft, target, value),+ store.proposalApplications,+ );});+ if (result.applied.length > 0)+ store.updateResumeData(+ (draft) => {+ Object.assign(draft, next);+ },+ { newStep: true, proposalIds: result.applied.map((proposal) => proposal.id) },+ );+ const accepted = useResumeStore.getState().resume?.data;+ if (result.applied.length > 0 || result.stale.length > 0)+ toast.add({+ description: proposalResultMessage(result),+ ...(result.applied.length > 0+ ? {+ actionProps: {+ children: t`Undo`,+ onClick: () => {+ const current = useResumeStore.getState();+ if (current.resume?.id === resume.id && current.resume.data === accepted) current.undo();+ },+ },+ }+ : {}),+ });+ return result;}diff --git a/apps/web/src/features/resume/editor/write/section-row.tsx b/apps/web/src/features/resume/editor/write/section-row.tsxindex 5c0bf13ca..3777a2a21 100644--- a/apps/web/src/features/resume/editor/write/section-row.tsx+++ b/apps/web/src/features/resume/editor/write/section-row.tsx@@ -420,5 +420,6 @@ const NONE: readonly never[] = [];function useProposedCount(sectionId: string) {const proposals = useEditorStore((state) => (state.assistantOpen ? state.assistantProposals : NONE));const data = useCurrentBuilderResumeSelector((resume) => resume.data);- return pendingProposals(data, proposals, sectionId).length;+ const applications = useResumeStore((state) => state.proposalApplications);+ return pendingProposals(data, proposals, sectionId, applications).length;}diff --git a/apps/web/src/libs/auth/clear-account-data.test.ts b/apps/web/src/libs/auth/clear-account-data.test.tsindex f290beaf0..fa7e95899 100644--- a/apps/web/src/libs/auth/clear-account-data.test.ts+++ b/apps/web/src/libs/auth/clear-account-data.test.ts@@ -10,6 +10,7 @@ it("removes contact snapshots, unsaved resumes, and career drafts from both browconst privateKeys = ["letter-sender:letter","reactive-resume:unsaved:resume",+ "reactive-resume:unsaved:letter:letter:session","career-story:user","career:debrief:application","new-documents",diff --git a/apps/web/src/libs/auth/clear-account-data.ts b/apps/web/src/libs/auth/clear-account-data.tsindex bb263e772..2b4543e70 100644--- a/apps/web/src/libs/auth/clear-account-data.ts+++ b/apps/web/src/libs/auth/clear-account-data.ts@@ -1,11 +1,13 @@import type { QueryClient } from "@tanstack/react-query";import { useNewDocumentsStore } from "@/features/documents/new-documents";import { clearStoredThumbnails } from "@/features/documents/thumbnail-store";+import { useLetterEditorStore } from "@/features/letters/store";import { clearResumeDrafts } from "@/features/resume/builder/draft";/** Forgets the account that just signed out or was deleted: cached queries, and thumbnails saved on this device. */export function clearAccountData(queryClient: QueryClient) {clearResumeDrafts();+ useLetterEditorStore.getState().reset();queryClient.clear();useNewDocumentsStore.setState({ ids: [] });for (const kind of ["localStorage", "sessionStorage"] as const) {diff --git a/apps/web/src/routes/builder/$resumeId/-components/page-canvas.tsx b/apps/web/src/routes/builder/$resumeId/-components/page-canvas.tsxindex b3b22770b..91421bf70 100644--- a/apps/web/src/routes/builder/$resumeId/-components/page-canvas.tsx+++ b/apps/web/src/routes/builder/$resumeId/-components/page-canvas.tsx@@ -11,7 +11,7 @@ import { Icon } from "@reactive-resume/ui/components/icon";import { useBreakpoint } from "@reactive-resume/ui/hooks/use-breakpoint";import { cn } from "@reactive-resume/utils/style";import { templates } from "@/dialogs/resume/template/data";-import { useCurrentBuilderResumeSelector, useResumeData } from "@/features/resume/builder/draft";+import { useCurrentBuilderResumeSelector, useResumeData, useResumeStore } from "@/features/resume/builder/draft";import { CheckPageLayer, PageViewToggle } from "@/features/resume/editor/check/page-layer";import { ParserView } from "@/features/resume/editor/check/parser-view";import { CanvasStatusPill, usePageScale, ZoomBar } from "@/features/resume/editor/chrome";@@ -73,7 +73,8 @@ function ResumePageCanvas() {// highlighted.const markEdits = mode === "check" && checkTab === "writing" && pageView === "page" && proposals.length > 0;const marked = [...(markEdits ? proposals : []), ...assistantProposals];- const pendingOnPage = data ? pendingProposals(data, assistantProposals).length : 0;+ const applications = useResumeStore((state) => state.proposalApplications);+ const pendingOnPage = data ? pendingProposals(data, assistantProposals, undefined, applications).length : 0;const parser = mode === "check" && pageView === "parser" && !viewing;// Design: a hovered or focused template is drawn on the page until it's applied or the pointer leaves.@@ -82,7 +83,7 @@ function ResumePageCanvas() {: data && previewTemplate? { ...data, metadata: { ...data.metadata, template: previewTemplate } }: data && marked.length > 0- ? markProposals(data, marked)+ ? markProposals(data, marked, applications): undefined;const overflow = data && !previewTemplate && !viewing ? measureOverflow(data, rendered) : null;// Desktop: the page moves 120px aside so it stays visible beside the Download & history sheet.diff --git a/apps/web/src/routes/builder/letter/-components/letter-bar.tsx b/apps/web/src/routes/builder/letter/-components/letter-bar.tsxindex 6ba1ebb17..202d800da 100644--- a/apps/web/src/routes/builder/letter/-components/letter-bar.tsx+++ b/apps/web/src/routes/builder/letter/-components/letter-bar.tsx@@ -211,7 +211,7 @@ function LetterSaveStatus() {const reload = async () => {try {- useLetterEditorStore.getState().load(await client.coverLetters.getById({ id }));+ useLetterEditorStore.getState().load(await client.coverLetters.getById({ id }), { recover: false });} catch (error) {failed(error);}diff --git a/apps/web/src/routes/builder/letter/-components/letter-page.tsx b/apps/web/src/routes/builder/letter/-components/letter-page.tsxindex 8dda121ef..81df31d28 100644--- a/apps/web/src/routes/builder/letter/-components/letter-page.tsx+++ b/apps/web/src/routes/builder/letter/-components/letter-page.tsx@@ -8,7 +8,7 @@ import { useReducedMotion } from "motion/react";import { useMemo, useState } from "react";import { useDebounceValue } from "usehooks-ts";import { coverLetterTextToHtml } from "@reactive-resume/resume/cover-letter";-import { getStateIn } from "@reactive-resume/resume/proposals";+import { applyProposals } from "@reactive-resume/resume/proposals";import { useBreakpoint } from "@reactive-resume/ui/hooks/use-breakpoint";import { cn } from "@reactive-resume/utils/style";import { templates } from "@/dialogs/resume/template/data";@@ -46,6 +46,7 @@ function useDeepStable<T>(value: T) {*/export function LetterPage() {const letter = useLetterEditorStore((state) => state.letter);+ const applications = useLetterEditorStore((state) => state.proposalApplications);const draft = useLetterEditorStore((state) => state.draft);const assistantProposals = useEditorStore((state) => (state.assistantOpen ? state.assistantProposals : NONE));const { i18n } = useLingui();@@ -79,17 +80,19 @@ export function LetterPage() {if (!letter) return undefined;if (viewing) return letterPageData({ ...letter, ...viewing.data }, words);// The assistant's pending edits show in the body: the old text struck through, the new highlighted.- const content = shownDraft- ? coverLetterTextToHtml(shownDraft)- : assistantProposals- .filter((proposal) => getStateIn(letter.content, proposal) === "pending")- .reduce(- (html, proposal) => html.replace(proposal.before, () => markChange(proposal.before, proposal.after)),- letter.content,- );+ let content = shownDraft ? coverLetterTextToHtml(shownDraft) : letter.content;+ if (!shownDraft)+ applyProposals(+ assistantProposals.map((proposal) => ({ ...proposal, after: markChange(proposal.before, proposal.after) })),+ () => content,+ (_, value) => {+ content = value;+ },+ applications,+ );const page = letterPageData({ ...letter, content }, words);return previewTemplate ? { ...page, metadata: { ...page.metadata, template: previewTemplate } } : page;- }, [letter, viewing, shownDraft, previewTemplate, words, assistantProposals]);+ }, [letter, viewing, shownDraft, previewTemplate, words, assistantProposals, applications]);const data = useDeepStable(pageData);if (!letter || !data) return null;diff --git a/docs/guides/ai-agent-tools.mdx b/docs/guides/ai-agent-tools.mdxindex 9a7755015..76807ad71 100644--- a/docs/guides/ai-agent-tools.mdx+++ b/docs/guides/ai-agent-tools.mdx@@ -28,7 +28,7 @@ The assistant works through a small, fixed set of tools. You never call them youEvery edit targets one passage by the ID the read tool returned. When you accept, the new text replaces that passage (or is added after it) in your document, as a single step you can undo.-If you or another change edits a passage after the assistant read it, the edit can no longer be placed. The card then says, for example, "1 edit couldn't be placed: its text changed. Ask again to redo it." Edits that were placed but whose passage changed afterwards show **Out of date: the text has changed since.**+If you or another change edits a passage after the assistant read it, the edit can no longer be placed. The card then says, for example, "1 edit couldn't be placed: its text changed. Ask again to redo it." Accepted edits stay **Applied** when you refine their wording. **Out of date: the text has changed since.** applies to a proposal whose original passage can no longer be placed.The assistant is instructed to rewrite only what your document already says: it doesn't add employers, titles, dates, numbers, skills or achievements that aren't in the document or the conversation. When a job posting asks for something your document doesn't mention, it uses `ask_user_question` first, and only drafts it from your answer.diff --git a/docs/guides/using-the-assistant.mdx b/docs/guides/using-the-assistant.mdxindex 8c57cbf20..fde6664c0 100644--- a/docs/guides/using-the-assistant.mdx+++ b/docs/guides/using-the-assistant.mdx@@ -63,16 +63,23 @@ Each proposed edit shows where it lands (for example, **Summary · paragraph 1**</Frame>- Select **Accept** to apply an edit, or **Reject** to dismiss it.-- When a set has more than one edit waiting, **Accept all** applies them together.+- When a set has more than one edit waiting, **Accept all** applies the edits it can still place. The notification counts those edits and tells you how many could not be placed.- With an edit focused, press <kbd>A</kbd> to accept, <kbd>R</kbd> to reject, and <kbd>↑</kbd> <kbd>↓</kbd> to move between edits.-Accepted edits show **Applied** and the set's title changes to, for example, **1 of 1 applied**. If you change a passage yourself before deciding, its edit shows **Out of date: the text has changed since.** Ask again to get a fresh suggestion.+Accepted edits show **Applied** and the set's title changes to, for example, **1 of 1 applied**. They stay applied when you refine the wording yourself. If you change a passage yourself before deciding, its edit shows **Out of date: the text has changed since.** Ask again to get a fresh suggestion.++<Frame caption="Accept all placed two edits; the competing rewrite could not be placed">+ <img+ src="/images/guides/using-the-assistant/accept-all-results.png"+ alt="Actual proposed edit cards with fictional release-check wording: 2 of 3 applied, two Applied badges, one Out of date notice, and a notification reporting 2 edits applied and 1 edit that could not be placed, with Undo"+ />+</Frame>The assistant only rewrites what your document already says. When a posting asks for something your document doesn't mention, it asks you first instead of inventing it.## Undo an accepted edit-Accepting shows a toast, **Edit applied**, with **Undo**. You can also press <kbd>⌘</kbd> <kbd>Z</kbd> (<kbd>Ctrl</kbd> <kbd>Z</kbd>) like any other change, or restore an earlier version from History. An edit you undo becomes pending again in the conversation, so you can accept it later. See [Undoing changes and version history](/guides/undoing-changes-and-version-history).+Accepting shows a notification with the number of edits applied and **Undo**. You can also press <kbd>⌘</kbd> <kbd>Z</kbd> (<kbd>Ctrl</kbd> <kbd>Z</kbd>) like any other change, or use History to restore an earlier document. An edit you explicitly undo becomes pending again when its original passage is available, so you can accept it later. That decision is saved with the document, even if you close the assistant. If an unsaved decision is recovered after another tab or device saved a newer version, saving pauses for the usual conflict controls; matching text alone does not choose which decision to keep. See [Undoing changes and version history](/guides/undoing-changes-and-version-history).## Answer a questiondiff --git a/docs/images/guides/using-the-assistant/accept-all-results.png b/docs/images/guides/using-the-assistant/accept-all-results.pngnew file mode 100644index 000000000..3db0bacb9Binary files /dev/null and b/docs/images/guides/using-the-assistant/accept-all-results.png differdiff --git a/docs/spec.json b/docs/spec.jsonindex 51da49948..62f03f6d2 100644--- a/docs/spec.json+++ b/docs/spec.json@@ -53916,6 +53916,17 @@"type": "boolean","description": "Take the design live from the resume."},+ "proposalApplications": {+ "type": "object",+ "propertyNames": {+ "type": "string",+ "minLength": 1,+ "maxLength": 128+ },+ "additionalProperties": {+ "type": "boolean"+ }+ },"sessionId": {"type": "string","minLength": 1,@@ -55238,6 +55249,17 @@"type": "boolean","description": "Take the design live from the resume."},+ "proposalApplications": {+ "type": "object",+ "propertyNames": {+ "type": "string",+ "minLength": 1,+ "maxLength": 128+ },+ "additionalProperties": {+ "type": "boolean"+ }+ },"sessionId": {"type": "string","minLength": 1,@@ -70152,6 +70174,17 @@"x-native-type": "date","description": "If provided, the update only applies when the resume version still matches this timestamp."},+ "proposalApplications": {+ "type": "object",+ "propertyNames": {+ "type": "string",+ "minLength": 1,+ "maxLength": 128+ },+ "additionalProperties": {+ "type": "boolean"+ }+ },"sessionId": {"type": "string","maxLength": 64,@@ -97622,6 +97655,17 @@"x-native-type": "date","description": "If provided, the update only applies when the resume version still matches this timestamp."},+ "proposalApplications": {+ "type": "object",+ "propertyNames": {+ "type": "string",+ "minLength": 1,+ "maxLength": 128+ },+ "additionalProperties": {+ "type": "boolean"+ }+ },"sessionId": {"type": "string","maxLength": 64,diff --git a/packages/api/src/dto/cover-letter.ts b/packages/api/src/dto/cover-letter.tsindex 5a0c12c4f..ab510449c 100644--- a/packages/api/src/dto/cover-letter.ts+++ b/packages/api/src/dto/cover-letter.ts@@ -9,6 +9,7 @@ import {} from "@reactive-resume/schema/cover-letter/data";import { templateSchema } from "@reactive-resume/schema/templates";import { paginationShape } from "../pagination";+import { proposalApplicationsSchema } from "./proposals";const idSchema = z.object({ id: z.string().min(1) });const revisionSchema = idSchema.extend({ expectedRevision: z.number().int().min(1) });@@ -104,6 +105,7 @@ export const coverLetterDto = {.describe("Edits the letter's own sender details; turn the sender link off first."),senderLinked: z.boolean().optional().describe("Take the sender's details live from the resume."),designLinked: z.boolean().optional().describe("Take the design live from the resume."),+ proposalApplications: proposalApplicationsSchema,sessionId: z.string().min(1)diff --git a/packages/api/src/dto/proposals.ts b/packages/api/src/dto/proposals.tsnew file mode 100644index 000000000..80ecd8eef--- /dev/null+++ b/packages/api/src/dto/proposals.ts@@ -0,0 +1,4 @@+import z from "zod";++/** Document saves atomically record assistant acceptance and explicit Undo/Redo outcomes. */+export const proposalApplicationsSchema = z.record(z.string().min(1).max(128), z.boolean()).optional();diff --git a/packages/api/src/dto/resume.ts b/packages/api/src/dto/resume.tsindex 7aa719c07..fa40ff22e 100644--- a/packages/api/src/dto/resume.ts+++ b/packages/api/src/dto/resume.ts@@ -6,6 +6,7 @@ import { resumeDataSchema } from "@reactive-resume/schema/resume/data";import { slugSchema } from "@reactive-resume/schema/resume/slug";import { writableResumeDataSchema } from "@reactive-resume/schema/resume/write";import { paginationShape } from "../pagination";+import { proposalApplicationsSchema } from "./proposals";const resumeSchema = createSelectSchema(schema.resume, {id: z.string().describe("The ID of the resume."),@@ -123,6 +124,7 @@ export const resumeDto = {.date().optional().describe("If provided, the update only applies when the resume version still matches this timestamp."),+ proposalApplications: proposalApplicationsSchema,sessionId: z.string().max(64)diff --git a/packages/api/src/features/agent/messages-persistence.test.ts b/packages/api/src/features/agent/messages-persistence.test.tsindex 87f124910..8d3086053 100644--- a/packages/api/src/features/agent/messages-persistence.test.ts+++ b/packages/api/src/features/agent/messages-persistence.test.ts@@ -125,8 +125,17 @@ describe("proposed edit statuses", () => {it("keeps what the user did while a run rewrites its message", async () => {const database = scriptedDatabase([[{ id: "row-1" }]]);+ database.transaction = async (callback: (tx: unknown) => unknown) => callback(database);database.select = () => ({- from: () => ({ where: async () => [{ uiMessage: proposing(["accepted", "rejected"]) }] }),+ from: () => ({+ where: () => {+ const query = {+ orderBy: () => query,+ for: async () => [{ id: "row-1", uiMessage: proposing(["accepted", "rejected"]) }],+ };+ return query;+ },+ }),});await upsertAssistantUiMessage(diff --git a/packages/api/src/features/agent/messages-persistence.ts b/packages/api/src/features/agent/messages-persistence.tsindex ae0e33c15..9e0017dab 100644--- a/packages/api/src/features/agent/messages-persistence.ts+++ b/packages/api/src/features/agent/messages-persistence.ts@@ -1,5 +1,6 @@+import type { DbOrTx } from "@reactive-resume/db/client";import type { UIMessage } from "ai";-import { and, eq, max, sql } from "drizzle-orm";+import { and, asc, eq, max, sql } from "drizzle-orm";import { db } from "@reactive-resume/db/client";import * as schema from "@reactive-resume/db/schema";@@ -56,28 +57,23 @@ export function withEditStatuses(};}-// A run rewrites its message as it goes, always with edits pending; what the user already did with them (they can-// accept while the reply is still streaming) is kept.-async function withStoredEditStatuses(- input: { userId: string; threadId: string; rowId?: string; message: UIMessage },- database: AgentMessagesDb,+/** Every message writer locks messages in ID order, then their thread, before reading/merging decisions. */+export async function lockThreadMessages(+ database: Pick<DbOrTx, "select">,+ input: { userId: string; threadId: string },) {- if (proposeEditsParts(input.message).length === 0) return input.message;const rows = await database- .select({ uiMessage: schema.agentMessage.uiMessage })+ .select().from(schema.agentMessage)- .where(- and(- eq(schema.agentMessage.threadId, input.threadId),- eq(schema.agentMessage.userId, input.userId),- input.rowId- ? eq(schema.agentMessage.id, input.rowId)- : sql`${schema.agentMessage.uiMessage}->>'id' = ${input.message.id}`,- ),- );- const stored = rows[0]?.uiMessage as unknown as UIMessage | undefined;- if (!stored?.parts) return input.message;- return withEditStatuses(input.message, null, new Map(proposedEditsOf(stored).map((edit) => [edit.id, edit.status])));+ .where(and(eq(schema.agentMessage.threadId, input.threadId), eq(schema.agentMessage.userId, input.userId)))+ .orderBy(asc(schema.agentMessage.id))+ .for("update");+ await database+ .select({ id: schema.agentThread.id })+ .from(schema.agentThread)+ .where(and(eq(schema.agentThread.id, input.threadId), eq(schema.agentThread.userId, input.userId)))+ .for("update");+ return rows;}function toolPartFromCall(part: StepContentPart): UiMessagePart {@@ -253,7 +249,7 @@ export async function insertDraftAssistantMessage(// Upsert by row id first, then by the uiMessage's embedded id (a question/approval continuation// streams into the SAME uiMessage id as the stored assistant row), then insert as a last resort.-export async function upsertAssistantUiMessage(+export function upsertAssistantUiMessage(input: {userId: string;threadId: string;@@ -261,72 +257,84 @@ export async function upsertAssistantUiMessage(message: UIMessage;status: "streaming" | "completed" | "canceled";},- database: AgentMessagesDb = db,+ database: Pick<typeof db, "transaction"> = db,) {- const message = await withStoredEditStatuses(input, database);- const set = {- status: input.status,- uiMessage: message as unknown as Record<string, unknown>,- };- const isFinal = input.status !== "streaming";+ return database.transaction(async (database) => {+ const rows = await lockThreadMessages(database, input);+ const stored =+ rows.find((row) => row.id === input.rowId) ??+ rows.find((row) => row.role === "assistant" && row.uiMessage.id === input.message.id);+ const message = stored+ ? withEditStatuses(+ input.message,+ null,+ new Map(proposedEditsOf(stored.uiMessage as unknown as UIMessage).map((edit) => [edit.id, edit.status])),+ )+ : input.message;+ const set = {+ status: input.status,+ uiMessage: message as unknown as Record<string, unknown>,+ };+ const isFinal = input.status !== "streaming";++ if (input.rowId) {+ const updated = await database+ .update(schema.agentMessage)+ .set(set)+ .where(+ and(+ eq(schema.agentMessage.id, input.rowId),+ eq(schema.agentMessage.threadId, input.threadId),+ eq(schema.agentMessage.userId, input.userId),+ ),+ )+ .returning({ id: schema.agentMessage.id });++ if (updated.length === 1) {+ if (isFinal) await touchThread(input, database);+ // oxlint-disable-next-line typescript/no-non-null-assertion -- length checked above+ return { rowId: updated[0]!.id };+ }+ }- if (input.rowId) {- const updated = await database+ const updatedById = await database.update(schema.agentMessage).set(set).where(and(- eq(schema.agentMessage.id, input.rowId),eq(schema.agentMessage.threadId, input.threadId),eq(schema.agentMessage.userId, input.userId),+ eq(schema.agentMessage.role, "assistant"),+ sql`${schema.agentMessage.uiMessage}->>'id' = ${input.message.id}`,),).returning({ id: schema.agentMessage.id });- if (updated.length === 1) {+ if (updatedById.length >= 1) {if (isFinal) await touchThread(input, database);// oxlint-disable-next-line typescript/no-non-null-assertion -- length checked above- return { rowId: updated[0]!.id };+ return { rowId: updatedById[0]!.id };}- }- const updatedById = await database- .update(schema.agentMessage)- .set(set)- .where(- and(- eq(schema.agentMessage.threadId, input.threadId),- eq(schema.agentMessage.userId, input.userId),- eq(schema.agentMessage.role, "assistant"),- sql`${schema.agentMessage.uiMessage}->>'id' = ${input.message.id}`,- ),- )- .returning({ id: schema.agentMessage.id });-- if (updatedById.length >= 1) {- if (isFinal) await touchThread(input, database);- // oxlint-disable-next-line typescript/no-non-null-assertion -- length checked above- return { rowId: updatedById[0]!.id };- }-- const sequence = await nextMessageSequence(input.threadId, database);- const [inserted] = await database- .insert(schema.agentMessage)- .values({- userId: input.userId,- threadId: input.threadId,- role: message.role,- status: input.status,- sequence,- uiMessage: message as unknown as Record<string, unknown>,- })- .returning({ id: schema.agentMessage.id });+ const sequence = await nextMessageSequence(input.threadId, database);+ const [inserted] = await database+ .insert(schema.agentMessage)+ .values({+ userId: input.userId,+ threadId: input.threadId,+ role: message.role,+ status: input.status,+ sequence,+ uiMessage: message as unknown as Record<string, unknown>,+ })+ .returning({ id: schema.agentMessage.id });- if (!inserted) throw new Error("AGENT_MESSAGE_CREATE_FAILED");+ if (!inserted) throw new Error("AGENT_MESSAGE_CREATE_FAILED");- await touchThread(input, database);+ await touchThread(input, database);- return { rowId: inserted.id };+ return { rowId: inserted.id };+ });}// Removes a draft that never received content (sync failure before the stream produced anything).diff --git a/packages/api/src/features/agent/proposal-applications.ts b/packages/api/src/features/agent/proposal-applications.tsnew file mode 100644index 000000000..5c8d342e5--- /dev/null+++ b/packages/api/src/features/agent/proposal-applications.ts@@ -0,0 +1,58 @@+import type { DbOrTx } from "@reactive-resume/db/client";+import type { ProposalApplications } from "@reactive-resume/resume/proposals";+import type { UIMessage } from "ai";+import { and, asc, eq, isNull } from "drizzle-orm";+import * as schema from "@reactive-resume/db/schema";+import { lockThreadMessages, proposedEditsOf, withEditStatuses } from "./messages-persistence";++/** Called inside the document's ownership/version-checked transaction: content and decisions commit together. */+export async function saveProposalApplications(+ tx: Pick<DbOrTx, "select" | "update">,+ input: {+ userId: string;+ document: { kind: "resume" | "letter"; id: string };+ applications: ProposalApplications | undefined;+ },+) {+ if (!input.applications || Object.keys(input.applications).length === 0) return;+ const threads = await tx+ .select({ id: schema.agentThread.id })+ .from(schema.agentThread)+ .where(+ and(+ eq(schema.agentThread.userId, input.userId),+ input.document.kind === "letter"+ ? eq(schema.agentThread.coverLetterId, input.document.id)+ : and(eq(schema.agentThread.workingResumeId, input.document.id), isNull(schema.agentThread.coverLetterId)),+ ),+ )+ .orderBy(asc(schema.agentThread.id));+ for (const thread of threads) {+ const rows = await lockThreadMessages(tx, { threadId: thread.id, userId: input.userId });+ let accepted = 0;+ for (const row of rows) {+ const original = row.uiMessage as unknown as UIMessage;+ if (!Array.isArray(original?.parts)) continue;+ const decisions = new Map(+ proposedEditsOf(original).flatMap((edit) => {+ const applied = input.applications?.[edit.id];+ // Explicit rejection wins over old draft saves and history movement.+ return typeof applied === "boolean" && edit.status !== "rejected"+ ? [[edit.id, applied ? ("accepted" as const) : ("pending" as const)] as const]+ : [];+ }),+ );+ const message = withEditStatuses(original, null, decisions);+ if (decisions.size > 0)+ await tx+ .update(schema.agentMessage)+ .set({ uiMessage: message as never })+ .where(and(eq(schema.agentMessage.id, row.id), eq(schema.agentMessage.userId, input.userId)));+ accepted += proposedEditsOf(message).filter((edit) => edit.status === "accepted").length;+ }+ await tx+ .update(schema.agentThread)+ .set({ editsAccepted: accepted })+ .where(and(eq(schema.agentThread.id, thread.id), eq(schema.agentThread.userId, input.userId)));+ }+}diff --git a/packages/api/src/features/agent/runs.test.ts b/packages/api/src/features/agent/runs.test.tsindex 77833fe1f..53f4a5245 100644--- a/packages/api/src/features/agent/runs.test.ts+++ b/packages/api/src/features/agent/runs.test.ts@@ -14,6 +14,7 @@ vi.mock("@reactive-resume/db/schema", () => ({agentAction: {},}));vi.mock("drizzle-orm", () => ({+ asc: (value: unknown) => value,and: (...conditions: unknown[]) => ({ type: "and", conditions }),eq: (left: unknown, right: unknown) => ({ type: "eq", left, right }),isNull: (value: unknown) => ({ type: "isNull", value }),@@ -108,14 +109,19 @@ function scriptedReaperDatabase(input: { drafts: Array<Record<string, unknown>>;const state: ScriptedReaperDb = { updates: [] };let selectCall = 0;- return {+ const database = {+ transaction: async <T>(callback: (tx: unknown) => Promise<T>): Promise<T> => callback(database),state,select: () => {const call = selectCall;selectCall += 1;return {from: () => ({- where: async () => (call === 0 ? input.drafts : []),+ where: () => {+ const rows = call === 0 ? input.drafts : [];+ const query = Object.assign(Promise.resolve(rows), { orderBy: () => query, for: async () => rows });+ return query;+ },}),};},@@ -131,6 +137,7 @@ function scriptedReaperDatabase(input: { drafts: Array<Record<string, unknown>>;},}),};+ return database;}describe("reapStaleAgentRun", () => {diff --git a/packages/api/src/features/agent/runs.ts b/packages/api/src/features/agent/runs.tsindex 43c20e392..2e13d41c3 100644--- a/packages/api/src/features/agent/runs.ts+++ b/packages/api/src/features/agent/runs.ts@@ -2,9 +2,10 @@ import type { UIMessage } from "ai";import { and, eq, isNotNull, isNull, sql } from "drizzle-orm";import { db } from "@reactive-resume/db/client";import * as schema from "@reactive-resume/db/schema";+import { lockThreadMessages } from "./messages-persistence";type AgentRunStateDb = Pick<typeof db, "update">;-type AgentRunReaperDb = Pick<typeof db, "select" | "update">;+type AgentRunReaperDb = Pick<typeof db, "select" | "update" | "transaction">;// Deliberately TTL-only (no controller-map heuristic) so reaping stays multi-replica-safe. The TTL// exceeds the 4-minute run wall clock, so a live run always dies by its own timeout first.@@ -169,19 +170,22 @@ export async function reapStaleAgentRun();const message = appendMissingActionParts(draft.uiMessage as unknown as UIMessage, actions);- await database- .update(schema.agentMessage)- .set({ status: "canceled", uiMessage: message as unknown as Record<string, unknown> })- .where(- and(- eq(schema.agentMessage.id, draft.id),- // A continuation can claim the thread right after our conditional clear and start- // writing into this very row. Flip only the exact state we snapshotted — any- // concurrent write changes status or uiMessage and makes this a no-op.- eq(schema.agentMessage.status, "streaming"),- sql`${schema.agentMessage.uiMessage} = ${JSON.stringify(draft.uiMessage)}::jsonb`,- ),- );+ await database.transaction(async (tx) => {+ await lockThreadMessages(tx, input);+ await tx+ .update(schema.agentMessage)+ .set({ status: "canceled", uiMessage: message as unknown as Record<string, unknown> })+ .where(+ and(+ eq(schema.agentMessage.id, draft.id),+ // A continuation can claim the thread right after our conditional clear and start+ // writing into this very row. Flip only the exact state we snapshotted — any+ // concurrent write changes status or uiMessage and makes this a no-op.+ eq(schema.agentMessage.status, "streaming"),+ sql`${schema.agentMessage.uiMessage} = ${JSON.stringify(draft.uiMessage)}::jsonb`,+ ),+ );+ });}}diff --git a/packages/api/src/features/agent/service.test.ts b/packages/api/src/features/agent/service.test.tsindex 5e44a04e0..94b468376 100644--- a/packages/api/src/features/agent/service.test.ts+++ b/packages/api/src/features/agent/service.test.ts@@ -20,6 +20,7 @@ const cancellationRedisMock = {exists: vi.fn(async () => 1),};const messagesPersistenceMock = {+ lockThreadMessages: vi.fn(),applyStepToUiMessage: vi.fn((message: unknown) => message),insertDraftAssistantMessage: vi.fn(),upsertAssistantUiMessage: vi.fn(),@@ -226,6 +227,11 @@ beforeEach(() => {clearActiveAgentRunIfCurrentMock.mockReset();claimActiveAgentRunMock.mockReset();for (const mock of Object.values(messagesPersistenceMock)) mock.mockReset();+ messagesPersistenceMock.lockThreadMessages.mockImplementation(async () =>+ (await dbMock.select().from().where().orderBy()).toSorted((a: { id: string }, b: { id: string }) =>+ a.id.localeCompare(b.id),+ ),+ );messagesPersistenceMock.applyStepToUiMessage.mockImplementation((message: unknown) => message);messagesPersistenceMock.insertDraftAssistantMessage.mockResolvedValue({rowId: "draft-row-1",@@ -570,6 +576,7 @@ describe("agentService.messages.send", () => {const rows = [{id: "old",+ sequence: 0,role: "user",uiMessage: {id: "old",@@ -577,8 +584,8 @@ describe("agentService.messages.send", () => {parts: [{ type: "text", text: "private-marker https://old.example/private" }],},},- { id: "user-row", role: "user", uiMessage: user },- { id: "assistant-row", role: "assistant", uiMessage: stored },+ { id: "user-row", sequence: 1, role: "user", uiMessage: user },+ { id: "assistant-row", sequence: 2, role: "assistant", uiMessage: stored },];dbMock.update.mockReturnValue({ set: vi.fn(() => ({ where: vi.fn(async () => undefined) })) });claimActiveAgentRunMock.mockResolvedValue(true);@@ -1139,15 +1146,17 @@ describe("agentService.messages.send", () => {],} as UIMessage;const rows = [- { id: "old-row", role: "assistant", status: "canceled", uiMessage: message },+ { id: "z-old-row", sequence: 0, role: "assistant", status: "canceled", uiMessage: message },{id: "new-user",+ sequence: 1,role: "user",status: "completed",uiMessage: { id: "new-user", role: "user", parts: [{ type: "text", text: "Another topic" }] },},{- id: "new-assistant",+ id: "a-new-assistant",+ sequence: 2,role: "assistant",status: "completed",uiMessage: { id: "new-assistant", role: "assistant", parts: [{ type: "text", text: "Later reply" }] },@@ -1155,7 +1164,12 @@ describe("agentService.messages.send", () => {];const before = structuredClone(rows);dbMock.select.mockImplementation(() => ({- from: () => ({ where: () => ({ limit: async () => [activeThread], orderBy: async () => rows }) }),+ from: () => ({+ where: () => ({+ limit: async () => [activeThread],+ orderBy: async () => rows,+ }),+ }),}));claimActiveAgentRunMock.mockResolvedValue(true);aiProvidersServiceMock.getRunnableById.mockResolvedValue({@@ -1254,7 +1268,8 @@ describe("agentService.messages.send", () => {.mockImplementationOnce(() => selectWhereResult([{ total: 4 }])).mockImplementationOnce(() =>selectOrderByResult([firstUserMessage, unresolvedAssistantMessage, legacyAnswerMessage, retryMessage]),- );+ )+ .mockImplementationOnce(() => selectOrderByResult([unresolvedAssistantMessage]));dbMock.insert.mockReturnValue({values: vi.fn(() => ({ returning: vi.fn(async () => [retryMessage]) })),diff --git a/packages/api/src/features/agent/service.ts b/packages/api/src/features/agent/service.tsindex cf707f63a..43aca245f 100644--- a/packages/api/src/features/agent/service.ts+++ b/packages/api/src/features/agent/service.ts@@ -42,6 +42,7 @@ import {findUserMessageRow,insertDraftAssistantMessage,nextMessageSequence,+ lockThreadMessages,proposedEditsOf,touchThread,upsertAssistantUiMessage,@@ -502,92 +503,90 @@ async function persistMessage(input: {return message;}-async function updateAssistantToolResultMessage(input: {+function updateAssistantToolResultMessage(input: {userId: string;threadId: string;message: UIMessage;contextScope?: string | undefined;}) {- const existingRows = await listThreadMessages({- threadId: input.threadId,- userId: input.userId,- });- const existingRow = existingRows.find((row) => row.role === "assistant" && toMessage(row).id === input.message.id);- if (!existingRow) {- throw new ORPCError("BAD_REQUEST", {- message: "The answered assistant message was not found.",- });- }- if (existingRows.at(-1)?.id !== existingRow.id) {- throw new ORPCError("CONFLICT", {- message: "This question is no longer the latest reply. Send a new message instead.",- });- }- const stored = toMessage(existingRow);- if (- input.contextScope &&- (stored.metadata as { contextScope?: string } | undefined)?.contextScope !== input.contextScope- )- throw new ORPCError("BAD_REQUEST", {- message: "Send a new message after removing context. Previous tool approvals cannot be continued.",- });-- const {- message: mergedMessage,- mergedCount,- alreadyResolvedCount,- resolvedQuestionCount,- idempotentQuestionCount,- pendingContinuationCount,- conflictingCount,- } = mergeClientToolResponses(stored, input.message);-- if (conflictingCount > 0) {- throw new ORPCError("BAD_REQUEST", {- message: "This approval was already answered with a different decision.",- });- }- // A recorded-but-unexecuted approval (pendingContinuationCount) proceeds: a prior continuation- // attempt failed after persisting the decision, and this retry is the recovery path. A question- // answer is recoverable the same way only for the exact same answer while its continuation row- // has not completed; completed, different or foreign answers stay rejected.- const sameAnswerRecovery =- existingRow.status !== "completed" &&- resolvedQuestionCount > 0 &&- idempotentQuestionCount === resolvedQuestionCount;- if (mergedCount === 0 && pendingContinuationCount === 0 && !sameAnswerRecovery) {- if (alreadyResolvedCount > 0) {+ return db.transaction(async (tx) => {+ const existingRows = await lockThreadMessages(tx, input);+ const existingRow = existingRows.find((row) => row.role === "assistant" && toMessage(row).id === input.message.id);+ if (!existingRow) {+ throw new ORPCError("BAD_REQUEST", {+ message: "The answered assistant message was not found.",+ });+ }+ // Lock order is by ID; continuation eligibility follows the conversation's chronological order.+ const latest = existingRows.toSorted((a, b) => a.sequence - b.sequence).at(-1);+ if (latest?.id !== existingRow.id) {throw new ORPCError("CONFLICT", {- message: "This response was already handled.",+ message: "This question is no longer the latest reply. Send a new message instead.",});}- throw new ORPCError("BAD_REQUEST", {- message: "No matching unanswered user question was found.",- });- }+ const stored = toMessage(existingRow);+ if (+ input.contextScope &&+ (stored.metadata as { contextScope?: string } | undefined)?.contextScope !== input.contextScope+ )+ throw new ORPCError("BAD_REQUEST", {+ message: "Send a new message after removing context. Previous tool approvals cannot be continued.",+ });- await db- .update(schema.agentMessage)- .set({- // The continuation run streams into this row; keep it non-terminal until onFinish marks it- // completed. That state is also what lets an identical-answer retry recover a failed provider.- status: "streaming",- uiMessage: mergedMessage as unknown as Record<string, unknown>,- })- .where(- and(- eq(schema.agentMessage.id, existingRow.id),- eq(schema.agentMessage.threadId, input.threadId),- eq(schema.agentMessage.userId, input.userId),- ),- );+ const {+ message: mergedMessage,+ mergedCount,+ alreadyResolvedCount,+ resolvedQuestionCount,+ idempotentQuestionCount,+ pendingContinuationCount,+ conflictingCount,+ } = mergeClientToolResponses(stored, input.message);++ if (conflictingCount > 0) {+ throw new ORPCError("BAD_REQUEST", {+ message: "This approval was already answered with a different decision.",+ });+ }+ // A recorded-but-unexecuted approval (pendingContinuationCount) proceeds: a prior continuation+ // attempt failed after persisting the decision, and this retry is the recovery path. Identical+ // question answers recover only while their continuation row is non-terminal.+ const sameAnswerRecovery =+ existingRow.status !== "completed" &&+ resolvedQuestionCount > 0 &&+ idempotentQuestionCount === resolvedQuestionCount;+ if (mergedCount === 0 && pendingContinuationCount === 0 && !sameAnswerRecovery) {+ if (alreadyResolvedCount > 0) {+ throw new ORPCError("CONFLICT", {+ message: "This response was already handled.",+ });+ }+ throw new ORPCError("BAD_REQUEST", {+ message: "No matching unanswered user question was found.",+ });+ }- await db- .update(schema.agentThread)- .set({ lastMessageAt: new Date() })- .where(and(eq(schema.agentThread.id, input.threadId), eq(schema.agentThread.userId, input.userId)));+ await tx+ .update(schema.agentMessage)+ .set({+ status: "streaming",+ uiMessage: mergedMessage as unknown as Record<string, unknown>,+ })+ .where(+ and(+ eq(schema.agentMessage.id, existingRow.id),+ eq(schema.agentMessage.threadId, input.threadId),+ eq(schema.agentMessage.userId, input.userId),+ ),+ );- return { message: mergedMessage, rowId: existingRow.id };+ await tx+ .update(schema.agentThread)+ .set({ lastMessageAt: new Date() })+ .where(and(eq(schema.agentThread.id, input.threadId), eq(schema.agentThread.userId, input.userId)));++ return { message: mergedMessage, rowId: existingRow.id };+ });}async function repairLegacyAskUserQuestionAnswers(@@ -595,44 +594,31 @@ async function repairLegacyAskUserQuestionAnswers(input: { threadId: string; userId: string },) {const nextRows = [...rows];- const updates: Promise<unknown>[] = [];for (let index = 0; index < nextRows.length - 1; index++) {const assistantRow = nextRows[index];const answerRow = nextRows[index + 1];-if (!assistantRow || !answerRow || assistantRow.role !== "assistant" || answerRow.role !== "user") continue;-- const assistantMessage = toMessage(assistantRow);- const toolCallId = getFirstUnansweredAskUserQuestionToolCallId(assistantMessage);const answer = messageText(toMessage(answerRow));- if (!toolCallId || !answer) continue;-- const mergedMessage = answerAskUserQuestionToolCall(assistantMessage, toolCallId, answer);- nextRows[index] = {- ...assistantRow,- uiMessage: mergedMessage as unknown as AgentMessageRecord["uiMessage"],- };-- updates.push(- db+ if (!answer || !getFirstUnansweredAskUserQuestionToolCallId(toMessage(assistantRow))) continue;+ await db.transaction(async (tx) => {+ const locked = await lockThreadMessages(tx, input);+ const current = locked.find((row) => row.id === assistantRow.id);+ if (!current) return;+ const toolCallId = getFirstUnansweredAskUserQuestionToolCallId(toMessage(current));+ if (!toolCallId) {+ nextRows[index] = current;+ return;+ }+ const message = answerAskUserQuestionToolCall(toMessage(current), toolCallId, answer);+ await tx.update(schema.agentMessage)- .set({- status: "completed",- uiMessage: mergedMessage as unknown as Record<string, unknown>,- })- .where(- and(- eq(schema.agentMessage.id, assistantRow.id),- eq(schema.agentMessage.threadId, input.threadId),- eq(schema.agentMessage.userId, input.userId),- ),- ),- );+ .set({ status: "completed", uiMessage: message as unknown as Record<string, unknown> })+ .where(and(eq(schema.agentMessage.id, current.id), eq(schema.agentMessage.userId, input.userId)));+ nextRows[index] = { ...current, uiMessage: message as unknown as AgentMessageRecord["uiMessage"] };+ });}- await Promise.all(updates);-return nextRows;}@@ -1612,34 +1598,33 @@ export const agentService = {assertAgentEnvironment();await getThread({ id: input.threadId, userId: input.userId });- const rows = await listThreadMessages({- threadId: input.threadId,- userId: input.userId,+ return db.transaction(async (tx) => {+ const rows = await lockThreadMessages(tx, input);+ const row = rows.find((candidate) => toMessage(candidate).id === input.messageId);+ if (!row) throw new ORPCError("NOT_FOUND");++ const statuses = new Map(input.edits.map((edit) => [edit.id, edit.status]));+ const message = withEditStatuses(toMessage(row), input.toolCallId, statuses);+ await tx+ .update(schema.agentMessage)+ .set({ uiMessage: message as never })+ .where(and(eq(schema.agentMessage.id, row.id), eq(schema.agentMessage.userId, input.userId)));++ const accepted = rows+ .map((candidate) => (candidate.id === row.id ? message : toMessage(candidate)))+ .flatMap(proposedEditsOf)+ .filter((edit) => edit.status === "accepted").length;+ const [thread] = await tx+ .update(schema.agentThread)+ .set({ editsAccepted: accepted })+ .where(and(eq(schema.agentThread.id, input.threadId), eq(schema.agentThread.userId, input.userId)))+ .returning({+ editsProposed: schema.agentThread.editsProposed,+ editsAccepted: schema.agentThread.editsAccepted,+ });+ if (!thread) throw new ORPCError("NOT_FOUND");+ return thread;});- const row = rows.find((candidate) => toMessage(candidate).id === input.messageId);- if (!row) throw new ORPCError("NOT_FOUND");-- const statuses = new Map(input.edits.map((edit) => [edit.id, edit.status]));- const message = withEditStatuses(toMessage(row), input.toolCallId, statuses);- await db- .update(schema.agentMessage)- .set({ uiMessage: message as never })- .where(and(eq(schema.agentMessage.id, row.id), eq(schema.agentMessage.userId, input.userId)));-- const accepted = rows- .map((candidate) => (candidate.id === row.id ? message : toMessage(candidate)))- .flatMap(proposedEditsOf)- .filter((edit) => edit.status === "accepted").length;- const [thread] = await db- .update(schema.agentThread)- .set({ editsAccepted: accepted })- .where(and(eq(schema.agentThread.id, input.threadId), eq(schema.agentThread.userId, input.userId)))- .returning({- editsProposed: schema.agentThread.editsProposed,- editsAccepted: schema.agentThread.editsAccepted,- });- if (!thread) throw new ORPCError("NOT_FOUND");- return thread;},},diff --git a/packages/api/src/features/cover-letters/service.integration.test.ts b/packages/api/src/features/cover-letters/service.integration.test.tsindex 4ee7ce518..ec031e720 100644--- a/packages/api/src/features/cover-letters/service.integration.test.ts+++ b/packages/api/src/features/cover-letters/service.integration.test.ts@@ -1,7 +1,6 @@import { randomUUID } from "node:crypto";import { readFile } from "node:fs/promises";import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vite-plus/test";-import { ORPCError } from "@orpc/client";import { createRouterClient } from "@orpc/server";import { drizzle } from "drizzle-orm/node-postgres";import { Pool } from "pg";@@ -15,20 +14,12 @@ vi.mock("@reactive-resume/db/client", () => ({get db() {return fixture.db;},+ getPool: () => fixture.pool,}));vi.mock("../../context", async () => {const { os } = await vi.importActual<typeof import("@orpc/server")>("@orpc/server");return { protectedProcedure: os.$context<{ user: { id: string } }>() };});-vi.mock("../resume/service", () => ({- resumeService: {- getById: async ({ id, userId }: { id: string; userId: string }) => {- const result = await getPool().query("SELECT id, data FROM resume WHERE id=$1 AND user_id=$2", [id, userId]);- if (!result.rows[0]) throw new ORPCError("NOT_FOUND");- return result.rows[0];- },- },-}));function getPool(): Pool {if (!fixture.pool) throw new Error("Test database is not initialized");@@ -50,7 +41,14 @@ describe.skipIf(!process.env.COVER_LETTER_TEST_DATABASE_URL)("cover-letter owned});fixture.db = drizzle({ client: fixture.pool });await fixture.pool.query(- `CREATE TABLE "user" (id text PRIMARY KEY); CREATE TABLE resume (id text PRIMARY KEY, user_id text, data jsonb); CREATE TABLE application (id text PRIMARY KEY, user_id text, company text NOT NULL DEFAULT '', contacts jsonb NOT NULL DEFAULT '[]', cover_letter_id text, updated_at timestamptz, resume_id text, status text DEFAULT 'saved', sent_resume_version_id text);`,+ `CREATE TABLE "user" (id text PRIMARY KEY); CREATE TABLE resume (id text PRIMARY KEY, user_id text, data jsonb,+ name text NOT NULL DEFAULT 'Resume', slug text NOT NULL DEFAULT 'resume', tags text[] NOT NULL DEFAULT '{}',+ is_public boolean NOT NULL DEFAULT false, show_download_buttons boolean NOT NULL DEFAULT true,+ show_in_search_engines boolean NOT NULL DEFAULT false, hide_contact_details boolean NOT NULL DEFAULT false,+ is_primary boolean NOT NULL DEFAULT false, is_locked boolean NOT NULL DEFAULT false, auto_name boolean NOT NULL DEFAULT false,+ trashed_at timestamptz, password text, application_id text, created_at timestamptz NOT NULL DEFAULT now(), updated_at timestamptz NOT NULL DEFAULT now());+ CREATE TABLE resume_version (id text PRIMARY KEY, resume_id text, user_id text, data jsonb, kind text, session_id text, name text, created_at timestamptz NOT NULL DEFAULT now());+ CREATE UNIQUE INDEX resume_version_session_unique ON resume_version(resume_id,session_id) WHERE kind='auto'; CREATE TABLE application (id text PRIMARY KEY, user_id text, company text NOT NULL DEFAULT '', contacts jsonb NOT NULL DEFAULT '[]', cover_letter_id text, updated_at timestamptz, resume_id text, status text DEFAULT 'saved', sent_resume_version_id text);`,);// The migrations that shape the letter tables, in order.for (const name of [@@ -75,6 +73,9 @@ describe.skipIf(!process.env.COVER_LETTER_TEST_DATABASE_URL)("cover-letter owned}}}+ await fixture.pool+ .query(`CREATE TABLE agent_threads (id text PRIMARY KEY, user_id text, working_resume_id text, cover_letter_id text, edits_accepted integer DEFAULT 0, updated_at timestamptz DEFAULT now());+ CREATE TABLE agent_messages (id text PRIMARY KEY, user_id text, thread_id text, role text DEFAULT 'assistant', status text DEFAULT 'streaming', sequence integer DEFAULT 0, error text, ui_message jsonb, created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now());`);service = (await import("./service")).coverLetterService;});afterAll(async () => {@@ -83,14 +84,277 @@ describe.skipIf(!process.env.COVER_LETTER_TEST_DATABASE_URL)("cover-letter ownedawait admin?.end();});beforeEach(async () => {- await getPool().query('TRUNCATE "user",resume,application,cover_letter CASCADE');+ await getPool().query(+ 'TRUNCATE "user",resume,resume_version,application,cover_letter,agent_threads,agent_messages CASCADE',+ );await getPool().query("INSERT INTO \"user\" VALUES ('alice'),('bob')");- await getPool().query("INSERT INTO resume VALUES ('alice-resume','alice',$1),('bob-resume','bob',$1)", [- defaultResumeData,- ]);+ await getPool().query(+ "INSERT INTO resume (id,user_id,data) VALUES ('alice-resume','alice',$1),('bob-resume','bob',$1)",+ [defaultResumeData],+ );await getPool().query("INSERT INTO application VALUES ('alice-app','alice'),('bob-app','bob')");});+ const proposing = (status: "accepted" | "pending" | "rejected") => ({+ id: "message",+ role: "assistant",+ parts: [+ {+ type: "tool-propose_edits",+ toolCallId: "call",+ state: "output-available",+ output: { edits: [{ id: "edit", status }] },+ },+ ],+ });+ async function proposalThread(+ id: string,+ owner: string,+ kind: "resume" | "letter",+ documentId: string,+ status: "accepted" | "pending" | "rejected" = "pending",+ ) {+ await getPool().query(+ `INSERT INTO agent_threads (id,user_id,working_resume_id,cover_letter_id) VALUES ($1,$2,$3,$4)`,+ [id, owner, kind === "resume" ? documentId : null, kind === "letter" ? documentId : null],+ );+ await getPool().query(`INSERT INTO agent_messages (id,user_id,thread_id,ui_message) VALUES ($1,$2,$3,$4)`, [+ id,+ owner,+ id,+ proposing(status),+ ]);+ }+ async function outcomes() {+ return (+ await getPool().query(+ `SELECT t.id,t.edits_accepted AS accepted,m.ui_message->'parts'->0->'output'->'edits'->0->>'status' AS status FROM agent_threads t JOIN agent_messages m ON m.thread_id=t.id ORDER BY t.id`,+ )+ ).rows;+ }++ it("serializes streamed message rewrites with document receipts at the actual PostgreSQL read barrier", async () => {+ await getPool().query(+ "ALTER TABLE agent_messages ADD COLUMN IF NOT EXISTS status text; ALTER TABLE agent_threads ADD COLUMN IF NOT EXISTS last_message_at timestamptz;",+ );+ const letter = await service.create({ userId: "alice", name: "Concurrent receipt", content: "<p>Old</p>" });+ await proposalThread("streaming", "alice", "letter", letter.id);+ const { upsertAssistantUiMessage } = await import("../agent/messages-persistence");+ let release!: () => void;+ const paused = new Promise<void>((resolve) => {+ release = resolve;+ });+ let read!: () => void;+ const captured = new Promise<void>((resolve) => {+ read = resolve;+ });+ // Pause only after the real SELECT executes. The production transaction must still hold its locks.+ let intercepted = false;+ const instrument = (target: object): object =>+ new Proxy(target, {+ get(target, key, receiver) {+ const value = Reflect.get(target, key, receiver);+ if (key === "transaction")+ return (callback: (tx: object) => Promise<unknown>) =>+ value.call(target, (tx: object) => callback(instrument(tx)));+ if (key === "select" || key === "from" || key === "where" || key === "orderBy" || key === "for")+ return (...args: unknown[]) => instrument(value.apply(target, args));+ if (key === "then")+ return (resolve: (rows: unknown) => void, reject: (error: unknown) => void) =>+ value.call(+ target,+ async (rows: unknown) => {+ if (!intercepted) {+ intercepted = true;+ read();+ await paused;+ }+ resolve(rows);+ },+ reject,+ );+ return typeof value === "function" ? value.bind(target) : value;+ },+ });+ const database = fixture.db;+ if (!database) throw new Error("Missing database");+ const writing = upsertAssistantUiMessage(+ {+ userId: "alice",+ threadId: "streaming",+ rowId: "streaming",+ message: proposing("pending") as never,+ status: "completed",+ },+ instrument(database) as never,+ );+ await captured;+ let committed = false;+ const saving = service+ .update({+ userId: "alice",+ id: letter.id,+ expectedRevision: letter.revision,+ content: "<p>New</p>",+ proposalApplications: { edit: true },+ })+ .then((result) => {+ committed = true;+ return result;+ });+ let blocked = false;+ try {+ for (let attempt = 0; attempt < 100 && !committed && !blocked; attempt++) {+ const result = await getPool().query(+ "SELECT EXISTS (SELECT 1 FROM pg_stat_activity WHERE datname = current_database() AND cardinality(pg_blocking_pids(pid)) > 0) AS blocked",+ );+ blocked = result.rows[0].blocked;+ }+ } finally {+ release();+ }+ await Promise.all([writing, saving]);+ expect(blocked).toBe(true);+ expect(await outcomes()).toEqual([{ id: "streaming", accepted: 1, status: "accepted" }]);+ expect((await service.getById({ userId: "alice", id: letter.id })).content).toBe("<p>New</p>");+ });++ it("atomically saves letter acceptance/Undo/Redo while isolating users, documents and explicit rejection", async () => {+ const letter = await service.create({ userId: "alice", name: "Assistant letter", content: "<p>Original</p>" });+ await proposalThread("own", "alice", "letter", letter.id);+ await proposalThread("other-document", "alice", "letter", "other");+ await proposalThread("other-user", "bob", "letter", letter.id);+ await proposalThread("resume", "alice", "resume", letter.id);+ await proposalThread("rejected", "alice", "letter", letter.id, "rejected");+ const accepted = await service.update({+ userId: "alice",+ id: letter.id,+ expectedRevision: letter.revision,+ content: "<p>Rewritten</p>",+ proposalApplications: { edit: true },+ });+ expect(await outcomes()).toEqual([+ { id: "other-document", accepted: 0, status: "pending" },+ { id: "other-user", accepted: 0, status: "pending" },+ { id: "own", accepted: 1, status: "accepted" },+ { id: "rejected", accepted: 0, status: "rejected" },+ { id: "resume", accepted: 0, status: "pending" },+ ]);+ const undone = await service.update({+ userId: "alice",+ id: letter.id,+ expectedRevision: accepted.revision,+ content: "<p>Original</p>",+ proposalApplications: { edit: false },+ });+ expect((await outcomes()).find((row) => row.id === "own")).toMatchObject({ accepted: 0, status: "pending" });+ await service.update({+ userId: "alice",+ id: letter.id,+ expectedRevision: undone.revision,+ content: "<p>Rewritten</p>",+ proposalApplications: { edit: true },+ });+ expect((await outcomes()).find((row) => row.id === "own")).toMatchObject({ accepted: 1, status: "accepted" });+ await expect(+ service.update({+ userId: "alice",+ id: letter.id,+ expectedRevision: accepted.revision,+ content: "<p>Stale</p>",+ proposalApplications: { edit: false },+ }),+ ).rejects.toMatchObject({ code: "CONFLICT" });+ expect((await outcomes()).find((row) => row.id === "own")).toMatchObject({ accepted: 1, status: "accepted" });+ });++ it("rolls back letter content and revision if proposal synchronization fails", async () => {+ const letter = await service.create({ userId: "alice", name: "Atomic letter", content: "<p>Original</p>" });+ await proposalThread("own", "alice", "letter", letter.id);+ await getPool()+ .query(`CREATE FUNCTION reject_proposal_update() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN RAISE EXCEPTION 'simulated status storage failure'; END $$;+ CREATE TRIGGER reject_proposal_update BEFORE UPDATE ON agent_messages FOR EACH ROW EXECUTE FUNCTION reject_proposal_update();`);+ try {+ await expect(+ service.update({+ userId: "alice",+ id: letter.id,+ expectedRevision: letter.revision,+ content: "<p>Rewritten</p>",+ proposalApplications: { edit: true },+ }),+ ).rejects.toThrow();+ expect(await service.getById({ userId: "alice", id: letter.id })).toMatchObject({+ content: "<p>Original</p>",+ revision: letter.revision,+ });+ expect(await outcomes()).toEqual([{ id: "own", accepted: 0, status: "pending" }]);+ } finally {+ await getPool().query(+ "DROP TRIGGER reject_proposal_update ON agent_messages; DROP FUNCTION reject_proposal_update()",+ );+ }+ });++ it("persists resume acceptance, Undo and Redo through the real router with the saved document", async () => {+ const { crudRouter } = await import("../resume/crud");+ const { resumeService } = await import("../resume/service");+ const client = createRouterClient(crudRouter, { context: { user: { id: "alice" } } as never });+ await proposalThread("own", "alice", "resume", "alice-resume");+ let current = { ...(await resumeService.getById({ id: "alice-resume", userId: "alice" })) };+ for (const [applied, content] of [+ [true, "<p>Original</p><p>Added</p>"],+ [false, "<p>Original</p>"],+ [true, "<p>Original</p><p>Added</p>"],+ ] as const) {+ const data = structuredClone(current.data);+ data.summary.content = content;+ const saved = await client.update({+ id: current.id,+ data,+ expectedUpdatedAt: current.updatedAt,+ proposalApplications: { edit: applied },+ });+ current = { ...current, ...saved };+ expect((await resumeService.getById({ id: current.id, userId: "alice" })).data.summary.content).toBe(content);+ expect(await outcomes()).toEqual([+ { id: "own", accepted: applied ? 1 : 0, status: applied ? "accepted" : "pending" },+ ]);+ }+ });++ it("synchronizes only the owned resume's threads inside the caller transaction", async () => {+ const { saveProposalApplications } = await import("../agent/proposal-applications");+ await proposalThread("own", "alice", "resume", "alice-resume");+ await proposalThread("bob", "bob", "resume", "alice-resume");+ await proposalThread("different", "alice", "resume", "other-resume");+ await proposalThread("letter", "alice", "letter", "alice-resume");+ await fixture.db?.transaction(async (tx) => {+ await saveProposalApplications(tx, {+ userId: "alice",+ document: { kind: "resume", id: "alice-resume" },+ applications: { edit: true },+ });+ });+ expect(await outcomes()).toEqual([+ { id: "bob", accepted: 0, status: "pending" },+ { id: "different", accepted: 0, status: "pending" },+ { id: "letter", accepted: 0, status: "pending" },+ { id: "own", accepted: 1, status: "accepted" },+ ]);+ await expect(+ fixture.db?.transaction(async (tx) => {+ await saveProposalApplications(tx, {+ userId: "alice",+ document: { kind: "resume", id: "alice-resume" },+ applications: { edit: false },+ });+ throw new Error("rollback");+ }),+ ).rejects.toThrow("rollback");+ expect((await outcomes()).find((row) => row.id === "own")).toMatchObject({ accepted: 1, status: "accepted" });+ });+it("persists one shared document and atomically rejects stale writers and deletes", async () => {const created = await service.create({ userId: "alice", name: "Draft", content: "<p>First</p>" });const saved = await service.update({diff --git a/packages/api/src/features/cover-letters/service.ts b/packages/api/src/features/cover-letters/service.tsindex d2663dc37..b6c409e8c 100644--- a/packages/api/src/features/cover-letters/service.ts+++ b/packages/api/src/features/cover-letters/service.ts@@ -20,6 +20,7 @@ import {import { resumeDataSchema } from "@reactive-resume/schema/resume/data";import { defaultResumeData } from "@reactive-resume/schema/resume/default";import { coverLetterDto } from "../../dto/cover-letter";+import { saveProposalApplications } from "../agent/proposal-applications";import { lockUser } from "../documents/ownership";import { resumeService } from "../resume/service";import { sanitizeCoverLetterHtml } from "./html";@@ -361,6 +362,11 @@ export const coverLetterService = {const persist = async (client: DbOrTx) => {const updated = await updateRevision(input, changes, client);+ await saveProposalApplications(client, {+ userId: input.userId,+ document: { kind: "letter", id: input.id },+ applications: input.proposalApplications,+ });if (input.applicationId !== undefined) {await linkLetterApplication(client, {userId: input.userId,@@ -373,7 +379,7 @@ export const coverLetterService = {return updated;};const updated = await resolveLinks(- await (input.applicationId === undefined+ await (input.applicationId === undefined && !input.proposalApplications? persist(db): db.transaction(async (tx) => {await lockUser(tx, input.userId);diff --git a/packages/api/src/features/resume/crud.ts b/packages/api/src/features/resume/crud.tsindex 2d29eb6bd..e5956b116 100644--- a/packages/api/src/features/resume/crud.ts+++ b/packages/api/src/features/resume/crud.ts@@ -160,6 +160,7 @@ export const crudRouter = {...(input.name !== undefined ? { name: input.name } : {}),...(input.sessionId !== undefined ? { sessionId: input.sessionId } : {}),...(input.expectedUpdatedAt !== undefined ? { expectedUpdatedAt: input.expectedUpdatedAt } : {}),+ ...(input.proposalApplications !== undefined ? { proposalApplications: input.proposalApplications } : {}),...(input.slug !== undefined ? { slug: input.slug } : {}),...(input.tags !== undefined ? { tags: input.tags } : {}),...(input.data !== undefined ? { data: input.data } : {}),diff --git a/packages/api/src/features/resume/service.test.ts b/packages/api/src/features/resume/service.test.tsindex ae0089e2b..fb1f2bf23 100644--- a/packages/api/src/features/resume/service.test.ts+++ b/packages/api/src/features/resume/service.test.ts@@ -9,6 +9,8 @@ const dbMock = vi.hoisted(() => ({transaction: vi.fn(),update: vi.fn(),}));+const proposalApplicationsMock = vi.hoisted(() => vi.fn(async () => undefined));+vi.mock("../agent/proposal-applications", () => ({ saveProposalApplications: proposalApplicationsMock }));const compareMock = vi.hoisted(() => vi.fn());const publishResumeUpdatedMock = vi.hoisted(() => vi.fn());const grantResumeAccessMock = vi.hoisted(() => vi.fn());@@ -180,6 +182,7 @@ const createRestoreHarness = (currentData: ResumeData, restoredData: ResumeData)beforeEach(() => {dbMock.select.mockReset();+ proposalApplicationsMock.mockClear();dbMock.transaction.mockReset();dbMock.update.mockReset();compareMock.mockReset();@@ -265,6 +268,23 @@ describe("update", () => {},);+ it("sends metadata-only Undo decisions through the same version-guarded transaction", async () => {+ const updatedAt = new Date("2026-10-17T10:00:00.123Z");+ const { tx, update } = updateHarness({ slug: "resume", updatedAt });+ await resumeService.update({+ id: "r1",+ userId: "u1",+ expectedUpdatedAt: updatedAt,+ proposalApplications: { edit: false },+ });+ expect(update.set).toHaveBeenCalledWith({ updatedAt: expect.any(Date) });+ expect(proposalApplicationsMock).toHaveBeenCalledWith(tx, {+ userId: "u1",+ document: { kind: "resume", id: "r1" },+ applications: { edit: false },+ });+ });+it("keeps the old address as a redirect when the slug changes", async () => {const { tx, update } = updateHarness({ slug: "old-address" });diff --git a/packages/api/src/features/resume/service.ts b/packages/api/src/features/resume/service.tsindex 8cf543da2..134d53336 100644--- a/packages/api/src/features/resume/service.ts+++ b/packages/api/src/features/resume/service.ts@@ -1,6 +1,7 @@import type { ResumeUpdatedEvent } from "./events";import type { DbOrTx } from "@reactive-resume/db/client";import type { JsonPatchOperation } from "@reactive-resume/resume/patch";+import type { ProposalApplications } from "@reactive-resume/resume/proposals";import type { ResumeData } from "@reactive-resume/schema/resume/data";import type { Locale } from "@reactive-resume/utils/locale";import { ORPCError } from "@orpc/client";@@ -15,6 +16,7 @@ import { defaultResumeData } from "@reactive-resume/schema/resume/default";import { isValidSlug } from "@reactive-resume/schema/resume/slug";import { generateId } from "@reactive-resume/utils/string";import { consumeResumePasswordLimit } from "../../middleware/rate-limit";+import { saveProposalApplications } from "../agent/proposal-applications";import { adoptEmbeddedLetters } from "../cover-letters/embedded";import { lockUser } from "../documents/ownership";import { enqueueStorageCleanup, reportStorageCleanupSummary, runStorageCleanup } from "../storage/cleanup";@@ -649,6 +651,7 @@ export const resumeService = {skipAutoSnapshot?: boolean;/** The editor visit this save belongs to; its autosaves share one version. */sessionId?: string;+ proposalApplications?: ProposalApplications;}) => {const resume = await db.transaction(async (tx) => {@@ -698,6 +701,9 @@ export const resumeService = {? normalizedData.basics.headline.trim().slice(0, 100) || undefined: undefined;const updateData: Partial<typeof schema.resume.$inferSelect> = {+ ...(input.proposalApplications && Object.keys(input.proposalApplications).length+ ? { updatedAt: new Date() }+ : {}),...(input.name !== undefined ? { name: input.name, autoName: false } : {}),...(followedName ? { name: followedName } : {}),...(input.slug !== undefined ? { slug: input.slug } : {}),@@ -736,6 +742,11 @@ export const resumeService = {.returning(resumeColumns);if (!updated) throw new ORPCError("NOT_FOUND");+ await saveProposalApplications(tx, {+ userId: input.userId,+ document: { kind: "resume", id: input.id },+ applications: input.proposalApplications,+ });return updated;}).catch((error: unknown) => {diff --git a/packages/resume/src/proposals.test.ts b/packages/resume/src/proposals.test.tsindex afb587778..0e7664d34 100644--- a/packages/resume/src/proposals.test.ts+++ b/packages/resume/src/proposals.test.ts@@ -1,10 +1,130 @@+import type { Proposal } from "./proposals";import { describe, expect, it } from "vite-plus/test";import { experienceItemSchema } from "@reactive-resume/schema/resume/data";import { defaultResumeData } from "@reactive-resume/schema/resume/default";-import { additionAfter, applyProposal, applyTo, collectLetterPassages, collectPassages, readTarget } from "./proposals";+import {+ additionAfter,+ acknowledgeProposalApplications,+ applyProposal,+ applyProposals,+ applyTo,+ collectLetterPassages,+ collectPassages,+ getProposalState,+ getStateIn,+ readTarget,+ replaceBlockText,+ writeTarget,+} from "./proposals";const labels = { body: "Letter", bullet: (n: number) => `bullet ${n}`, paragraph: (n: number) => `paragraph ${n}` };+const proposal = (before: string, after: string): Proposal => ({+ id: after,+ target: { sectionId: "summary", field: "content" },+ location: "Summary",+ before,+ after,+ why: "Clearer",+ status: "pending",+ source: "assistant",+});++it("keeps accepted identity through refinements and quote normalization without inferring unrelated acceptance", () => {+ const edit = proposal("<p>Old</p>", "<p>New</p>");+ const addition = proposal("<p>Old</p>", "<p>Old</p><p>Mentored two designers</p>");+ for (const accepted of [edit, addition]) {+ expect(getStateIn("<p>Manually refined</p>", { ...accepted, status: "accepted" })).toBe("accepted");+ expect(getStateIn("<p>Manually refined</p>", accepted, { [accepted.id]: true })).toBe("accepted");+ expect(getStateIn("<p>Old</p>", { ...accepted, status: "accepted" }, { [accepted.id]: false })).toBe("pending");+ }+ expect(getStateIn("<p>Old</p><p>Elsewhere</p><p>Mentored two designers</p>", addition)).toBe("pending");+ expect(getStateIn("<p>Changed</p>", addition)).toBe("stale");+});++it("applies quote-normalized originals safely without equating escaped markup to tags", () => {+ const edit = proposal("<p>They've said "yes".</p>", "<p>They've delivered.</p>");+ const value = `<p>They've said "yes".</p>`;+ expect(getStateIn(value, edit)).toBe("pending");+ expect(applyTo(value, edit)).toBe("<p>They've delivered.</p>");+ const addition = { ...edit, after: `${edit.before}<p>Added</p>` };+ expect(applyTo(value, addition)).toBe(`${value}<p>Added</p>`);+ expect(+ applyTo("<p><b>Claim</b></p>", { before: "<p><b>Claim</b></p>", after: "<p>Wrong</p>" }),+ ).toBeUndefined();+ expect(applyTo(`${value}${edit.before}`, edit)).toBeUndefined();+ expect(+ applyTo(`<p title='a>b"c'>Old</p>`, { before: `<p title='a>b"c'>Old</p>`, after: "<p>Wrong target</p>" }),+ ).toBeUndefined();+});++it("preserves proposal order, places additions before rewriting their anchor, and cannot accept the same IDs twice", () => {+ let content = "<ul><li><p>Old</p></li></ul>";+ const before = "<p>Old</p></li>";+ const first = proposal(before, `${before}<li><p>First</p></li>`);+ const second = proposal(before, `${before}<li><p>Second</p></li>`);+ const rewrite = proposal("<p>Old</p>", "<p>Rewritten</p>");+ const edits = [rewrite, first, second];+ const applications: Record<string, boolean> = {};+ const accept = () => {+ const result = applyProposals(+ edits,+ () => content,+ (_, value) => {+ content = value;+ },+ applications,+ );+ for (const edit of result.applied) applications[edit.id] = true;+ return result;+ };+ expect(accept()).toEqual({ applied: edits, stale: [] });+ expect(content).toBe("<ul><li><p>Rewritten</p></li><li><p>First</p></li><li><p>Second</p></li></ul>");+ content = "<ul><li><p>Refined anchor</p></li><li><p>Refined first</p></li><li><p>Second</p></li></ul>";+ expect(accept()).toEqual({ applied: [], stale: [] });+ expect(edits.map((edit) => getStateIn(content, edit, applications))).toEqual(["accepted", "accepted", "accepted"]);+});++it("reports real failures and does not infer application from identical text elsewhere", () => {+ const data = structuredClone(defaultResumeData);+ data.summary.content = "<p>Old</p><p>Elsewhere</p><p>Added</p>";+ const addition = proposal("<p>Old</p>", "<p>Old</p><p>Added</p>");+ const rewrite = proposal("<p>Old</p>", "<p>Rewritten</p>");+ const conflict = proposal("<p>Old</p>", "<p>Conflict</p>");+ const stale = proposal("<p>Gone</p>", "<p>New</p>");+ expect(+ applyProposals(+ [rewrite, addition, conflict, stale],+ (target) => readTarget(data, target),+ (target, value) => writeTarget(data, target, value),+ ),+ ).toEqual({ applied: [rewrite, addition], stale: [conflict, stale] });+ expect(data.summary.content).toBe("<p>Rewritten</p><p>Added</p><p>Elsewhere</p><p>Added</p>");+});++it("refuses missing or ambiguous targets and no-op proposals without reporting writes", () => {+ for (const value of [undefined, "<p>Changed</p>", "<p>Old</p><p>Old</p>"]) {+ const edit = proposal("<p>Old</p>", "<p>New</p>");+ expect(+ applyProposals(+ [edit],+ () => value,+ () => {+ throw new Error("Unexpected write");+ },+ ),+ ).toEqual({ applied: [], stale: [edit] });+ }+ const data = structuredClone(defaultResumeData);+ const missing = {+ ...proposal("", "<p>New</p>"),+ target: { sectionId: "experience", itemId: "deleted", field: "description" },+ };+ expect(getProposalState(data, missing)).toBe("stale");+ expect(applyProposal(data, missing)).toBe(false);+ expect(applyTo("", { before: "", after: "" })).toBeUndefined();+});+it("rejects ambiguous paragraphs instead of replacing the first occurrence", () => {const value = "<p>Repeated claim.</p><p>Different middle.</p><p>Repeated claim.</p>";expect(applyTo(value, { before: "<p>Repeated claim.</p>", after: "<p>Changed</p>" })).toBeUndefined();@@ -109,3 +229,33 @@ describe("collectLetterPassages", () => {expect(applyTo("", { before: "", after: "<p>Dear team</p>" })).toBe("<p>Dear team</p>");});});++it("counts one real write for duplicate serializer-only proposals and marks normalized no-ops out of date", () => {+ let content = `<p>They've said "yes".</p>`;+ const before = content;+ const after = replaceBlockText(before, `They've said "yes".`);+ const first = { ...proposal(before, after), id: "first" };+ const second = { ...first, id: "second" };+ let writes = 0;+ const result = applyProposals(+ [first, second],+ () => content,+ (_, next) => {+ if (next !== content) writes++;+ content = next;+ },+ );+ expect(writes).toBe(1);+ expect(result.applied).toEqual([first]);+ expect(result.stale).toEqual([second]);+ expect(getStateIn(content, second)).toBe("stale");+ expect(applyTo(content, second)).toBeUndefined();+});++it("does not acknowledge a newer Undo/Redo decision with an older save response", () => {+ expect(acknowledgeProposalApplications({ edit: false, later: true }, { edit: true })).toEqual({+ edit: false,+ later: true,+ });+ expect(acknowledgeProposalApplications({ edit: false, later: true }, { edit: false })).toEqual({ later: true });+});diff --git a/packages/resume/src/proposals.ts b/packages/resume/src/proposals.tsindex 2bb8d6fa6..17a18e125 100644--- a/packages/resume/src/proposals.ts+++ b/packages/resume/src/proposals.ts@@ -63,39 +63,120 @@ export function writeTarget(draft: ResumeData, target: ProposalTarget, value: stif (entry) entry[target.field] = value;}-/** A pending proposal can be applied only while its passage is still in the text, word for word. */-export function canApplyTo(value: string | undefined, { before }: Pick<Proposal, "before">) {- if (value === undefined) return false;- if (!before) return value === "";- const index = value.indexOf(before);- return index >= 0 && value.indexOf(before, index + 1) < 0;+/** Acceptance decisions travel with draft history, separately from authored document data. */+export type ProposalApplications = Readonly<Record<string, boolean>>;+export type ProposalSnapshot<T> = { data: T; applications: ProposalApplications };++/** Recovery data is untrusted; only own boolean decisions are restored. */+export function readProposalApplications(value: unknown): ProposalApplications {+ if (!value || typeof value !== "object" || Array.isArray(value)) return {};+ return Object.fromEntries(+ Object.entries(value).filter(([id, applied]) => id.length > 0 && id.length <= 128 && typeof applied === "boolean"),+ );}+/** Keep decisions made while a save was in flight; acknowledge only the submitted values. */+export const acknowledgeProposalApplications = (+ pending: ProposalApplications,+ submitted: ProposalApplications,+): ProposalApplications =>+ Object.fromEntries(Object.entries(pending).filter(([id, applied]) => submitted[id] !== applied));++export const queueProposalApplications = (+ previous: ProposalApplications,+ next: ProposalApplications,+ pending: ProposalApplications,+): ProposalApplications => ({+ ...pending,+ ...Object.fromEntries(Object.entries(next).filter(([id, applied]) => previous[id] !== applied)),+});++/** IDs absent from an older checkpoint were explicitly undone; normal edits never call this. */+export const restoreProposalApplications = (+ current: ProposalApplications,+ snapshot: ProposalApplications,+): ProposalApplications => ({+ ...Object.fromEntries(Object.keys(current).map((id) => [id, false])),+ ...snapshot,+});++export function proposalStatus(proposal: Proposal, applications: ProposalApplications = {}): Proposal["status"] {+ if (proposal.status === "rejected") return "rejected";+ const applied = applications[proposal.id];+ return typeof applied !== "boolean" ? proposal.status : applied ? "accepted" : "pending";+}++// TipTap serializes text-node quotes literally. Canonicalize only quotes in text, retaining source offsets and+// keeping escaped markup distinct from real tags. Other structure still has to match exactly.+function quoteNormalized(html: string) {+ let text = "";+ const offsets: number[] = [];+ let inTag = false;+ let attributeQuote: string | undefined;+ for (let index = 0; index < html.length; index++) {+ const char = html[index] ?? "";+ if (!inTag && char === "<") inTag = true;+ else if (inTag) {+ if (attributeQuote) {+ if (char === attributeQuote) attributeQuote = undefined;+ } else if (char === '"' || char === "'") attributeQuote = char;+ else if (char === ">") inTag = false;+ }+ const entity =+ !inTag && char === "&" ? /^&(?:apos|quot|#0*(?:34|39)|#x0*(?:22|27));/i.exec(html.slice(index))?.[0] : undefined;+ offsets.push(index);+ text += entity ? decodeEntities(entity) : char;+ if (entity) index += entity.length - 1;+ }+ offsets.push(html.length);+ return { text, offsets };+}++function passageRange(value: string | undefined, before: string): { start: number; end: number } | undefined {+ if (value === undefined) return undefined;+ if (!before) return value === "" ? { start: 0, end: 0 } : undefined;+ const actual = quoteNormalized(value);+ const expected = quoteNormalized(before).text;+ const start = actual.text.indexOf(expected);+ if (start < 0 || actual.text.indexOf(expected, start + 1) >= 0) return undefined;+ return { start: actual.offsets[start] ?? 0, end: actual.offsets[start + expected.length] ?? value.length };+}++/** A pending proposal requires one unambiguous original passage; equivalent text-node quotes are allowed. */+export const canApplyTo = (value: string | undefined, { before }: Pick<Proposal, "before">) =>+ passageRange(value, before) !== undefined;export const canApply = (data: ResumeData, proposal: Proposal) =>canApplyTo(readTarget(data, proposal.target), proposal);-/**- * What a proposal shows as, given the text it targets. Pending ones whose passage has changed are out of date;- * accepted ones whose edit was undone (the passage is back, the new text gone) are pending again.- */-export function getStateIn(value: string, proposal: Proposal): ProposalState {- if (proposal.status === "rejected") return "rejected";- if (proposal.status === "accepted")- return canApplyTo(value, proposal) && !value.includes(proposal.after) ? "pending" : "accepted";- return canApplyTo(value, proposal) ? "pending" : "stale";+/** Recorded acceptance survives refinements and normalization. Text is placement evidence, never acceptance proof. */+export function getStateIn(+ value: string | undefined,+ proposal: Proposal,+ applications: ProposalApplications = {},+): ProposalState {+ const status = proposalStatus(proposal, applications);+ if (status !== "pending") return status;+ return applyTo(value, proposal) !== undefined ? "pending" : "stale";}+export const getProposalState = (+ data: ResumeData,+ proposal: Proposal,+ applications: ProposalApplications = {},+): ProposalState => getStateIn(readTarget(data, proposal.target), proposal, applications);-export const getProposalState = (data: ResumeData, proposal: Proposal): ProposalState =>- getStateIn(readTarget(data, proposal.target) ?? "", proposal);--/** The text with `after` in place of `before`, or `undefined` when the proposal is out of date. */+/** The text with `after` in place of the unique original passage, or undefined when it cannot be placed. */export function applyTo(value: string | undefined, proposal: Pick<Proposal, "before" | "after">) {- if (value === undefined || !canApplyTo(value, proposal)) return undefined;- // A replacer function, so "$&" or "$1" in the new text stay literal.- return value.replace(proposal.before, () => proposal.after);+ if (value === undefined || proposal.before === proposal.after) return undefined;+ const range = passageRange(value, proposal.before);+ if (!range) return undefined;+ // For additions, preserve the live anchor's serialization instead of putting model-era HTML back.+ const after = proposal.after.startsWith(proposal.before)+ ? value.slice(range.start, range.end) + proposal.after.slice(proposal.before.length)+ : proposal.after;+ const next = value.slice(0, range.start) + after + value.slice(range.end);+ return next === value ? undefined : next;}-/** Puts `after` in place of `before`. Returns false (changing nothing) when the proposal is out of date. */export function applyProposal(draft: ResumeData, proposal: Proposal): boolean {const next = applyTo(readTarget(draft, proposal.target), proposal);if (next === undefined) return false;@@ -103,6 +184,35 @@ export function applyProposal(draft: ResumeData, proposal: Proposal): boolean {return true;}+export type ProposalApplicationResult = { applied: Proposal[]; stale: Proposal[] };+const isAddition = ({ before, after }: Proposal) => after.startsWith(before) && after.length > before.length;++/** Additions first (backwards at a shared anchor, yielding proposal order), then rewrites. Record only real writes. */+export function applyProposals(+ proposals: readonly Proposal[],+ read: (target: ProposalTarget) => string | undefined,+ write: (target: ProposalTarget, value: string) => void,+ applications: ProposalApplications = {},+): ProposalApplicationResult {+ const unique = [...new Map(proposals.map((proposal) => [proposal.id, proposal])).values()];+ const applied = new Set<string>();+ const stale = new Set<string>();+ const ordered = [...unique.filter(isAddition).reverse(), ...unique.filter((proposal) => !isAddition(proposal))];+ for (const proposal of ordered) {+ if (applied.has(proposal.id) || proposalStatus(proposal, applications) !== "pending") continue;+ const next = applyTo(read(proposal.target), proposal);+ if (next === undefined) stale.add(proposal.id);+ else {+ write(proposal.target, next);+ applied.add(proposal.id);+ }+ }+ return {+ applied: unique.filter((proposal) => applied.has(proposal.id)),+ stale: unique.filter((proposal) => stale.has(proposal.id)),+ };+}+const BLOCK = /^(<(p|li)(?:\s[^>]*)?>)([\s\S]*)(<\/\2>)$/i;/** A block's opening tag, contents and closing tag; `undefined` for anything else. */diff --git a/tests/e2e/fixtures/ai-stub.ts b/tests/e2e/fixtures/ai-stub.tsindex 5486fee56..23c2db79c 100644--- a/tests/e2e/fixtures/ai-stub.ts+++ b/tests/e2e/fixtures/ai-stub.ts@@ -142,6 +142,21 @@ function reply(request: ChatRequest, response: ServerResponse) {}const passage =lastToolName === readTool ? result.data?.passages?.find((item) => item.text && item.text !== "(empty)") : undefined;+ if (passage && said.includes("overlapping"))+ return streamToolCall(response, "propose_edits", {+ title: "Overlapping passage edits",+ edits: [+ { passageId: passage.id, text: "Rewritten audit passage.", why: "Clarify the original." },+ { passageId: passage.id, text: "Mentored two junior designers.", why: "Retain the first addition.", add: true },+ {+ passageId: passage.id,+ text: "Introduced accessibility reviews.",+ why: "Retain the second addition.",+ add: true,+ },+ { passageId: passage.id, text: "A conflicting rewrite.", why: "Conflicts with the first rewrite." },+ ],+ });if (passage)return streamToolCall(response, "propose_edits", {title: "Tighten the first passage",diff --git a/tests/e2e/specs/assistant.spec.ts b/tests/e2e/specs/assistant.spec.tsindex c22e11d28..f2ef1ae93 100644--- a/tests/e2e/specs/assistant.spec.ts+++ b/tests/e2e/specs/assistant.spec.ts@@ -81,3 +81,35 @@ test("proposes edits that change nothing until accepted, asks before assuming, aawait expect(page.getByText("Stopped. No edits were proposed.")).toBeVisible();await expect(page.getByRole("button", { name: "Continue" })).toBeVisible();});++test("Accept all preserves overlapping additions and reports the rewrite it cannot place", async ({+ authPage: page,+}, testInfo) => {+ test.setTimeout(90_000);+ await createSampleResumeFromDashboard(page, testInfo);+ const resumeId = resumeIdOf(page);+ await page.getByRole("button", { name: "Assistant", exact: true }).click();+ await connectStub(page);+ await send(page, "Propose overlapping edits");+ const edits = page.getByRole("list", { name: "Proposed edits" });+ await expect(edits).toBeVisible({ timeout: 20_000 });+ await page.getByRole("button", { name: "Accept all", exact: true }).click();+ await expect(edits.getByText("Applied", { exact: true })).toHaveCount(3);+ await expect(edits.getByText("Out of date: the text has changed since.", { exact: true })).toHaveCount(1);+ await expect(page.getByText("3 of 4 applied", { exact: true })).toBeVisible();+ await expect+ .poll(() => resumeJson(page, resumeId), { timeout: 15_000 })+ .toContain("Introduced accessibility reviews.");+ const saved = await resumeJson(page, resumeId);+ for (const text of [+ "Rewritten audit passage.",+ "Mentored two junior designers.",+ "Introduced accessibility reviews.",+ ])+ expect(saved.split(text)).toHaveLength(2);+ expect(saved).not.toContain("A conflicting rewrite.");+ await page.reload();+ await page.getByRole("button", { name: "Assistant", exact: true }).click();+ await expect(page.getByText("3 of 4 applied", { exact: true })).toBeVisible({ timeout: 20_000 });+ await expect(page.getByRole("list", { name: "Proposed edits" }).getByText("Applied", { exact: true })).toHaveCount(3);+});