diff --git a/desktop/src/features/agents/ui/ManagedAgentLogPanel.tsx b/desktop/src/features/agents/ui/ManagedAgentLogPanel.tsx index 86fdc05cf..cc9cff7ad 100644 --- a/desktop/src/features/agents/ui/ManagedAgentLogPanel.tsx +++ b/desktop/src/features/agents/ui/ManagedAgentLogPanel.tsx @@ -25,30 +25,43 @@ export function ManagedAgentLogPanel({ return null; } + const logDescription = selectedAgent + ? `${selectedAgent.name} · ${describeLogFile(selectedAgent.logPath)}` + : "Select a local agent to inspect recent output."; + return (
-
-
-

Harness log

-

- {selectedAgent - ? `${selectedAgent.name} · ${describeLogFile(selectedAgent.logPath)}` - : "Select a local agent to inspect recent output."} +

+ {isInline ? ( +

+ {logDescription}

-
+ ) : ( +
+

+ Harness log +

+

{logDescription}

+
+ )} {selectedAgent ? ( ) : null}
{!selectedAgent ? ( -
+

No local agent selected

@@ -57,14 +70,14 @@ export function ManagedAgentLogPanel({

) : isLoading ? ( -
+
) : ( -
+
{selectedAgent.name} {selectedAgent.status} @@ -82,7 +95,7 @@ export function ManagedAgentLogPanel({ )} {error ? ( -

+

{error.message}

diff --git a/desktop/src/features/agents/ui/UnifiedAgentsSection.tsx b/desktop/src/features/agents/ui/UnifiedAgentsSection.tsx index ab3810878..70a807407 100644 --- a/desktop/src/features/agents/ui/UnifiedAgentsSection.tsx +++ b/desktop/src/features/agents/ui/UnifiedAgentsSection.tsx @@ -252,7 +252,7 @@ function AgentPersonaCard({ const modelLabel = formatAgentModelLabel(agent?.model ?? persona.model); const profileQuery = useUserProfileQuery(agent?.pubkey); const avatarUrl = agent - ? (profileQuery.data?.avatarUrl ?? null) + ? (profileQuery.data?.avatarUrl ?? agent.avatarUrl ?? persona.avatarUrl) : persona.avatarUrl; return ( @@ -286,7 +286,7 @@ function StandaloneAgentCard({ return ( { + const baseProfile = + profileQuery.data ?? + (resolvedPersona ? buildPersonaDraftProfile(resolvedPersona) : undefined); + const fallbackAvatarUrl = + managedAgent?.avatarUrl ?? resolvedPersona?.avatarUrl ?? null; + return baseProfile && !baseProfile.avatarUrl && fallbackAvatarUrl + ? { ...baseProfile, avatarUrl: fallbackAvatarUrl } + : baseProfile; + }, [managedAgent?.avatarUrl, profileQuery.data, resolvedPersona]); const presenceStatus = pubkeyLower ? presenceQuery.data?.[pubkeyLower] : undefined; @@ -855,6 +862,7 @@ export function UserProfilePanel({ isLoading={managedAgentLogQuery.isLoading} logContent={managedAgentLogQuery.data?.content ?? null} selectedAgent={managedAgent ?? null} + variant="inline" /> ) : null}
diff --git a/desktop/src/features/profile/ui/UserProfilePanelFields.tsx b/desktop/src/features/profile/ui/UserProfilePanelFields.tsx index a149eda1f..7aa6d5aba 100644 --- a/desktop/src/features/profile/ui/UserProfilePanelFields.tsx +++ b/desktop/src/features/profile/ui/UserProfilePanelFields.tsx @@ -122,10 +122,10 @@ export function useProfileFieldBuckets({ return { ...bucketProfileFields(metadataFields), diagnosticsSummary: - diagnosticsFields.find((field) => field.label === "Last error") - ?.displayValue ?? diagnosticsFields.find((field) => field.label === "Status") ?.displayValue ?? + diagnosticsFields.find((field) => field.label === "Last error") + ?.displayValue ?? null, modelLabel: managedAgent?.model ?? persona?.model ?? "Auto", }; diff --git a/desktop/src/features/profile/ui/UserProfilePanelSections.tsx b/desktop/src/features/profile/ui/UserProfilePanelSections.tsx index 1ab661beb..a52a912b4 100644 --- a/desktop/src/features/profile/ui/UserProfilePanelSections.tsx +++ b/desktop/src/features/profile/ui/UserProfilePanelSections.tsx @@ -53,6 +53,7 @@ import { cn } from "@/shared/lib/cn"; import { useNow } from "@/shared/lib/useNow"; import { Badge } from "@/shared/ui/badge"; import { Button } from "@/shared/ui/button"; +import { Markdown } from "@/shared/ui/markdown"; // ── Summary view ───────────────────────────────────────────────────────────── @@ -706,7 +707,12 @@ function ProfileIngressRow({ {label} {trailing ? ( - {trailing} + + {trailing} + ) : null} @@ -951,12 +957,13 @@ export function AgentInstructionFocusedView({
{trimmedInstruction ? ( -

- {trimmedInstruction} -

+
+ +
) : (