fix: removed use_websearch; this parameter was confusing Codex. It started using this to prompt the external model to perform searches! web-search is enabled by Claude / Codex etc by default and the external agent can ask claude to search on its behalf.
This commit is contained in:
@@ -90,11 +90,6 @@ class ThinkDeepWorkflowRequest(WorkflowRequest):
|
||||
default=None,
|
||||
description="Depth: minimal/low/medium/high/max. Default 'high'.",
|
||||
)
|
||||
use_websearch: Optional[bool] = Field(
|
||||
default=None,
|
||||
description="Enable web search for docs, brainstorming, architecture, solutions.",
|
||||
)
|
||||
|
||||
# Context files and investigation scope
|
||||
problem_context: Optional[str] = Field(
|
||||
default=None,
|
||||
@@ -200,11 +195,6 @@ class ThinkDeepTool(WorkflowTool):
|
||||
except AttributeError:
|
||||
self.stored_request_params["thinking_mode"] = None
|
||||
|
||||
try:
|
||||
self.stored_request_params["use_websearch"] = request.use_websearch
|
||||
except AttributeError:
|
||||
self.stored_request_params["use_websearch"] = None
|
||||
|
||||
# Add thinking-specific context to response
|
||||
response_data.update(
|
||||
{
|
||||
@@ -349,16 +339,6 @@ but also acknowledge strong insights and valid conclusions.
|
||||
pass
|
||||
return super().get_request_thinking_mode(request)
|
||||
|
||||
def get_request_use_websearch(self, request) -> bool:
|
||||
"""Use stored use_websearch from initial request."""
|
||||
try:
|
||||
stored_params = self.stored_request_params
|
||||
if stored_params and stored_params.get("use_websearch") is not None:
|
||||
return stored_params["use_websearch"]
|
||||
except AttributeError:
|
||||
pass
|
||||
return super().get_request_use_websearch(request)
|
||||
|
||||
def _get_problem_context(self, request) -> str:
|
||||
"""Get problem context from request. Override for custom context handling."""
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user