@@ -258,39 +258,6 @@ describe('useCodesignStore generation cancellation', () => {
258258 } ) ;
259259} ) ;
260260
261- describe ( 'useCodesignStore auto-continue incomplete todos' , ( ) => {
262- it ( 'fires one silent continuation per design until a new explicit prompt resets the guard' , async ( ) => {
263- const sendPromptMock = vi . fn ( async ( ) => undefined ) ;
264- const mockedSendPrompt = sendPromptMock as unknown as SendPromptFn ;
265-
266- useCodesignStore . setState ( {
267- currentDesignId : 'design-incomplete' ,
268- isGenerating : false ,
269- autoContinueIncompleteFired : new Set < string > ( ) ,
270- sendPrompt : mockedSendPrompt ,
271- } ) ;
272-
273- const first = useCodesignStore
274- . getState ( )
275- . tryAutoContinueIncomplete ( 'design-incomplete' , [ 'Finish the final screen' ] ) ;
276- const second = useCodesignStore
277- . getState ( )
278- . tryAutoContinueIncomplete ( 'design-incomplete' , [ 'Finish the final screen' ] ) ;
279-
280- expect ( first ) . toBe ( true ) ;
281- expect ( second ) . toBe ( false ) ;
282- expect ( sendPromptMock ) . toHaveBeenCalledTimes ( 1 ) ;
283- expect ( sendPromptMock ) . toHaveBeenCalledWith (
284- expect . objectContaining ( {
285- silent : true ,
286- prompt : expect . stringContaining ( 'Finish the final screen' ) ,
287- } ) ,
288- ) ;
289-
290- useCodesignStore . setState ( { sendPrompt : initialState . sendPrompt } ) ;
291- } ) ;
292- } ) ;
293-
294261describe ( 'useCodesignStore canvas context attachments' , ( ) => {
295262 it ( 'shows canvas context in the user chat payload and sends fresh canvas files when dirty' , async ( ) => {
296263 const append = vi . fn ( async ( input : { designId : string ; kind : string ; payload : unknown } ) => ( {
@@ -303,10 +270,12 @@ describe('useCodesignStore canvas context attachments', () => {
303270 createdAt : new Date ( ) . toISOString ( ) ,
304271 schemaVersion : 1 ,
305272 } ) ) ;
306- const generate = vi . fn ( async ( payload : { attachments : Array < { path : string ; name : string } > } ) => ( {
307- artifacts : [ ] ,
308- message : 'done' ,
309- } ) ) ;
273+ const generate = vi . fn (
274+ async ( payload : { attachments : Array < { path : string ; name : string } > } ) => ( {
275+ artifacts : [ ] ,
276+ message : 'done' ,
277+ } ) ,
278+ ) ;
310279
311280 vi . stubGlobal ( 'window' , {
312281 codesign : {
0 commit comments