The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(i18n): add interrupted turn notice strings
Steven Enamakel2459a408b783
diff --git a/app/src/features/conversations/aui/InterruptedTurnNotice.tsx b/app/src/features/conversations/aui/InterruptedTurnNotice.tsxnew file mode 100644index 0000000000..783c4b47a2--- /dev/null+++ b/app/src/features/conversations/aui/InterruptedTurnNotice.tsx@@ -0,0 +1,46 @@+/**+ * End-of-transcript marker for a turn that was cut off — the core crashed or+ * restarted mid-reply — rather than stopped by the user (that is+ * `StoppedRunSlot`). `chatRuntime.interruptedAssistantByThread` is hydrated+ * from the turn-state snapshot with whatever partial text the turn had+ * streamed; without this the partial was recorded and never shown, so a+ * crashed turn looked like it had simply never answered.+ *+ * Styled like the stopped-run element so the two read as siblings. It+ * disappears on its own when a new turn starts (the slice clears the entry).+ */+import { useT } from '../../../lib/i18n/I18nContext';+import { useAppSelector } from '../../../store/hooks';++export function InterruptedTurnNotice() {+ const { t } = useT();+ const interrupted = useAppSelector(state => {+ const threadId = state.thread.selectedThreadId;+ if (!threadId) return null;+ return state.chatRuntime?.interruptedAssistantByThread?.[threadId] ?? null;+ });+ if (!interrupted) return null;+ const partial = interrupted.content.trim();+ return (+ <div+ data-testid="interrupted-turn"+ data-slot="interrupted-run"+ role="status"+ className="flex w-full max-w-sm flex-col gap-2 px-2">+ {partial.length > 0 && (+ <p className="text-foreground/80 text-[13.5px] leading-relaxed whitespace-pre-wrap">+ {partial}+ </p>+ )}+ <div className="flex items-center gap-2">+ <span className="bg-foreground/[0.04] text-foreground/55 inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 font-mono text-[11px]">+ <span aria-hidden className="size-1.5 rounded-full bg-amber-500" />+ {t('chat.message.interrupted')}+ </span>+ <span className="text-foreground/45 text-xs">{t('chat.message.interruptedDetail')}</span>+ </div>+ </div>+ );+}++export default InterruptedTurnNotice;diff --git a/app/src/lib/i18n/ar.ts b/app/src/lib/i18n/ar.tsindex b40e8aa46d..4f05c32b6b 100644--- a/app/src/lib/i18n/ar.ts+++ b/app/src/lib/i18n/ar.ts@@ -2100,6 +2100,14 @@ const messages: TranslationMap = {'conversations.composer.mention.memory': 'الذاكرة','conversations.composer.mention.files': 'الملفات','conversations.todos.title': 'المهام',+ 'chat.todos.completed': 'مكتمل',+ 'chat.todos.ofTotal': '{done} من {total}',+ 'chat.todos.receipt': 'تم تحديث التقدم — {done}/{total}',+ 'chat.subagents.ranFor': 'استغرق {duration}',+ 'chat.subagents.ofTotal': '{complete} من {total}',+ 'chat.subagents.runningCount': '{count} قيد التشغيل',+ 'chat.subagents.failedCount': '{count} فشل',+ 'chat.subagents.settled': 'انتهت المهام الفرعية. تجري معالجة نتائجها.','conversations.planReview.title': 'مراجعة الخطة','conversations.planReview.subtitle':'وافق لتشغيلها، أو ارفضها لتجاهلها، أو أرسل ملاحظات لتعديلها.',diff --git a/app/src/lib/i18n/en.ts b/app/src/lib/i18n/en.tsindex d6ef60e293..9de82972bc 100644--- a/app/src/lib/i18n/en.ts+++ b/app/src/lib/i18n/en.ts@@ -2450,6 +2450,14 @@ const en: TranslationMap = {'conversations.composer.mention.memory': 'Memory','conversations.composer.mention.files': 'Files','conversations.todos.title': 'Todos',+ 'chat.todos.completed': 'Completed',+ 'chat.todos.ofTotal': '{done} of {total}',+ 'chat.todos.receipt': 'Progress updated — {done}/{total}',+ 'chat.subagents.ranFor': 'Ran for {duration}',+ 'chat.subagents.ofTotal': '{complete} of {total}',+ 'chat.subagents.runningCount': '{count} running',+ 'chat.subagents.failedCount': '{count} failed',+ 'chat.subagents.settled': 'Child runs finished. Processing their results.','conversations.planReview.title': 'Review plan','conversations.planReview.subtitle':'Approve to run it, reject to discard, or send feedback to revise.',