fix(setup): the setup chat reasons at low effort on every provider (#129405)
With a user key the setup chat inherited the default effort, so the turn before the handoff spent 100 s writing 3,226 tokens (12 KB of reasoning) while the chat showed only a timer. The free tier already ran at minimal.
This commit is contained in:
@@ -188,7 +188,7 @@ def _write_setup_config(path: Path) -> None:
|
||||
config = read_user_config_raw(config_path)
|
||||
agent = config.get("agent") or {}
|
||||
disabled = parse_config_string_list(agent.get("disabled_toolsets"))
|
||||
config["agent"] = {**agent, "coding_context": "off",
|
||||
config["agent"] = {**agent, "coding_context": "off", "reasoning_effort": "low",
|
||||
"disabled_toolsets": list(dict.fromkeys([*disabled, *_SETUP_DISABLED_TOOLSETS]))}
|
||||
config["platform_toolsets"] = {**(config.get("platform_toolsets") or {}), "cli": list(_SETUP_TOOLSETS)}
|
||||
config["tools"] = {**(config.get("tools") or {}), "tool_search": {"defer": list(_SETUP_DEFERRED_TOOLS)}}
|
||||
|
||||
Reference in New Issue
Block a user