test(app): relax review patch mock matching
This commit is contained in:
parent
99845597b5
commit
cfcdd5c1dd
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
import { waitSessionIdle, withSession } from "../actions"
|
import { waitSessionIdle, withSession } from "../actions"
|
||||||
import { test, expect } from "../fixtures"
|
import { test, expect } from "../fixtures"
|
||||||
import { inputMatch } from "../prompt/mock"
|
import { promptMatch } from "../prompt/mock"
|
||||||
|
|
||||||
const count = 14
|
const count = 14
|
||||||
|
|
||||||
|
|
@ -47,7 +47,7 @@ async function patchWithMock(
|
||||||
patchText: string,
|
patchText: string,
|
||||||
) {
|
) {
|
||||||
const callsBefore = await llm.calls()
|
const callsBefore = await llm.calls()
|
||||||
await llm.toolMatch(inputMatch({ patchText }), "apply_patch", { patchText })
|
await llm.toolMatch(promptMatch("Apply the provided patch exactly once."), "apply_patch", { patchText })
|
||||||
await sdk.session.promptAsync({
|
await sdk.session.promptAsync({
|
||||||
sessionID,
|
sessionID,
|
||||||
agent: "build",
|
agent: "build",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue