Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(desktop-app): announce the suspended step via a polite live region (R4-L8c)
Diego Zacarias70bc4481ac97
diff --git a/desktop-app/ui/src/components/ProgressStepper.tsx b/desktop-app/ui/src/components/ProgressStepper.tsxindex b1eae80a8..30c8bd93f 100644--- a/desktop-app/ui/src/components/ProgressStepper.tsx+++ b/desktop-app/ui/src/components/ProgressStepper.tsx@@ -425,7 +425,12 @@ export function ProgressStepper({<div data-testid="progress-stepper" className="progress-stepper status-suspended"><div className="stepper-suspended-row"><span className="stepper-suspended-icon">⚠</span>- <span className="stepper-suspended-label">+ <span+ className="stepper-suspended-label"+ role="status"+ aria-live="polite"+ aria-atomic="true"+ >{canConnect? `Connect ${connectServer} to continue`: isConnectdiff --git a/desktop-app/ui/src/components/__tests__/ProgressStepper.test.tsx b/desktop-app/ui/src/components/__tests__/ProgressStepper.test.tsxindex 178ffc090..76f28a726 100644--- a/desktop-app/ui/src/components/__tests__/ProgressStepper.test.tsx+++ b/desktop-app/ui/src/components/__tests__/ProgressStepper.test.tsx@@ -241,6 +241,23 @@ describe('ProgressStepper — suspended status (approval flow)', () => {expect(screen.getByText('Waiting for approval...')).toBeDefined()})+ it('announces the suspended state to assistive tech via a polite live region (R4-L8c)', () => {+ // The label that changes when a task parks on approval/connect/OAuth must be a+ // live region so a screen reader announces the transition without stealing focus.+ render(+ <ProgressStepper+ progress={makeProgress({+ status: 'suspended',+ suspendedInfo: { requestId: 'req-1', displayName: 'Tool X' },+ })}+ />+ )+ const status = screen.getByRole('status')+ expect(status.textContent).toBe('Tool X requires approval')+ expect(status.getAttribute('aria-live')).toBe('polite')+ expect(status.getAttribute('aria-atomic')).toBe('true')+ })+it('shows tool display name when suspendedInfo is populated', () => {render(<ProgressStepper