@@ -18,7 +18,7 @@ import {
1818 POSTHOG_NOTIFICATIONS ,
1919} from "@posthog/agent" ;
2020import { hydrateSessionJsonl } from "@posthog/agent/adapters/claude/session/jsonl-hydration" ;
21- import { getEffortOptions } from "@posthog/agent/adapters/claude/session/models " ;
21+ import { getReasoningEffortOptions } from "@posthog/agent/adapters/reasoning-effort " ;
2222import { Agent } from "@posthog/agent/agent" ;
2323import {
2424 getAvailableCodexModes ,
@@ -1749,33 +1749,20 @@ For git operations while detached:
17491749 } ,
17501750 ] ;
17511751
1752- if ( adapter === "codex" ) {
1752+ const effortOpts = getReasoningEffortOptions ( adapter , resolvedModelId ) ;
1753+ if ( effortOpts ) {
17531754 configOptions . push ( {
1754- id : " reasoning_effort",
1755- name : " Reasoning Level",
1755+ id : adapter === "codex" ? " reasoning_effort" : "effort ",
1756+ name : adapter === "codex" ? " Reasoning Level" : "Effort ",
17561757 type : "select" ,
17571758 currentValue : "high" ,
1758- options : [
1759- { value : "low" , name : "Low" } ,
1760- { value : "medium" , name : "Medium" } ,
1761- { value : "high" , name : "High" } ,
1762- ] ,
1759+ options : effortOpts ,
17631760 category : "thought_level" ,
1764- description : "Controls how much reasoning effort the model uses" ,
1761+ description :
1762+ adapter === "codex"
1763+ ? "Controls how much reasoning effort the model uses"
1764+ : "Controls how much effort Claude puts into its response" ,
17651765 } ) ;
1766- } else {
1767- const effortOpts = getEffortOptions ( resolvedModelId ) ;
1768- if ( effortOpts ) {
1769- configOptions . push ( {
1770- id : "effort" ,
1771- name : "Effort" ,
1772- type : "select" ,
1773- currentValue : "high" ,
1774- options : effortOpts ,
1775- category : "thought_level" ,
1776- description : "Controls how much effort Claude puts into its response" ,
1777- } ) ;
1778- }
17791766 }
17801767
17811768 return configOptions ;
0 commit comments