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 (claude): fix stale agy-default comment, pin unpinned-enqueue contract at route level
[._.]/ Adam Eivyb33e5dc3f200
diff --git a/client/src/pages/ImageGen.jsx b/client/src/pages/ImageGen.jsxindex a2764c60d1..5c4db89100 100644--- a/client/src/pages/ImageGen.jsx+++ b/client/src/pages/ImageGen.jsx@@ -157,7 +157,8 @@ export default function ImageGen() {const [seed, setSeed] = useState('');const [selectedLoras, setSelectedLoras] = useState([]);// Per-render override of the Agy session model. Empty = inherit the saved- // Settings default (which itself may be empty = agy's own configured model).+ // Settings default (which itself may be empty = the shipped cheap-tier pin,+ // AGY_IMAGEGEN_DEFAULT_MODEL — #3231).const [agyModel, setAgyModel] = useState('');const [savedAgyModel, setSavedAgyModel] = useState('');diff --git a/server/routes/imageGen.test.js b/server/routes/imageGen.test.jsindex 63fbddf6e9..475f999819 100644--- a/server/routes/imageGen.test.js+++ b/server/routes/imageGen.test.js@@ -667,6 +667,26 @@ describe('Image Gen Routes', () => {expect(mediaJobQueue.enqueueJob.mock.calls.at(-1)[0].params.model).toBe('gemini-3.5-flash-high');});+ // Defense-in-depth for the cheap-tier pin (#3231): a fully-unpinned agy+ // enqueue (no saved model, no cloudModel) must persist the concrete+ // default into the queue job — a refactor that stops spreading+ // cloud.jobParams into the enqueue would otherwise only fail at the+ // resolver-level test.+ it('agy: a fully-unpinned render enqueues the cheap-tier default model', async () => {+ getSettings.mockResolvedValueOnce({+ imageGen: { mode: 'agy', agy: { enabled: true } },+ });+ mediaJobQueue.enqueueJob.mockReturnValueOnce({ jobId: 'queued-agy-003', position: 1, status: 'queued' });++ const response = await request(app)+ .post('/api/image-gen/generate')+ .send({ prompt: 'a lighthouse' });++ expect(response.status).toBe(200);+ expect(response.body.model).toBe('gemini-3.5-flash-low');+ expect(mediaJobQueue.enqueueJob.mock.calls.at(-1)[0].params.model).toBe('gemini-3.5-flash-low');+ });+// No getSettings mock here on purpose: Zod rejects before the route ever// reads settings, and a queued mockResolvedValueOnce would leak into the// next test.