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

Method run

src/core/register.py:3241–3258  ·  view source on GitHub ↗

Run the current primary flow first, then selectively fall back to PR60 AnyAuto V2.

(self)

Source from the content-addressed store, hash-verified

3239 return any(marker in error_text for marker in retryable_markers)
3240
3241 def run(self) -> RegistrationResult:
3242 """Run the current primary flow first, then selectively fall back to PR60 AnyAuto V2."""
3243 primary_result = self._run_primary_registration()
3244 if primary_result.success:
3245 return primary_result
3246
3247 if not self._should_try_anyauto_fallback(primary_result):
3248 return primary_result
3249
3250 primary_error = str(primary_result.error_message or "").strip()
3251 self._log("主注册链路未成功,开始尝试 PR60 anyauto V2 回退流程...", "warning")
3252 fallback_result = self._run_anyauto_fallback(primary_error=primary_error)
3253 if fallback_result.success:
3254 self._log("PR60 anyauto V2 回退流程成功,已补上 V2 注册兜底能力")
3255 return fallback_result
3256
3257 self._log(f"PR60 anyauto V2 回退流程也失败了: {fallback_result.error_message}", "warning")
3258 return fallback_result
3259
3260 def save_to_database(
3261 self,

Calls 4

_logMethod · 0.95
_run_anyauto_fallbackMethod · 0.95