MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / _run_anyauto_fallback

Method _run_anyauto_fallback

src/core/register.py:3170–3198  ·  view source on GitHub ↗

Run the PR60 AnyAuto V2 engine as a controlled fallback.

(self, primary_error: str = "")

Source from the content-addressed store, hash-verified

3168 return result
3169
3170 def _run_anyauto_fallback(self, primary_error: str = "") -> RegistrationResult:
3171 """Run the PR60 AnyAuto V2 engine as a controlled fallback."""
3172 settings = get_settings()
3173 max_retries = int(getattr(settings, "registration_max_retries", 3) or 3)
3174 browser_mode = str(
3175 getattr(settings, "registration_anyauto_browser_mode", "protocol") or "protocol"
3176 ).strip()
3177
3178 flow_engine = AnyAutoRegistrationEngine(
3179 email_service=self.email_service,
3180 proxy_url=self.proxy_url,
3181 callback_logger=self._log,
3182 max_retries=max_retries,
3183 browser_mode=browser_mode or "protocol",
3184 extra_config=None,
3185 )
3186 flow_result = flow_engine.run()
3187
3188 self.email_info = flow_engine.email_info
3189 self.email = flow_engine.email
3190 self.inbox_email = flow_engine.inbox_email
3191 self.password = flow_engine.password
3192 self.session = flow_engine.session
3193 self.device_id = flow_engine.device_id
3194
3195 fallback_result = self._build_anyauto_fallback_result(flow_result, primary_error=primary_error)
3196 if fallback_result.session_token:
3197 self.session_token = fallback_result.session_token
3198 return fallback_result
3199
3200 def _should_try_anyauto_fallback(self, result: RegistrationResult) -> bool:
3201 settings = get_settings()

Callers 1

runMethod · 0.95

Calls 4

runMethod · 0.95
get_settingsFunction · 0.85

Tested by

no test coverage detected