Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
20 changes: 0 additions & 20 deletions .husky/pre-push

This file was deleted.

9 changes: 6 additions & 3 deletions packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1838,13 +1838,16 @@ function Task(props: ToolProps<typeof TaskTool>) {
)
})

const current = createMemo(() => tools().findLast((x) => x.state.status !== "pending"))
const executedTools = createMemo(() => tools().filter((x) => x.state.status !== "pending"))
const current = createMemo(() => executedTools().findLast((x) => x.state.status !== "pending"))

const isRunning = createMemo(() => props.part.state.status === "running")

return (
<Switch>
<Match when={props.input.description || props.input.subagent_type}>
<Match
when={(props.input.description || props.input.subagent_type) && (executedTools().length > 0 || isRunning())}
>
<BlockTool
title={"# " + Locale.titlecase(props.input.subagent_type ?? "unknown") + " Task"}
onClick={
Expand All @@ -1857,7 +1860,7 @@ function Task(props: ToolProps<typeof TaskTool>) {
>
<box>
<text style={{ fg: theme.textMuted }}>
{props.input.description} ({tools().length} toolcalls)
{props.input.description} ({executedTools().length} toolcalls)
</text>
<Show when={current()}>
{(item) => {
Expand Down
20 changes: 20 additions & 0 deletions packages/opencode/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,26 @@ export namespace Config {
})
.optional()
.describe("Checker agent configuration for hallucination detection"),
evolution: z
.object({
enabled: z.boolean().optional().describe("Enable prompt evolution system (default: false)"),
model: z
.string()
.optional()
.describe("Model to use for evolution agent in format provider/model (default: same as checker model)"),
frequency: z
.enum(["always", "per_session", "on_failure", "never"])
.optional()
.describe("When to run prompt evolution checks"),
max_evolutions: z
.number()
.int()
.positive()
.optional()
.describe("Maximum number of evolutions per session (default: 5)"),
})
.optional()
.describe("Prompt evolution configuration for automatic prompt optimization"),
})
.strict()
.meta({
Expand Down
Loading