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
fix(threads): correct subagent transcript view to include all agents
Steven Enamakelede15795250e
diff --git a/app/src/providers/ChatRuntimeProvider.tsx b/app/src/providers/ChatRuntimeProvider.tsxindex 9829f97d7c..baec81459d 100644--- a/app/src/providers/ChatRuntimeProvider.tsx+++ b/app/src/providers/ChatRuntimeProvider.tsx@@ -19,10 +19,14 @@ import {type ChatInterimEvent,type ChatIterationStartEvent,type ChatPlanReviewRequestEvent,+ type ChatRunModeChangedEvent,type ChatSegmentEvent,type ChatSubagentDoneEvent,type ChatSubagentTextDeltaEvent,type ChatSubagentThinkingDeltaEvent,+ type ChatThreadGoalClearedEvent,+ type ChatThreadGoalUpdatedEvent,+ type ChatThreadTodosChangedEvent,type ChatToolCallEvent,type ChatToolResultEvent,type ProactiveMessageEvent,@@ -70,7 +74,10 @@ import {upsertArtifactReadyForThread,} from '../store/chatRuntimeSlice';import { useAppDispatch, useAppSelector } from '../store/hooks';+import { setRunMode } from '../store/runModeSlice';import { selectSocketStatus } from '../store/socketSelectors';+import { clearThreadGoal, setThreadGoal } from '../store/threadGoalSlice';+import { setThreadTodos } from '../store/threadTodosSlice';import {addInferenceResponse,addMessageLocal,diff --git a/crates/openhuman-core/src/threads/transcript_view/subagents.rs b/crates/openhuman-core/src/threads/transcript_view/subagents.rsindex c34037479c..358ed6f396 100644--- a/crates/openhuman-core/src/threads/transcript_view/subagents.rs+++ b/crates/openhuman-core/src/threads/transcript_view/subagents.rs@@ -143,8 +143,17 @@ fn build_child(.or_else(|| Some(display.meta.agent_name.clone())).filter(|id| !id.is_empty());let id = task_id.clone().unwrap_or_else(|| suffix.to_string());+ let spawn_unix = child_spawn_unix(suffix);+ // The spawn timestamp encoded in the sub-agent's own file stem (used+ // above to anchor it to a parent turn) doubles as this item's `ts` —+ // sub-agent transcripts carry no back-link to a delegating request, so+ // there is no per-message `ts` to inherit the way the root projector+ // pulls one from `DisplayMessage.ts`.+ let ts = spawn_unix.and_then(|unix| {+ chrono::DateTime::from_timestamp(unix, 0).map(|dt| dt.to_rfc3339())+ });Some(ChildRun {- spawn_unix: child_spawn_unix(suffix),+ spawn_unix,agent_id: agent_id.clone(),task_id: task_id.clone(),item: DisplayItem::Subagent {@@ -154,6 +163,7 @@ fn build_child(call_id: None,status: SubagentStatus::Running,request_id: None,+ ts,items,},own_state,