You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 76c1188
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: qa/scenarios/channels/subagent-thread-spawn.yaml
+124-3Lines changed: 124 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
title: Matrix subagent thread spawn
1
+
title: Matrix subagent thread spawn and unbind
2
2
3
3
scenario:
4
4
id: subagent-thread-spawn
@@ -7,7 +7,7 @@ scenario:
7
7
primary:
8
8
- channels.native-threads
9
9
- agent-runtime.subagent-turns-subagents
10
-
objective: Verify sessions_spawn(thread=true, mode=session) creates a persistent Matrix child thread and delivers the child result there.
10
+
objective: Verify a persistent Matrix child thread routes follow-ups to its child session until /session unbind restores ordinary thread routing without deleting the child.
11
11
gatewayConfigPatch:
12
12
tools:
13
13
profile: coding
@@ -28,19 +28,26 @@ scenario:
28
28
- The parent calls sessions_spawn with thread=true and mode=session.
29
29
- Matrix emits the child-session introduction.
30
30
- The child completion carries the introduction message as its normalized thread id.
31
+
- A bound follow-up is recorded in the child session history.
32
+
- /session unbind acknowledges the detach in the same thread without deleting the child session.
33
+
- The next follow-up is recorded only in a different session and replies once in the same thread.
summary: Spawn a bound Matrix child sessionand require native thread relation evidence on completion.
45
+
summary: Spawn a bound Matrix child session, prove its inbound routing, then unbind and prove follow-up history moves to an ordinary thread session.
41
46
config:
42
47
conversationId: main
43
48
childMarker: QA-MATRIX-SUBAGENT-THREAD-OK
49
+
boundMarker: QA-MATRIX-BOUND-FOLLOWUP-OK
50
+
unboundMarker: QA-MATRIX-UNBOUND-FOLLOWUP-OK
44
51
prompt: 'Use sessions_spawn for this QA check. task="Finish with exactly QA-MATRIX-SUBAGENT-THREAD-OK." label=qa-thread-subagent thread=true mode=session. After spawn returns status="accepted", wait for the child session reply in the spawned Matrix thread. Do not write QA-MATRIX-SUBAGENT-THREAD-OK in the parent response.'
0 commit comments