Skip to content

Commit a2fad51

Browse files
committed
fix: format context limit regression test
1 parent 5bb0fe4 commit a2fad51

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

tests/hooks-permission.test.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,12 @@ function buildMessage(id: string, role: "user" | "assistant", text: string): Wit
8989

9090
test("system prompt handler caches full model context for percentage thresholds", async () => {
9191
const state = createSessionState()
92-
const handler = createSystemPromptHandler(
93-
state,
94-
new Logger(false),
95-
buildConfig("deny"),
96-
{
97-
reload() {},
98-
getRuntimePrompts() {
99-
return {} as any
100-
},
101-
} as any,
102-
)
92+
const handler = createSystemPromptHandler(state, new Logger(false), buildConfig("deny"), {
93+
reload() {},
94+
getRuntimePrompts() {
95+
return {} as any
96+
},
97+
} as any)
10398

10499
await handler(
105100
{

0 commit comments

Comments
 (0)