mirror of
https://github.com/davidkaya/aryx.git
synced 2026-08-08 12:48:48 +02:00
fix: improve agent activity reporting
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user