test(matrix): clarify block streaming QA prompt · openclaw/openclaw@32d9caf
vincentkoc
·
2026-05-28
·
via Recent Commits to openclaw:main
File tree
extensions/qa-matrix/src/runners/contract
| Original file line number | Diff line number | Diff line change |
|---|
@@ -135,9 +135,10 @@ export function buildMatrixBlockStreamingPrompt(
|
135 | 135 | secondText: string, |
136 | 136 | ) { |
137 | 137 | return [ |
138 | | -`${sutUserId} Block streaming QA check: first reply with only this exact marker: \`${firstText}\`.`, |
139 | | -"Then use the read tool exactly once on `QA_KICKOFF_TASK.md`.", |
140 | | -`After that read completes, reply with only this exact marker: \`${secondText}\`.`, |
| 138 | +`${sutUserId} Block streaming QA check: complete this whole sequence in one turn.`, |
| 139 | +`Step 1: send an assistant text block containing only this exact marker: \`${firstText}\`.`, |
| 140 | +"Step 2: do not stop after that marker. Use the read tool exactly once on `QA_KICKOFF_TASK.md`.", |
| 141 | +`Step 3: after that read completes, send a final assistant text block containing only this exact marker: \`${secondText}\`.`, |
141 | 142 | ].join("\n"); |
142 | 143 | } |
143 | 144 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4162,11 +4162,13 @@ describe("matrix live qa scenarios", () => {
|
4162 | 4162 | }); |
4163 | 4163 | const body = mockMessageBody(sendTextMessage, "sendTextMessage"); |
4164 | 4164 | expect(body).toMatch( |
4165 | | -/first reply with only this exact marker: `MATRIX_QA_BLOCK_ONE_[A-F0-9]{8}`/, |
| 4165 | +/Step 1: send an assistant text block containing only this exact marker: `MATRIX_QA_BLOCK_ONE_[A-F0-9]{8}`/, |
| 4166 | +); |
| 4167 | +expect(body).toContain( |
| 4168 | +"Step 2: do not stop after that marker. Use the read tool exactly once on `QA_KICKOFF_TASK.md`.", |
4166 | 4169 | ); |
4167 | | -expect(body).toContain("Then use the read tool exactly once on `QA_KICKOFF_TASK.md`."); |
4168 | 4170 | expect(body).toMatch( |
4169 | | -/After that read completes, reply with only this exact marker: `MATRIX_QA_BLOCK_TWO_[A-F0-9]{8}`/, |
| 4171 | +/Step 3: after that read completes, send a final assistant text block containing only this exact marker: `MATRIX_QA_BLOCK_TWO_[A-F0-9]{8}`/, |
4170 | 4172 | ); |
4171 | 4173 | expect(scenario.configOverrides?.toolProfile).toBe("coding"); |
4172 | 4174 | expect(mockObjectArg(waitForRoomEvent, "waitForRoomEvent", 1).since).toBe( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。