Skip to content

Commit c7402fa

Browse files
test(opencode): define truthful title labels Refs #39
1 parent 23cde55 commit c7402fa

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎packages/opencode/test/agent/agent.test.ts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ it.instance("build agent has correct default properties", () =>
6969
}),
7070
)
7171

72+
it.instance("title agent produces labels without unsupported diagnostic claims", () =>
73+
Effect.gen(function* () {
74+
const title = yield* load((svc) => svc.get("title"))
75+
expect(title?.prompt).toContain("conversation label")
76+
expect(title?.prompt).toContain("Never claim that a problem was found, detected, fixed, verified, or diagnosed")
77+
expect(title?.prompt).toContain("unless the user explicitly stated that outcome")
78+
}),
79+
)
80+
7281
it.instance("plan agent denies edits except .opencode/plans/*", () =>
7382
Effect.gen(function* () {
7483
const plan = yield* load((svc) => svc.get("plan"))

0 commit comments

Comments
 (0)