@@ -474,7 +474,7 @@ describe("HTTPClient workspace scope", () => {
474474 const client = new HTTPClient ( ) ;
475475 await client . getAgentBus ( { projectPath : "/tmp/demo" , target : "dev:planner" } ) ;
476476 await client . markAgentInboxRead ( { projectPath : "/tmp/demo" } , "dev:planner" ) ;
477- await client . restoreSessions ( { projectPath : "/tmp/demo" } ) ;
477+ await client . restoreSessions ( { projectPath : "/tmp/demo" } , { sessionId : "session-1" , dryRun : true } ) ;
478478
479479 expect ( fetchMock ) . toHaveBeenNthCalledWith (
480480 1 ,
@@ -496,7 +496,7 @@ describe("HTTPClient workspace scope", () => {
496496 {
497497 method : "POST" ,
498498 headers : { "Content-Type" : "application/json" } ,
499- body : "{}" ,
499+ body : JSON . stringify ( { session_id : "session-1" , dry_run : true } ) ,
500500 } ,
501501 ) ;
502502 } ) ;
@@ -535,8 +535,8 @@ describe("HTTPClient workspace scope", () => {
535535
536536 const client = new HTTPClient ( ) ;
537537 await client . getSnapshots ( { projectPath : "/tmp/demo" } ) ;
538- await client . createSnapshot ( { projectPath : "/tmp/demo" } , "after-change" ) ;
539- await client . restoreSnapshot ( { projectPath : "/tmp/demo" } , "snap-1" ) ;
538+ await client . createSnapshot ( { projectPath : "/tmp/demo" } , "after-change" , { includeFiles : true } ) ;
539+ await client . restoreSnapshot ( { projectPath : "/tmp/demo" } , "snap-1" , { restoreFiles : false } ) ;
540540 await client . getWorktrees ( { projectPath : "/tmp/demo" } ) ;
541541 await client . setupWorktree ( { projectPath : "/tmp/demo" } , { target : "dev:planner" , branch : "cc-branch/dev-planner" } ) ;
542542 await client . finishWorktree ( { projectPath : "/tmp/demo" } , "dev:planner" ) ;
@@ -545,11 +545,11 @@ describe("HTTPClient workspace scope", () => {
545545 expect ( fetchMock ) . toHaveBeenNthCalledWith ( 1 , "/api/snapshots?project_path=%2Ftmp%2Fdemo" , { signal : undefined } ) ;
546546 expect ( fetchMock ) . toHaveBeenNthCalledWith ( 2 , "/api/snapshots/create?project_path=%2Ftmp%2Fdemo" , expect . objectContaining ( {
547547 method : "POST" ,
548- body : JSON . stringify ( { name : "after-change" } ) ,
548+ body : JSON . stringify ( { name : "after-change" , include_files : true } ) ,
549549 } ) ) ;
550550 expect ( fetchMock ) . toHaveBeenNthCalledWith ( 3 , "/api/snapshots/restore?project_path=%2Ftmp%2Fdemo" , expect . objectContaining ( {
551551 method : "POST" ,
552- body : JSON . stringify ( { id : "snap-1" } ) ,
552+ body : JSON . stringify ( { id : "snap-1" , restore_files : false } ) ,
553553 } ) ) ;
554554 expect ( fetchMock ) . toHaveBeenNthCalledWith ( 4 , "/api/worktrees?project_path=%2Ftmp%2Fdemo" , { signal : undefined } ) ;
555555 expect ( fetchMock ) . toHaveBeenNthCalledWith ( 5 , "/api/worktrees/setup?project_path=%2Ftmp%2Fdemo" , expect . objectContaining ( {
0 commit comments