@@ -782,7 +782,7 @@ func TestFormatTelegramFromStructured_PRDFormat(t *testing.T) {
782782 },
783783 },
784784 expectedContain : []string {
785- "✅ Simulation: <code>Recurring Payment</code> successfully completed" , // Only workflow name is code-wrapped
785+ "✅ <code>Simulation: Recurring Payment</code> successfully completed" , // Prefix + name code-wrapped
786786 "<b>Network:</b> Sepolia" ,
787787 "<b>Time:</b> Jan 22, 2026 at 4:51 AM UTC" ,
788788 "<b>Trigger:</b> (Simulated) Your scheduled task (every 3 days at 11:00 PM) triggered on Sepolia." ,
@@ -803,7 +803,7 @@ func TestFormatTelegramFromStructured_PRDFormat(t *testing.T) {
803803 },
804804 },
805805 expectedContain : []string {
806- "✅ Run #3: <code> Recurring Payment</code> successfully completed" , // Only workflow name is code-wrapped
806+ "✅ <code> Run #3: Recurring Payment</code> successfully completed" , // Prefix + name code-wrapped
807807 "<b>Network:</b> Sepolia" ,
808808 "<b>Time:</b> Jan 22, 2026 at 4:51 AM UTC" ,
809809 "<b>Executed:</b>" ,
@@ -823,7 +823,7 @@ func TestFormatTelegramFromStructured_PRDFormat(t *testing.T) {
823823 Errors : []string {"transfer1: Insufficient balance for transfer" },
824824 },
825825 expectedContain : []string {
826- "❌ Run #5: <code> Recurring Payment</code> failed to execute" , // Only workflow name is code-wrapped
826+ "❌ <code> Run #5: Recurring Payment</code> failed to execute" , // Prefix + name code-wrapped
827827 "<b>Network:</b> Sepolia" ,
828828 "<b>What Went Wrong:</b>" ,
829829 "• transfer1: Insufficient balance for transfer" ,
@@ -846,7 +846,7 @@ func TestFormatTelegramFromStructured_PRDFormat(t *testing.T) {
846846 },
847847 },
848848 expectedContain : []string {
849- "⚠️ Run #2: <code> My Workflow</code> successfully completed" ,
849+ "⚠️ <code> Run #2: My Workflow</code> successfully completed" ,
850850 "<i>1 node was skipped by Branch condition.</i>" ,
851851 "<b>Network:</b> Ethereum" ,
852852 "<b>Executed:</b>" ,
@@ -867,7 +867,7 @@ func TestFormatTelegramFromStructured_PRDFormat(t *testing.T) {
867867 Errors : []string {"loop1 - skipped due to condition not met: `code1.data.balance >= code1.data.totalNeeded` evaluated to false" },
868868 },
869869 expectedContain : []string {
870- "⚠️ Simulation: <code>Copy of Test Recurring Batch Send</code> successfully completed" ,
870+ "⚠️ <code>Simulation: Copy of Test Recurring Batch Send</code> successfully completed" ,
871871 "<i>1 node was skipped by Branch condition.</i>" ,
872872 "<b>Network:</b> Sepolia" ,
873873 "<b>What Went Wrong:</b>" ,
@@ -943,7 +943,7 @@ func TestFormatTelegramFromStructured_PRDFormat(t *testing.T) {
943943 Executions : []ExecutionEntry {{Description : "(Simulated) On-chain transaction successfully completed" }},
944944 },
945945 expectedContain : []string {
946- "✅ Simulation: <code>My Workflow</code> successfully completed" ,
946+ "✅ <code>Simulation: My Workflow</code> successfully completed" ,
947947 "<b>Network:</b> Sepolia" ,
948948 "<b>Trigger:</b> (Simulated) Scheduled task ran on Sepolia" ,
949949 "<b>Executed:</b>" ,
@@ -1160,27 +1160,27 @@ func TestFormatSubjectWithBoldName(t *testing.T) {
11601160 {
11611161 name : "simulation success" ,
11621162 subject : "Simulation: My Workflow successfully completed" ,
1163- expected : "Simulation: <code>My Workflow</code> successfully completed" ,
1163+ expected : "<code>Simulation: My Workflow</code> successfully completed" ,
11641164 },
11651165 {
11661166 name : "simulation failure" ,
11671167 subject : "Simulation: Test Workflow failed to execute" ,
1168- expected : "Simulation: <code>Test Workflow</code> failed to execute" ,
1168+ expected : "<code>Simulation: Test Workflow</code> failed to execute" ,
11691169 },
11701170 {
11711171 name : "simulation partial" ,
11721172 subject : "Simulation: Another Workflow partially executed" ,
1173- expected : "Simulation: <code>Another Workflow</code> partially executed" ,
1173+ expected : "<code>Simulation: Another Workflow</code> partially executed" ,
11741174 },
11751175 {
11761176 name : "run number success" ,
11771177 subject : "Run #3: Payment Flow successfully completed" ,
1178- expected : "Run #3: <code> Payment Flow</code> successfully completed" ,
1178+ expected : "<code> Run #3: Payment Flow</code> successfully completed" ,
11791179 },
11801180 {
11811181 name : "run number failure" ,
11821182 subject : "Run #15: Swap Workflow failed to execute" ,
1183- expected : "Run #15: <code> Swap Workflow</code> failed to execute" ,
1183+ expected : "<code> Run #15: Swap Workflow</code> failed to execute" ,
11841184 },
11851185 {
11861186 name : "no prefix success" ,
@@ -1195,17 +1195,17 @@ func TestFormatSubjectWithBoldName(t *testing.T) {
11951195 {
11961196 name : "workflow name with special chars" ,
11971197 subject : "Simulation: Copy of Recurring Payment & Report successfully completed" ,
1198- expected : "Simulation: <code>Copy of Recurring Payment & Report</code> successfully completed" ,
1198+ expected : "<code>Simulation: Copy of Recurring Payment & Report</code> successfully completed" ,
11991199 },
12001200 {
12011201 name : "run node success" ,
12021202 subject : "Run Node: My Transfer succeeded" ,
1203- expected : "Run Node: <code> My Transfer</code> succeeded" ,
1203+ expected : "<code> Run Node: My Transfer</code> succeeded" ,
12041204 },
12051205 {
12061206 name : "run node failure" ,
12071207 subject : "Run Node: My Transfer failed at transfer1" ,
1208- expected : "Run Node: <code> My Transfer</code> failed at transfer1" ,
1208+ expected : "<code> Run Node: My Transfer</code> failed at transfer1" ,
12091209 },
12101210 {
12111211 name : "deployed workflow success" ,
@@ -1391,7 +1391,7 @@ func TestComposeSummary_SimulateTaskFromClientPayload(t *testing.T) {
13911391 telegram := FormatForMessageChannels (summary , "telegram" , nil )
13921392
13931393 expectedTelegramContents := []string {
1394- "✅ Simulation: <code>Test settings.name</code> successfully completed" ,
1394+ "✅ <code>Simulation: Test settings.name</code> successfully completed" ,
13951395 "<b>Network:</b> Sepolia" ,
13961396 "<b>Time:</b>" ,
13971397 "<b>Trigger:</b> (Simulated) Scheduled task ran on Sepolia" ,
0 commit comments