Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: keep async action labels stable

Adam Eivy3b9b9cb67082
diff --git a/client/src/components/apps/tabs/IssuesTab.test.jsx b/client/src/components/apps/tabs/IssuesTab.test.jsx
index 11926911f4..20e08bc0fa 100644
--- a/client/src/components/apps/tabs/IssuesTab.test.jsx
+++ b/client/src/components/apps/tabs/IssuesTab.test.jsx
@@ -287,6 +287,11 @@ describe('IssuesTab', () => {
await renderTab();
fireEvent.click(await screen.findByRole('button', { name: /Claim/ }));
+ const pendingClaim = screen.getByRole('button', { name: 'Queuing…' });
+ expect(pendingClaim).toHaveAttribute('aria-busy', 'true');
+ expect(pendingClaim).toHaveTextContent('Claim');
+ expect(pendingClaim).not.toHaveTextContent('Queuing…');
+ expect(pendingClaim.querySelector('svg')).toHaveClass('animate-spin');
act(() => socketHandlers.get('cos:tasks:changed')({
task: {
id: 'task-1', status: 'in_progress',
diff --git a/client/src/components/apps/tabs/RunActionButton.jsx b/client/src/components/apps/tabs/RunActionButton.jsx
index 0ac4afa9f8..df02063ae8 100644
--- a/client/src/components/apps/tabs/RunActionButton.jsx
+++ b/client/src/components/apps/tabs/RunActionButton.jsx
@@ -1,8 +1,10 @@
import { Loader2 } from 'lucide-react';
-// Keep async action buttons stable while their label changes. A fixed content
-// slot prevents the spinner and the old label from visually crossing during a
-// theme transition, and keeps every run action's pending state consistent.
+// Keep async action buttons stable while their request is in flight. The
+// action label stays in one visual slot; only the icon changes to a spinner.
+// Replacing the visible label with a second busy string lets the two text
+// layers briefly composite during the theme/button transition on touch
+// browsers, which is especially distracting on the compact issue rows.
export default function RunActionButton({
busy = false,
busyLabel = 'Queuing…',
@@ -16,12 +18,14 @@ export default function RunActionButton({
type="button"
{...props}
disabled={busy || props.disabled}
+ aria-busy={busy}
+ aria-label={busy ? busyLabel : props['aria-label']}
className={`inline-flex min-w-[7.5rem] items-center justify-center gap-1.5 transition-colors disabled:opacity-50 ${className}`}
>
<span className="inline-flex w-4 shrink-0 justify-center" aria-hidden="true">
{busy ? <Loader2 size={14} className="animate-spin" /> : <Icon size={14} />}
</span>
- <span>{busy ? busyLabel : children}</span>
+ <span>{children}</span>
</button>
);
}