Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(scheduler): explain script fallback on utility errors (#3341)

Tsai Yuancc54fe1a8ca6
diff --git a/packages/lizi-mcps/src/scheduler/errors.test.ts b/packages/lizi-mcps/src/scheduler/errors.test.ts
index be437bf97e..2685bb9009 100644
--- a/packages/lizi-mcps/src/scheduler/errors.test.ts
+++ b/packages/lizi-mcps/src/scheduler/errors.test.ts
@@ -14,21 +14,7 @@ describe('classifySchedulerError utility model diagnostics', () => {
);
expect(result.code).toBe(code);
- // Message must contain the original diagnostic
expect(result.message).toContain(`[${code}] safe diagnostic`);
- });
-
- it.each([
- 'UTILITY_MODEL_NO_CANDIDATE',
- 'UTILITY_MODEL_ALL_CANDIDATES_FAILED',
- 'UTILITY_MODEL_EMPTY_RESPONSE',
- 'UTILITY_MODEL_TIMEOUT',
- ] as const)('appends actionable hint for %s so agents can suggest passing script', (code) => {
- const result = classifySchedulerError(
- new Error(`[${code}] all candidates failed`),
- );
-
- // Must hint that passing "script" bypasses generation (#3317)
expect(result.message).toContain('script');
expect(result.message).toContain('bypass');
});