agent-ecosystem/src/renderer/features/agent-graph/adapters
iliya f286468dac fix(team): stable context % + show "% of context" + graph improvements
Context window fix:
- Derive initial contextWindow from model selection (haiku=200K, else=1M)
- Use limitContext flag from request
- Updated to exact value from modelUsage on result.success
- Formula: input_tokens + cache_creation + cache_read (all three needed)

TokenUsageDisplay:
- New contextWindowSize prop → shows "X% of context" (not "X% of input")

Graph improvements:
- Pending approval: pulsing amber ring on member nodes
- Working spinner: spinning arc when member has active task
- Current task indicator in popover (Loader2 + "working on" + task name)
- GraphNode: added currentTaskId, currentTaskSubject, pendingApproval, activeTool fields
- Adapter: passes pendingApprovalAgents + currentTaskId from store
2026-03-28 18:32:10 +02:00
..
TeamGraphAdapter.ts fix(team): stable context % + show "% of context" + graph improvements 2026-03-28 18:32:10 +02:00
useTeamGraphAdapter.ts fix(team): stable context % + show "% of context" + graph improvements 2026-03-28 18:32:10 +02:00