Skip to content

Commit e7b9f3a

Browse files
committed
feat: re-enable web search for clink codex using correct --enable flag
The previous fix (aceddb6) removed --search entirely, disabling web search. This restores web search functionality using the correct --enable flag that works with the codex exec subcommand. Related to BeehiveInnovations#338
1 parent bcfacce commit e7b9f3a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

conf/cli_clients/codex.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"command": "codex",
44
"additional_args": [
55
"--json",
6-
"--dangerously-bypass-approvals-and-sandbox"
6+
"--dangerously-bypass-approvals-and-sandbox",
7+
"--enable",
8+
"web_search_request"
79
],
810
"env": {},
911
"roles": {

tests/test_clink_tool.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,13 @@ def test_registry_lists_roles():
6060
assert "default" in roles
6161
assert "default" in registry.list_roles("codex")
6262
codex_client = registry.get_client("codex")
63-
assert codex_client.config_args == ["--json", "--dangerously-bypass-approvals-and-sandbox"]
63+
# Verify codex uses --enable web_search_request (not --search which is unsupported by exec)
64+
assert codex_client.config_args == [
65+
"--json",
66+
"--dangerously-bypass-approvals-and-sandbox",
67+
"--enable",
68+
"web_search_request",
69+
]
6470

6571

6672
@pytest.mark.asyncio

0 commit comments

Comments
 (0)