fix(gateway): satisfy lint for MCP yield context · openclaw/openclaw@d7a09b1
zhangguiping
·
2026-06-16
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1702,7 +1702,7 @@ describe("runCliAgent reliability", () => {
|
1702 | 1702 | ...createManagedRun(exit), |
1703 | 1703 | wait: vi.fn(async () => { |
1704 | 1704 | const runtime = await import("../gateway/mcp-http.loopback-runtime.js"); |
1705 | | -await runtime.resolveMcpLoopbackYieldHandler("s1")?.("waiting on subagents"); |
| 1705 | +runtime.resolveMcpLoopbackYieldHandler("s1")?.("waiting on subagents"); |
1706 | 1706 | return exit; |
1707 | 1707 | }), |
1708 | 1708 | }); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -681,7 +681,7 @@ export async function runPreparedCliAgent(
|
681 | 681 | const agentSessionId = unflushedCliSessionId |
682 | 682 | ? "" |
683 | 683 | : (resultParams.effectiveCliSessionId ?? params.sessionId ?? ""); |
684 | | -const yielded = loopbackYieldContext.yielded === true; |
| 684 | +const yielded = loopbackYieldContext.yielded; |
685 | 685 | const stopReason = yielded ? "end_turn" : "completed"; |
686 | 686 | const finishReason = yielded ? "end_turn" : "stop"; |
687 | 687 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。