Skip to content
Open
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
33 changes: 10 additions & 23 deletions apps/code/src/main/services/agent/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
POSTHOG_NOTIFICATIONS,
} from "@posthog/agent";
import { hydrateSessionJsonl } from "@posthog/agent/adapters/claude/session/jsonl-hydration";
import { getEffortOptions } from "@posthog/agent/adapters/claude/session/models";
import { getReasoningEffortOptions } from "@posthog/agent/adapters/reasoning-effort";
import { Agent } from "@posthog/agent/agent";
import {
getAvailableCodexModes,
Expand Down Expand Up @@ -1735,33 +1735,20 @@ For git operations while detached:
},
];

if (adapter === "codex") {
const effortOpts = getReasoningEffortOptions(adapter, resolvedModelId);
if (effortOpts) {
configOptions.push({
id: "reasoning_effort",
name: "Reasoning Level",
id: adapter === "codex" ? "reasoning_effort" : "effort",
name: adapter === "codex" ? "Reasoning Level" : "Effort",
type: "select",
currentValue: "high",
options: [
{ value: "low", name: "Low" },
{ value: "medium", name: "Medium" },
{ value: "high", name: "High" },
],
options: effortOpts,
category: "thought_level",
description: "Controls how much reasoning effort the model uses",
description:
adapter === "codex"
? "Controls how much reasoning effort the model uses"
: "Controls how much effort Claude puts into its response",
});
} else {
const effortOpts = getEffortOptions(resolvedModelId);
if (effortOpts) {
configOptions.push({
id: "effort",
name: "Effort",
type: "select",
currentValue: "high",
options: effortOpts,
category: "thought_level",
description: "Controls how much effort Claude puts into its response",
});
}
}

return configOptions;
Expand Down
Loading
Loading