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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
simplify Start fresh helper text to a single count; cover fresh mode in editor test
[._.]/ Adam Eivyd5a21370dab5
diff --git a/client/src/pages/PipelineManuscriptEditor.jsx b/client/src/pages/PipelineManuscriptEditor.jsxindex 6b18075913..a738c5c0f7 100644--- a/client/src/pages/PipelineManuscriptEditor.jsx+++ b/client/src/pages/PipelineManuscriptEditor.jsx@@ -454,9 +454,8 @@ export default function PipelineManuscriptEditor() {<span>Start fresh<span className="text-gray-600">- {' '}— replace the current {grouped.open.length} open- {grouped.accepted.length > 0 ? ` + ${grouped.accepted.length} accepted` : ''}- {' '}note{freshClearCount === 1 ? '' : 's'} with this run; dismissed kept.+ {' '}— replace the current {freshClearCount} note{freshClearCount === 1 ? '' : 's'}+ {' '}(open + accepted) with this run; dismissed kept.</span></span></label>diff --git a/client/src/pages/PipelineManuscriptEditor.test.jsx b/client/src/pages/PipelineManuscriptEditor.test.jsxindex 6c7cdc0394..b329a2c47f 100644--- a/client/src/pages/PipelineManuscriptEditor.test.jsx+++ b/client/src/pages/PipelineManuscriptEditor.test.jsx@@ -252,11 +252,26 @@ describe('PipelineManuscriptEditor', () => {expect(await screen.findByText('New pacing note')).toBeInTheDocument();expect(api.analyzePipelineManuscriptCompleteness).toHaveBeenCalledWith(- 'ser-1', { providerOverride: 'openai', modelOverride: 'gpt-5' },+ 'ser-1', { providerOverride: 'openai', modelOverride: 'gpt-5', mode: 'merge' },);await waitFor(() => expect(screen.getByText(/2 open/)).toBeInTheDocument());});+ it('sends mode "fresh" when the Start fresh checkbox is checked', async () => {+ api.analyzePipelineManuscriptCompleteness.mockResolvedValue({+ review: { schemaVersion: 1, comments: [comment] },+ });+ renderEditor();+ await screen.findByText('My Series');++ fireEvent.click(screen.getByLabelText(/Start fresh/i));+ fireEvent.click(screen.getByText('Run editorial review'));++ await waitFor(() => expect(api.analyzePipelineManuscriptCompleteness).toHaveBeenCalledWith(+ 'ser-1', expect.objectContaining({ mode: 'fresh' }),+ ));+ });+it('shows a chunk-count badge when the review ran in chunks (small context window)', async () => {api.analyzePipelineManuscriptCompleteness.mockResolvedValue({review: { schemaVersion: 1, comments: [comment] },