@@ -835,8 +835,8 @@ describe("todo-continuation-enforcer", () => {
835835
836836 // OpenCode returns assistant messages with flat modelID/providerID, not nested model object
837837 const mockMessagesWithAssistant = [
838- { info : { id : "msg-1" , role : "user" , agent : "Sisyphus " , model : { providerID : "openai" , modelID : "gpt-5.2" } } } ,
839- { info : { id : "msg-2" , role : "assistant" , agent : "Sisyphus " , modelID : "gpt-5.2" , providerID : "openai" } } ,
838+ { info : { id : "msg-1" , role : "user" , agent : "sisyphus " , model : { providerID : "openai" , modelID : "gpt-5.2" } } } ,
839+ { info : { id : "msg-2" , role : "assistant" , agent : "sisyphus " , modelID : "gpt-5.2" , providerID : "openai" } } ,
840840 ]
841841
842842 const mockInput = {
@@ -886,8 +886,8 @@ describe("todo-continuation-enforcer", () => {
886886 setMainSession ( sessionID )
887887
888888 const mockMessagesWithCompaction = [
889- { info : { id : "msg-1" , role : "user" , agent : "Sisyphus " , model : { providerID : "anthropic" , modelID : "claude-sonnet-4-5" } } } ,
890- { info : { id : "msg-2" , role : "assistant" , agent : "Sisyphus " , modelID : "claude-sonnet-4-5" , providerID : "anthropic" } } ,
889+ { info : { id : "msg-1" , role : "user" , agent : "sisyphus " , model : { providerID : "anthropic" , modelID : "claude-sonnet-4-5" } } } ,
890+ { info : { id : "msg-2" , role : "assistant" , agent : "sisyphus " , modelID : "claude-sonnet-4-5" , providerID : "anthropic" } } ,
891891 { info : { id : "msg-3" , role : "assistant" , agent : "compaction" , modelID : "claude-sonnet-4-5" , providerID : "anthropic" } } ,
892892 ]
893893
@@ -923,7 +923,7 @@ describe("todo-continuation-enforcer", () => {
923923
924924 // #then - continuation uses Sisyphus (skipped compaction agent)
925925 expect ( promptCalls . length ) . toBe ( 1 )
926- expect ( promptCalls [ 0 ] . agent ) . toBe ( "Sisyphus " )
926+ expect ( promptCalls [ 0 ] . agent ) . toBe ( "sisyphus " )
927927 } )
928928
929929 test ( "should skip injection when only compaction agent messages exist" , async ( ) => {
0 commit comments