Skip to content

Commit de8cfd2

Browse files
authored
test(slack): delivery trace goldens for buffered native streaming and block finals (#104583)
1 parent 444d7df commit de8cfd2

6 files changed

Lines changed: 682 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{"seq":1,"at":0,"dir":"in","kind":"reply-start"}
2+
{"seq":2,"at":0,"dir":"out","kind":"assistant.threads.setStatus","data":{"payload":{"channel_id":"C0TRACE","loading_messages":["Reading the thread...","Checking context...","Working through the request...","Putting it all together..."],"status":"is typing...","thread_ts":"ts#1"},"result":{"ok":true},"target":"C0TRACE/ts#1"}}
3+
{"seq":3,"at":0,"dir":"in","kind":"partial","data":{"text":"Working on the fix"}}
4+
{"seq":4,"at":0,"dir":"out","kind":"chat.postMessage","data":{"payload":{"channel":"C0TRACE","text":"Working on the fix","thread_ts":"ts#1","unfurl_links":false},"result":{"ts":"ts#2"},"target":"C0TRACE"}}
5+
{"seq":5,"at":300,"dir":"in","kind":"partial","data":{"text":"Working on the fix: patching now."}}
6+
{"seq":6,"at":1000,"dir":"out","kind":"chat.update","data":{"payload":{"channel":"C0TRACE","text":"Working on the fix: patching now.","ts":"ts#2"},"result":{"ok":true},"target":"ts#2"}}
7+
{"seq":7,"at":1400,"dir":"in","kind":"cancel"}
8+
{"seq":8,"at":1400,"dir":"in","kind":"idle"}
9+
{"seq":9,"at":1400,"dir":"out","kind":"assistant.threads.setStatus","data":{"payload":{"channel_id":"C0TRACE","status":"","thread_ts":"ts#1"},"result":{"ok":true},"target":"C0TRACE/ts#1"}}
10+
{"seq":10,"at":1400,"dir":"out","kind":"chat.delete","data":{"payload":{"channel":"C0TRACE","ts":"ts#2"},"result":{"ok":true},"target":"ts#2"}}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{"seq":1,"at":0,"dir":"in","kind":"reply-start"}
2+
{"seq":2,"at":0,"dir":"out","kind":"assistant.threads.setStatus","data":{"payload":{"channel_id":"C0TRACE","loading_messages":["Reading the thread...","Checking context...","Working through the request...","Putting it all together..."],"status":"is typing...","thread_ts":"ts#1"},"result":{"ok":true},"target":"C0TRACE/ts#1"}}
3+
{"seq":3,"at":0,"dir":"in","kind":"final","data":{"text":"Release 2026.1.0 is ready to ship."}}
4+
{"seq":4,"at":0,"dir":"out","kind":"chat.postMessage","data":{"payload":{"blocks":[{"text":{"text":"Release 2026.1.0 is ready to ship.","type":"mrkdwn","verbatim":true},"type":"section"},{"block_id":"openclaw_reply_buttons_1","elements":[{"action_id":"openclaw:reply_button:1:1","text":{"emoji":true,"text":"Approve release","type":"plain_text"},"type":"button","value":"approve-release"},{"action_id":"openclaw:reply_link:1:2","text":{"emoji":true,"text":"Release notes","type":"plain_text"},"type":"button","url":"https://docs.openclaw.ai/release"}],"type":"actions"}],"channel":"C0TRACE","mrkdwn":false,"text":"Release 2026.1.0 is ready to ship.\n\nApprove release\nRelease notes","thread_ts":"ts#1","unfurl_links":false},"result":{"ts":"ts#2"},"target":"C0TRACE"}}
5+
{"seq":5,"at":0,"dir":"in","kind":"idle"}
6+
{"seq":6,"at":0,"dir":"out","kind":"assistant.threads.setStatus","data":{"payload":{"channel_id":"C0TRACE","status":"","thread_ts":"ts#1"},"result":{"ok":true},"target":"C0TRACE/ts#1"}}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{"seq":1,"at":0,"dir":"in","kind":"reply-start"}
2+
{"seq":2,"at":0,"dir":"out","kind":"assistant.threads.setStatus","data":{"payload":{"channel_id":"C0TRACE","loading_messages":["Reading the thread...","Checking context...","Working through the request...","Putting it all together..."],"status":"is typing...","thread_ts":"ts#1"},"result":{"ok":true},"target":"C0TRACE/ts#1"}}
3+
{"seq":3,"at":0,"dir":"in","kind":"partial","data":{"text":"Compiling the changelog"}}
4+
{"seq":4,"at":0,"dir":"out","kind":"chat.postMessage","data":{"payload":{"channel":"C0TRACE","text":"Compiling the changelog","thread_ts":"ts#1","unfurl_links":false},"result":{"ts":"ts#2"},"target":"C0TRACE"}}
5+
{"seq":5,"at":300,"dir":"in","kind":"partial","data":{"text":"Compiling the changelog for 2026.1.0."}}
6+
{"seq":6,"at":1000,"dir":"out","kind":"chat.update","data":{"payload":{"channel":"C0TRACE","text":"Compiling the changelog for 2026.1.0.","ts":"ts#2"},"result":{"ok":true},"target":"ts#2"}}
7+
{"seq":7,"at":1400,"dir":"in","kind":"final","data":{"text":"Compiling the changelog for 2026.1.0.\n\nDone: 12 entries."}}
8+
{"seq":8,"at":1400,"dir":"out","kind":"chat.update","data":{"payload":{"channel":"C0TRACE","text":"Compiling the changelog for 2026.1.0.\n\nDone: 12 entries.","ts":"ts#2"},"result":{"ok":true},"target":"ts#2"}}
9+
{"seq":9,"at":1400,"dir":"in","kind":"idle"}
10+
{"seq":10,"at":1400,"dir":"out","kind":"assistant.threads.setStatus","data":{"payload":{"channel_id":"C0TRACE","status":"","thread_ts":"ts#1"},"result":{"ok":true},"target":"C0TRACE/ts#1"}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{"seq":1,"at":0,"dir":"in","kind":"reply-start"}
2+
{"seq":2,"at":0,"dir":"out","kind":"assistant.threads.setStatus","data":{"payload":{"channel_id":"C0TRACE","loading_messages":["Reading the thread...","Checking context...","Working through the request...","Putting it all together..."],"status":"is typing...","thread_ts":"ts#1"},"result":{"ok":true},"target":"C0TRACE/ts#1"}}
3+
{"seq":3,"at":0,"dir":"in","kind":"partial","data":{"text":"All checks passed."}}
4+
{"seq":4,"at":300,"dir":"in","kind":"final","data":{"text":"All checks passed. Ship it."}}
5+
{"seq":5,"at":300,"dir":"out","kind":"users.info","data":{"payload":{"user":"U0TRACE"},"result":{"team_id":"T0TRACE"},"target":"U0TRACE"}}
6+
{"seq":6,"at":300,"dir":"in","kind":"idle"}
7+
{"seq":7,"at":300,"dir":"out","kind":"assistant.threads.setStatus","data":{"payload":{"channel_id":"C0TRACE","status":"","thread_ts":"ts#1"},"result":{"ok":true},"target":"C0TRACE/ts#1"}}
8+
{"seq":8,"at":300,"dir":"out","kind":"chat.startStream","data":{"payload":{"channel":"C0TRACE","recipient_team_id":"T0TRACE","recipient_user_id":"U0TRACE","thread_ts":"ts#1"},"result":{"error":"method_not_supported_for_channel_type","ok":false},"target":"C0TRACE"}}
9+
{"seq":9,"at":300,"dir":"out","kind":"chat.postMessage","data":{"payload":{"channel":"C0TRACE","text":"All checks passed. Ship it.","thread_ts":"ts#1","unfurl_links":false},"result":{"ts":"ts#2"},"target":"C0TRACE"}}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{"seq":1,"at":0,"dir":"in","kind":"reply-start"}
2+
{"seq":2,"at":0,"dir":"out","kind":"assistant.threads.setStatus","data":{"payload":{"channel_id":"C0TRACE","loading_messages":["Reading the thread...","Checking context...","Working through the request...","Putting it all together..."],"status":"is typing...","thread_ts":"ts#1"},"result":{"ok":true},"target":"C0TRACE/ts#1"}}
3+
{"seq":3,"at":0,"dir":"in","kind":"partial","data":{"text":"Deploy status:"}}
4+
{"seq":4,"at":300,"dir":"in","kind":"tool-progress","data":{"name":"deploy_checks","phase":"start"}}
5+
{"seq":5,"at":300,"dir":"out","kind":"users.info","data":{"payload":{"user":"U0TRACE"},"result":{"team_id":"T0TRACE"},"target":"U0TRACE"}}
6+
{"seq":6,"at":600,"dir":"in","kind":"final","data":{"text":"Deploy status: build is green. Canary rollout reached 50 percent with the error budget intact, latency holding steady at the p95 target, and no alerts firing across the fleet. Rolling out to production now and watching the dashboards for the next fifteen minutes before closing out the change."}}
7+
{"seq":7,"at":600,"dir":"out","kind":"chat.startStream","data":{"payload":{"channel":"C0TRACE","chunks":[{"text":"Using tool: deploy_checks (start)\nDeploy status: build is green. Canary rollout reached 50 percent with the error budget intact, latency holding steady at the p95 target, and no alerts firing across the fleet. Rolling out to production now and watching the dashboards for the next fifteen minutes before closing out the change.","type":"markdown_text"}],"recipient_team_id":"T0TRACE","recipient_user_id":"U0TRACE","thread_ts":"ts#1"},"result":{"ts":"ts#2"},"target":"C0TRACE"}}
8+
{"seq":8,"at":600,"dir":"in","kind":"idle"}
9+
{"seq":9,"at":600,"dir":"out","kind":"assistant.threads.setStatus","data":{"payload":{"channel_id":"C0TRACE","status":"","thread_ts":"ts#1"},"result":{"ok":true},"target":"C0TRACE/ts#1"}}
10+
{"seq":10,"at":600,"dir":"out","kind":"chat.stopStream","data":{"payload":{"channel":"C0TRACE","chunks":[],"ts":"ts#2"},"result":{"ok":true},"target":"ts#2"}}

0 commit comments

Comments
 (0)