Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions packages/tui/src/component/dialog-agent-effort.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,24 @@ const ENTRIES: {
value: Level
title: string
description: string
details: string[]
}[] = [
{
value: "fast",
title: "Fast",
description: "no review ritual",
details: ["Inline self-check and syntax/smoke validation, delivered with an honest unreviewed label"],
description: "Reliable workhorse for everyday tasks",
},
{
value: "medium",
title: "Medium",
// No "· default" here: on home the persisted selection decides the
// default now, so a static claim on one row would contradict it. The
// cursor and the footer carry that meaning instead.
description: "up to 2 review passes",
details: ["Independent review for code changes; only blocking findings force another pass, then an honest status"],
description: "Smarter agent for more demanding work",
},
{
value: "thorough",
title: "Thorough",
description: "review until clean",
details: ["Structured review contract with severity-driven convergence and full validation gates, no pass cap"],
description: "Deep, meticulous work on complex tasks from start to finish",
},
]

Expand All @@ -54,7 +50,6 @@ export function DialogAgentEffort() {
</>
),
description: entry.description,
details: entry.details,
onSelect: () => {
dialog.clear()
local.effort.set(entry.value)
Expand Down
15 changes: 11 additions & 4 deletions packages/tui/test/cli/tui/dialog-agent-effort.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ async function fileJson(file: string, level?: string): Promise<unknown> {
}

describe("agent effort selector", () => {
test("renders three levels with process meanings and the session's selection", async () => {
test("renders three levels with purpose-led copy and the session's selection", async () => {
const harness = await mountEffort({
route: { type: "session", sessionID: SESSION_THOROUGH },
model: "test-provider/variant-model",
Expand All @@ -394,10 +394,17 @@ describe("agent effort selector", () => {
expect(frame).toContain("Fast")
expect(frame).toContain("Medium")
expect(frame).toContain("Thorough")
expect(frame).toContain("no review ritual")
expect(frame).toContain("up to 2 review passes")
expect(frame).toContain("review until clean")
expect(frame).toContain("Reliable workhorse for everyday tasks")
expect(frame).toContain("Smarter agent for more demanding work")
expect(frame).toContain("Deep, meticulous work on complex tasks from start to finish")
expect(frame).toContain("Stored on this session")
const lines = frame.split("\n")
const searchRow = lines.findIndex((line) => line.includes("Search"))
const footerRow = lines.findIndex((line) => line.includes("Stored on this session"))
expect(searchRow).toBeGreaterThanOrEqual(0)
expect(footerRow).toBeGreaterThan(searchRow)
const selectorRows = lines.slice(searchRow + 1, footerRow).filter((line) => line.trim().length > 0)
expect(selectorRows).toHaveLength(3)
expect(markerLine(frame)).toContain("Thorough")
} finally {
await harness.dispose()
Expand Down
Loading