π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
π style(goal): stop showing a running chip on an open question node (#19396)
Arvin Xuf6a13fac264d
diff --git a/src/features/AgentGoals/ProcessControl/Graph/index.tsx b/src/features/AgentGoals/ProcessControl/Graph/index.tsxindex 830a44894a6..ddb00a3eb94 100644--- a/src/features/AgentGoals/ProcessControl/Graph/index.tsx+++ b/src/features/AgentGoals/ProcessControl/Graph/index.tsx@@ -31,7 +31,7 @@ import { useChatStore } from '@/store/chat';import { chatPortalSelectors } from '@/store/chat/selectors';import { type GoalGraphNodeKind, graphNodeKind, graphNodeLabel } from '../../Experiments/model';-import type { GoalGraphView, GoalNodeView } from '../goalGraphViewModel';+import { type GoalGraphView, type GoalNodeView, isRunningNode } from '../goalGraphViewModel';import { KindDot } from '../shared';import { edgeDirection } from './edgeRouting';import ExperimentGroup, { type ExperimentGroupData } from './ExperimentGroup';@@ -435,7 +435,7 @@ const Canvas = memo<false,).size,kind: graphNodeKind(graph, item),- running: item.node.status === 'active' && !item.isStale,+ running: isRunningNode(item),selected: selectedId === item.node.id,stale: item.isStale,subtitle: subtitleOf(item),diff --git a/src/features/AgentGoals/ProcessControl/goalGraphViewModel.test.ts b/src/features/AgentGoals/ProcessControl/goalGraphViewModel.test.tsindex 330a4f6e169..40ea89508f4 100644--- a/src/features/AgentGoals/ProcessControl/goalGraphViewModel.test.ts+++ b/src/features/AgentGoals/ProcessControl/goalGraphViewModel.test.ts@@ -10,7 +10,12 @@ import type {import { describe, expect, it } from 'vitest';import { experimentRelations, graphNodeKind, isExperiment } from '../Experiments/model';-import { buildGoalGraphView, hasReviewableResult, isTroubledTaskNode } from './goalGraphViewModel';+import {+ buildGoalGraphView,+ hasReviewableResult,+ isRunningNode,+ isTroubledTaskNode,+} from './goalGraphViewModel';const T0 = new Date('2026-08-01T00:00:00Z');const at = (minutes: number) => new Date(T0.getTime() + minutes * 60_000);@@ -570,6 +575,40 @@ describe('isTroubledTaskNode', () => {});});+describe('isRunningNode', () => {+ it('reads an active task as running', () => {+ const view = buildGoalGraphView(+ snapshot({+ events: [event('w1', 'activated', 110)],+ nodes: [node('w1', { status: 'active', updatedAt: at(115) })],+ }),+ NOW,+ );++ expect(isRunningNode(view.byId.w1)).toBe(true);+ });++ // An open question is not work in flight β the card already says it is+ // unanswered, and a running chip there promises activity nobody is doing.+ it('never reads a question as running', () => {+ const view = buildGoalGraphView(+ snapshot({ nodes: [node('p1', { kind: 'problem', status: 'active', updatedAt: at(115) })] }),+ NOW,+ );++ expect(isRunningNode(view.byId.p1)).toBe(false);+ });++ it('does not read a stale task as running', () => {+ const view = buildGoalGraphView(+ snapshot({ nodes: [node('w1', { status: 'active', updatedAt: at(0) })] }),+ NOW,+ );++ expect(isRunningNode(view.byId.w1)).toBe(false);+ });+});+describe('hasReviewableResult', () => {// The graph drill-down routes on this: only a Task with a delivery to read// opens the result surface; everything else opens the original Task detail.diff --git a/src/features/AgentGoals/ProcessControl/goalGraphViewModel.ts b/src/features/AgentGoals/ProcessControl/goalGraphViewModel.tsindex 3dfddd19b75..0f0d300ea80 100644--- a/src/features/AgentGoals/ProcessControl/goalGraphViewModel.ts+++ b/src/features/AgentGoals/ProcessControl/goalGraphViewModel.ts@@ -132,6 +132,19 @@ export const hasReviewableResult = (view: GoalNodeView): boolean => {return view.node.status === 'resolved' || view.isVerifying;};+/**+ * Whether a node reads as "running" on the map β the animated ring, the chip+ * and the elapsed clock all hang off this.+ *+ * A question is excluded: an open question is not work in flight, its state is+ * whether it has an answer yet, and the card already says that. A "Running"+ * chip on a question that nobody is working promises activity that isn't there.+ */+export const isRunningNode = (view: GoalNodeView): boolean => {+ if (view.node.kind === 'problem') return false;+ return view.node.status === 'active' && !view.isStale;+};+export type FrontierItemKind = 'gate' | 'stale' | 'verifying' | 'running' | 'ready' | 'done';export interface FrontierItem {