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
address review (agy): clear repo study context between captures
[._.]/ Adam Eivy1b48c30fded8
diff --git a/client/src/components/QuickBrainCapture.test.jsx b/client/src/components/QuickBrainCapture.test.jsxindex 6f226510a3..c8a5437049 100644--- a/client/src/components/QuickBrainCapture.test.jsx+++ b/client/src/components/QuickBrainCapture.test.jsx@@ -184,6 +184,18 @@ describe('QuickBrainCapture', () => {});});+ it('clears study context when switching to another repo', async () => {+ renderWidget();+ type(REPO);+ fireEvent.click(screen.getByLabelText('Study for app ideas'));+ fireEvent.change(screen.getByLabelText(/study context/i), {+ target: { value: 'Only for the first repo.' },+ });++ type('https://github.com/example-owner/another-repo');+ await waitFor(() => expect(screen.getByLabelText(/study context/i)).toHaveValue(''));+ });+it('remembers the choice across mounts', () => {const { unmount } = renderWidget();type(REPO);diff --git a/client/src/hooks/useRepoIntake.js b/client/src/hooks/useRepoIntake.jsindex 3243f7f9a7..ad451cfa86 100644--- a/client/src/hooks/useRepoIntake.js+++ b/client/src/hooks/useRepoIntake.js@@ -55,9 +55,14 @@ export function useRepoIntake(text) {const [studyContext, setStudyContext] = useState('');const repo = useMemo(() => capturedGitHubRepo(text), [text]);+ const repoKey = repo ? `${repo.owner}/${repo.repo}` : null;const options = useMemo(() => ({ malwareScan, learn }), [malwareScan, learn]);const setters = { malwareScan: setMalwareScan, learn: setLearn };+ useEffect(() => {+ setStudyContext('');+ }, [repoKey]);+useEffect(() => {if (!repo || !learn || typeof api.getApps !== 'function') return;api.getApps({ silent: true }).then((apps) => {