Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(ui): handle missing turn insights gracefully

Steven Enamakel389386648ab4
diff --git a/app/src/features/conversations/components/PastTurnInsights.tsx b/app/src/features/conversations/components/PastTurnInsights.tsx
index 6389ed70e5..f8f5bc9bd6 100644
--- a/app/src/features/conversations/components/PastTurnInsights.tsx
+++ b/app/src/features/conversations/components/PastTurnInsights.tsx
@@ -1,3 +1,4 @@
+import { useT } from '../../../lib/i18n/I18nContext';
import type { ProcessingTranscriptItem, ToolTimelineEntry } from '../../../store/chatRuntimeSlice';
import { formatTimelineEntry } from '../../../utils/toolTimelineFormatting';
import { AssistantUiSubagentCall } from './AssistantUiSubagentCall';
@@ -27,6 +28,7 @@ export function PastTurnInsights({
entries: ToolTimelineEntry[];
transcript: ProcessingTranscriptItem[];
}) {
+ const { t } = useT();
// No reasoning/narration trail persisted (legacy snapshot): render the
// tool-only timeline, which already nests each sub-agent's activity inline.
if (transcript.length === 0) {
@@ -49,7 +51,7 @@ export function PastTurnInsights({
{subagentEntries.map(entry => (
<div key={entry.id}>
<p className="text-[12px] font-medium text-content-secondary">
- {formatTimelineEntry(entry).title}
+ {formatTimelineEntry(entry, t).title}
</p>
<AssistantUiSubagentCall activity={entry.subagent!} />
</div>
diff --git a/app/src/features/conversations/components/ProcessingTranscriptView.tsx b/app/src/features/conversations/components/ProcessingTranscriptView.tsx
index ca739f4a8b..24214a9c22 100644
--- a/app/src/features/conversations/components/ProcessingTranscriptView.tsx
+++ b/app/src/features/conversations/components/ProcessingTranscriptView.tsx
@@ -55,7 +55,8 @@ export function ProcessingTranscriptView({
*/
renderSubagent?: (subagent: NonNullable<ToolTimelineEntry['subagent']>) => React.ReactNode;
}) {
- const blocks = buildProcessingBlocks(transcript, entries);
+ const { t } = useT();
+ const blocks = buildProcessingBlocks(transcript, entries, t);
if (blocks.length === 0) return null;
return (
diff --git a/crates/openhuman-core/src/search/tools/querit.rs b/crates/openhuman-core/src/search/tools/querit.rs
index 84317b628d..83bb7b96b6 100644
--- a/crates/openhuman-core/src/search/tools/querit.rs
+++ b/crates/openhuman-core/src/search/tools/querit.rs
@@ -522,7 +522,7 @@ impl Tool for QueritSearchTool {
.results
.result
.iter()
- .map(super::querit::QueritResultItem::snippet_text)
+ .map(QueritResultItem::snippet_text)
.collect();
let structured_results: Vec<crate::search::tools::WebSearchResultRef<'_>> = search_resp
.results