test: finish fanout responses followup · openclaw/openclaw@833f1ce
steipete
·
2026-05-17
·
via Recent Commits to openclaw:main
File tree
extensions/qa-lab/src/providers/mock-openai
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1983,7 +1983,9 @@ describe("qa mock openai server", () => {
|
1983 | 1983 | stream: false, |
1984 | 1984 | tools: [SESSIONS_SPAWN_TOOL], |
1985 | 1985 | input: [ |
1986 | | -makeUserInput("Continue with the QA scenario plan."), |
| 1986 | +makeUserInput( |
| 1987 | +"Continue with the QA scenario plan and report grouped into Worked, Failed, Blocked, and Follow-up.", |
| 1988 | +), |
1987 | 1989 | { |
1988 | 1990 | type: "function_call_output", |
1989 | 1991 | output: '{"status":"accepted","childSessionKey":"agent:qa:subagent:beta"}', |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2053,6 +2053,10 @@ async function buildResponsesPayload(
|
2053 | 2053 | }); |
2054 | 2054 | } |
2055 | 2055 | } |
| 2056 | +if (scenarioState.subagentFanoutPhase === 2 && prompt) { |
| 2057 | +scenarioState.subagentFanoutPhase = 3; |
| 2058 | +return buildAssistantEvents("subagent-1: ok\nsubagent-2: ok"); |
| 2059 | +} |
2056 | 2060 | const explicitSessionsSpawnArgs = buildExplicitSessionsSpawnArgs(allInputText); |
2057 | 2061 | if (explicitSessionsSpawnArgs && !toolOutput) { |
2058 | 2062 | return buildToolCallEventsWithArgs("sessions_spawn", explicitSessionsSpawnArgs); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。