mirror of
https://github.com/davidkaya/aryx.git
synced 2026-07-29 07:58:47 +02:00
fix: remove synthetic agent status fallback
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -77,11 +77,8 @@ export function pruneSessionActivities(
|
||||
export function buildAgentActivityRows(
|
||||
current: SessionActivityState | undefined,
|
||||
agents: PatternDefinition['agents'],
|
||||
isBusy: boolean,
|
||||
): AgentActivityRow[] {
|
||||
const hasReportedActivity = !!current && Object.keys(current).length > 0;
|
||||
|
||||
return agents.map((agent, index) => {
|
||||
return agents.map((agent) => {
|
||||
const activity = current?.[agent.id] ?? current?.[agent.name];
|
||||
|
||||
if (activity) {
|
||||
@@ -92,18 +89,6 @@ export function buildAgentActivityRows(
|
||||
};
|
||||
}
|
||||
|
||||
if (!hasReportedActivity && isBusy && index === 0) {
|
||||
return {
|
||||
key: agent.id,
|
||||
agentName: agent.name,
|
||||
activity: {
|
||||
agentId: agent.id,
|
||||
agentName: agent.name,
|
||||
activityType: 'thinking',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
key: agent.id,
|
||||
agentName: agent.name,
|
||||
@@ -113,7 +98,7 @@ export function buildAgentActivityRows(
|
||||
|
||||
export function formatAgentActivityLabel(activity: AgentActivityState | undefined): string {
|
||||
if (!activity) {
|
||||
return 'Waiting…';
|
||||
return 'No status yet';
|
||||
}
|
||||
|
||||
switch (activity?.activityType) {
|
||||
@@ -126,7 +111,7 @@ export function formatAgentActivityLabel(activity: AgentActivityState | undefine
|
||||
case 'thinking':
|
||||
return 'Thinking…';
|
||||
default:
|
||||
return 'Waiting…';
|
||||
return 'No status yet';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user