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

label the measure drawer's close button for what it does mid-run

[._.]/ Adam Eivy3f3964613a1c
diff --git a/client/src/components/settings/LocalModelAssessments.jsx b/client/src/components/settings/LocalModelAssessments.jsx
index adf83b7ebc..1a4aebdce9 100644
--- a/client/src/components/settings/LocalModelAssessments.jsx
+++ b/client/src/components/settings/LocalModelAssessments.jsx
@@ -214,7 +214,9 @@ function AssessmentDrawer({
subtitle={target.modelId}
size="md"
// Closing IS stopping — the close button aborts the run in flight — so
- // both accidental-dismissal paths are shut off while one is working.
+ // both accidental-dismissal paths are shut off while one is working, and
+ // the icon-only close button says what it will actually do.
+ closeLabel={running ? 'Stop the assessment' : 'Close'}
closeOnEsc={!running}
closeOnBackdrop={!running}
>
diff --git a/client/src/components/settings/LocalModelAssessments.test.jsx b/client/src/components/settings/LocalModelAssessments.test.jsx
index 44ef49f482..5b1fcd765b 100644
--- a/client/src/components/settings/LocalModelAssessments.test.jsx
+++ b/client/src/components/settings/LocalModelAssessments.test.jsx
@@ -269,8 +269,10 @@ describe('LocalModelAssessments', () => {
getLocalLlmAssessments.mockResolvedValue(report({
unassessed: [{ backend: 'ollama', modelId: 'example-model:7b', params: '7B' }],
}));
- // A run occupies the local provider for minutes; the modal's only exit must
- // stay live and actually abort, not merely close over a job still running.
+ // A run occupies the local provider for minutes; every exit the drawer
+ // offers must stay live and actually abort, not merely close over a job
+ // still running — including the header's icon-only close button, which has
+ // to announce that it stops the run rather than "Close".
let capturedSignal;
runLocalLlmAssessment.mockImplementation((_payload, options) => {
capturedSignal = options.signal;
@@ -282,9 +284,10 @@ describe('LocalModelAssessments', () => {
await user.click(await screen.findByRole('button', { name: 'Measure' }));
await user.click(screen.getByRole('button', { name: /run assessment/i }));
- await waitFor(() => expect(screen.getByRole('button', { name: /stop/i })).toBeInTheDocument());
+ await waitFor(() => expect(screen.getByRole('button', { name: 'Stop' })).toBeInTheDocument());
+ expect(screen.getByRole('button', { name: 'Stop the assessment' })).toBeInTheDocument();
- await user.click(screen.getByRole('button', { name: /stop/i }));
+ await user.click(screen.getByRole('button', { name: 'Stop' }));
await waitFor(() => expect(capturedSignal.aborted).toBe(true));
// The abort is what the user asked for — it must not surface as an error.
expect(toast.error).not.toHaveBeenCalled();