@@ -594,16 +594,16 @@ describe("sisyphus-task", () => {
594594 } , { timeout : 20000 } )
595595 } )
596596
597- describe ( "resume with background parameter" , ( ) => {
598- test ( "resume with background=false should wait for result and return content" , async ( ) => {
597+ describe ( "session_id with background parameter" , ( ) => {
598+ test ( "session_id with background=false should wait for result and return content" , async ( ) => {
599599 // Note: This test needs extended timeout because the implementation has MIN_STABILITY_TIME_MS = 5000
600600 // #given
601601 const { createDelegateTask } = require ( "./tools" )
602602
603603 const mockTask = {
604604 id : "task-123" ,
605- sessionID : "ses_resume_test " ,
606- description : "Resumed task" ,
605+ sessionID : "ses_continue_test " ,
606+ description : "Continued task" ,
607607 agent : "explore" ,
608608 status : "running" ,
609609 }
@@ -620,7 +620,7 @@ describe("sisyphus-task", () => {
620620 data : [
621621 {
622622 info : { role : "assistant" , time : { created : Date . now ( ) } } ,
623- parts : [ { type : "text" , text : "This is the resumed task result" } ] ,
623+ parts : [ { type : "text" , text : "This is the continued task result" } ] ,
624624 } ,
625625 ] ,
626626 } ) ,
@@ -646,28 +646,28 @@ describe("sisyphus-task", () => {
646646 // #when
647647 const result = await tool . execute (
648648 {
649- description : "Resume test" ,
649+ description : "Continue test" ,
650650 prompt : "Continue the task" ,
651- resume : "ses_resume_test " ,
651+ session_id : "ses_continue_test " ,
652652 run_in_background : false ,
653653 load_skills : [ "git-master" ] ,
654654 } ,
655655 toolContext
656656 )
657657
658- // #then - should contain actual result, not just "Background task resumed "
659- expect ( result ) . toContain ( "This is the resumed task result" )
660- expect ( result ) . not . toContain ( "Background task resumed " )
658+ // #then - should contain actual result, not just "Background task continued "
659+ expect ( result ) . toContain ( "This is the continued task result" )
660+ expect ( result ) . not . toContain ( "Background task continued " )
661661 } , { timeout : 10000 } )
662662
663- test ( "resume with background=true should return immediately without waiting" , async ( ) => {
663+ test ( "session_id with background=true should return immediately without waiting" , async ( ) => {
664664 // #given
665665 const { createDelegateTask } = require ( "./tools" )
666666
667667 const mockTask = {
668668 id : "task-456" ,
669- sessionID : "ses_bg_resume " ,
670- description : "Background resumed task" ,
669+ sessionID : "ses_bg_continue " ,
670+ description : "Background continued task" ,
671671 agent : "explore" ,
672672 status : "running" ,
673673 }
@@ -701,17 +701,17 @@ describe("sisyphus-task", () => {
701701 // #when
702702 const result = await tool . execute (
703703 {
704- description : "Resume bg test" ,
704+ description : "Continue bg test" ,
705705 prompt : "Continue in background" ,
706- resume : "ses_bg_resume " ,
706+ session_id : "ses_bg_continue " ,
707707 run_in_background : true ,
708708 load_skills : [ "git-master" ] ,
709709 } ,
710710 toolContext
711711 )
712712
713713 // #then - should return background message
714- expect ( result ) . toContain ( "Background task resumed " )
714+ expect ( result ) . toContain ( "Background task continued " )
715715 expect ( result ) . toContain ( "task-456" )
716716 } )
717717} )
0 commit comments