fix(workspace): give the compact-label row spec the pin/archive props

This commit is contained in:
Yif authored and imccyu committed 2026-09-19 12:04:07 +08:00
1 parent 3e96ed79a7
commit bd0461c894
1 file changed
+2 -2
@@ -559,10 +559,10 @@ describe('workspace browser rows', () => {
const node: SessionNode = {
id: sid(pendingInteraction), title: 'Needs input', blank: false,
pendingInteraction, running: false, runningSubagentCount: 0, completed: false,
hasActiveSchedule: false, updatedAt: 0,
hasActiveSchedule: false, updatedAt: 0, pinned: false, archived: false,
}
render(<SessionNodeItem node={node} currentId={undefined} now={0} onOpen={vi.fn()}
onRename={vi.fn()} onFork={vi.fn()} onArchive={vi.fn()} t={tEn} />)
onRename={vi.fn()} onFork={vi.fn()} onArchive={vi.fn()} onUnarchive={vi.fn()} onPin={vi.fn()} t={tEn} />)
const row = screen.getByRole('treeitem')
expect(screen.getByText('Needs input').nextElementSibling?.textContent).toBe(compactLabel)
expect(screen.getByText('Needs input').nextElementSibling?.getAttribute('aria-hidden')).toBe('true')