fix: normalize history session provider lookup
parent
c0c32445ab
commit
fc542671eb
@ -0,0 +1,16 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { getHistoryLimitFromSessionKey } from "./history.js";
|
||||
|
||||
describe("getHistoryLimitFromSessionKey", () => {
|
||||
it("matches channel history limits across canonical provider aliases", () => {
|
||||
expect(
|
||||
getHistoryLimitFromSessionKey("agent:main:z-ai:channel:general", {
|
||||
channels: {
|
||||
"z.ai": {
|
||||
historyLimit: 17,
|
||||
},
|
||||
},
|
||||
}),
|
||||
).toBe(17);
|
||||
});
|
||||
});
|
||||
Loading…
Reference in New Issue