Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
feat(ui): the memory panel's pause and kill join the icon sweep
Bas Miliusf79fffe88afa
diff --git a/src/renderer/components/SessionMemoryPanel.test.tsx b/src/renderer/components/SessionMemoryPanel.test.tsxindex ae68ca316..55f8d93fe 100644--- a/src/renderer/components/SessionMemoryPanel.test.tsx+++ b/src/renderer/components/SessionMemoryPanel.test.tsx@@ -410,6 +410,34 @@ describe('SessionMemoryPanel', () => {expect(pauseOf(0)!.title).toBe('Open this session on its canvas')})+ it('draws the shared power icon, and the shared spinner while the pause is in flight', async () => {+ // The panel's pause is the SAME action as the node menu's "Pause session", which draws+ // `IconPower` — one action seen in two places must not speak in two voices.+ let settle = (): void => {}+ onPauseSession.mockImplementation(+ () =>+ new Promise<void>((res) => {+ settle = () => res()+ })+ )+ pauseOffer = () => ({ show: true, disabled: false, hint: 'Pause session' })+ mount()+ const btn = pauseOf(0)!+ expect(btn.querySelector('svg')).not.toBeNull()+ expect(btn.querySelector('.ui-spinner')).toBeNull()++ act(() => btn.click())+ expect(btn.querySelector('.ui-spinner')).not.toBeNull()+ expect(btn.querySelector('svg')).toBeNull()++ // Settle inside `act` so the icon is back before the test ends — a promise still pending at+ // teardown resolves into an unmounted tree.+ await act(async () => {+ settle()+ })+ expect(pauseOf(0)!.querySelector('svg')).not.toBeNull()+ })+it('asks per row, so one row may offer a pause while another does not', () => {pauseOffer = (id) =>id === ROWS[0].nodeIddiff --git a/src/renderer/components/SessionMemoryPanel.tsx b/src/renderer/components/SessionMemoryPanel.tsxindex 45713c6d2..7cc73d1d3 100644--- a/src/renderer/components/SessionMemoryPanel.tsx+++ b/src/renderer/components/SessionMemoryPanel.tsx@@ -10,7 +10,7 @@// 3. Every row is rendered. A cap would have to announce itself.import { useCallback, useEffect, useMemo, useState } from 'react'-import { IconClose, IconReload } from './icons'+import { IconClose, IconPower, IconReload } from './icons'import type { AgentState } from '@shared/agents/normalize'import { formatBytes } from '@shared/fsLimits'import { useAgentStatus } from '../state/agentStatus'@@ -199,7 +199,11 @@ export function SessionMemoryPanel({.finally(() => setPausing(null))}}>- {pausing === v.row.nodeId ? '…' : '⏻'}+ {pausing === v.row.nodeId ? (+ <span className="ui-spinner" aria-hidden />+ ) : (+ <IconPower />+ )}</button>)})()}diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex 8181eedf4..232084201 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -6997,9 +6997,11 @@ button.group-node__setup:disabled {border-radius: 10px;background: transparent;color: rgba(var(--tint-rgb), 0.45);- font-size: 11px;line-height: 1;cursor: pointer;+ display: inline-flex;+ align-items: center;+ justify-content: center;}.sessmem-row__pause:hover:not(:disabled) {color: var(--accent);@@ -7017,7 +7019,6 @@ button.group-node__setup:disabled {border-radius: 10px;background: transparent;color: rgba(var(--tint-rgb), 0.45);- font-size: 14px;line-height: 1;cursor: pointer;display: inline-flex;