fix: detect Ollama "prompt too long" as context overflow error (#34019)

Merged via squash.

Prepared head SHA: 825a402f0f
Co-authored-by: lishuaigit <7495165+lishuaigit@users.noreply.github.com>
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Reviewed-by: @jalehman
This commit is contained in:
lishuaigit
2026-03-17 09:57:33 +08:00
committed by GitHub
parent 6da9ba3267
commit 76500c7a78
20 changed files with 275 additions and 50 deletions

View File

@@ -33,7 +33,6 @@ function sortStrings(values: readonly string[]) {
}
const contractRuntime = createNonExitingRuntime();
function expectDirectoryEntryShape(entry: ChannelDirectoryEntry) {
expect(["user", "group", "channel"]).toContain(entry.kind);
expect(typeof entry.id).toBe("string");