test: isolate gateway live model sessions · openclaw/openclaw@e4f5447
steipete
·
2026-04-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1498,14 +1498,17 @@ async function runGatewayModelSuite(params: GatewayModelSuiteParams) {
|
1498 | 1498 | process.env.ANTHROPIC_API_KEY = anthropicKeys[0]; |
1499 | 1499 | logProgress(`[${params.label}] anthropic keys loaded: ${anthropicKeys.length}`); |
1500 | 1500 | } |
1501 | | -const sessionKey = `agent:${agentId}:${params.label}`; |
1502 | 1501 | const failures: Array<{ model: string; error: string }> = []; |
1503 | 1502 | let skippedCount = 0; |
1504 | 1503 | const total = params.candidates.length; |
1505 | 1504 | |
1506 | 1505 | for (const [index, model] of params.candidates.entries()) { |
1507 | 1506 | const modelKey = `${model.provider}/${model.id}`; |
1508 | 1507 | const progressLabel = `[${params.label}] ${index + 1}/${total} ${modelKey}`; |
| 1508 | +// Use a separate session per model: live providers can finalize late after |
| 1509 | +// skip/retry paths, and a reset on a reused key does not isolate those |
| 1510 | +// delayed transcript writes from the next model probe. |
| 1511 | +const sessionKey = `agent:${agentId}:${params.label}:model-${index + 1}`; |
1509 | 1512 | |
1510 | 1513 | const attemptMax = |
1511 | 1514 | model.provider === "anthropic" && anthropicKeys.length > 0 ? anthropicKeys.length : 1; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。