# Scratch-only reproduction prerequisite applied identically to base and head.
# Grok 1.0.77 accepts xai.api_key but advertises only grok.com.
# This bypass is unrelated to MCP elicitation and is never committed.
from pathlib import Path
p=Path('packages/provider-acp/src/server/AcpSessionRuntime.ts')
s=p.read_text()
old='''          configuredAuthMethodId &&
          initializeResult.authMethods !== undefined &&
          authMethod === undefined'''
assert old in s
p.write_text(s.replace(old,'          false',1))
