fix: improve agent activity reporting

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-21 13:41:09 +01:00
co-authored by Copilot
parent b28a955271
commit e6826f1324
5 changed files with 102 additions and 28 deletions
+3 -1
View File
@@ -40,6 +40,8 @@ export function ChatPane({ activity, project, pattern, session, onSend }: ChatPa
() => buildAgentActivityRows(activity, pattern.agents),
[activity, pattern.agents],
);
const hasObservedActivity = activityRows.some((row) => !!row.activity);
const showActivityPanel = (isBusy || hasObservedActivity) && activityRows.length > 0;
useEffect(() => {
transcriptRef.current?.scrollTo({
@@ -138,7 +140,7 @@ export function ChatPane({ activity, project, pattern, session, onSend }: ChatPa
})}
</div>
{isBusy && activityRows.length > 0 && (
{showActivityPanel && (
<div className="mb-4 rounded-xl border border-zinc-800 bg-zinc-900/60 px-4 py-3">
<div className="mb-3 text-[11px] font-semibold uppercase tracking-[0.16em] text-zinc-600">
Agent activity
+1 -5
View File
@@ -42,15 +42,11 @@ export function applySessionEventActivity(
}
if (event.kind === 'status') {
if (event.status === 'running' || event.status === 'idle' || event.status === 'error') {
if (event.status === 'running') {
return removeSessionActivity(current, event.sessionId);
}
}
if (event.kind === 'error') {
return removeSessionActivity(current, event.sessionId);
}
return current;
}