Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Public search could report cancelled or malformed Grok output as success, and synchronous execution blocked MCP requests. Native CLI login also did not need the copied authentication files or blanket approval flag. Search now returns success only for a complete, validated result and uses native login from a temporary directory outside the repository.
Codex's default 60-second MCP timeout could interrupt a longer search. The plugin manifest allows the owned search deadline and cleanup to finish. A reproduced macOS process-group permission race now gets a bounded retry after a group-absence probe.
Scope
run_search.pyowns CLI execution, deadlines, process-group cleanup, completion and optional JSON Schema validation, and versioned retained outcomes.server.mjsuses an asynchronous search bridge and rejects mismatched process/result outcomes. Search accepts an explicit model, turn budget, and JSON Schema..mcp.jsonsets the host tool timeout to 1815 seconds. Search retains its separate 180-second default and 1800-second maximum.Blast Radius
This changes public X/web search and its cached outcomes. The managed ACP agent APIs remain exported. Local-tool denial reduces file and shell exposure but is not an OS sandbox; native Grok configuration may still load. The separate managed project-agent sandbox launch issue is outside this change.
Verification
npm testpassed 13 Node tests, 21 Python tests, the 12-tool MCP smoke check, syntax checks, and repository validation.grok-4.7, including X URLs/authors/dates, an exact-string empty search, unavailable-model rejection, structured output, responsive MCP ping, and synthetic local-tool restrictions.grok_searchusing six turns and a 180-second deadline, without a fallback or raw CLI invocation. Effective MCP configuration reports 1815 seconds.Independent HTTP fetches of the returned X URLs received 403, so the post text was not independently verified. These checks certify completion/routing behavior rather than the factual truth of every generated statement.