Spaces:
Paused
Paused
fix: Codex OAuth consent 循环中检测密码页面并自动填入
Browse filesconsent 流程中如果出现密码页面,之前会死循环点 Continue。
现在检测到密码输入框后自动填入密码并提交。
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
551 unmodified lines552553554555556557551 unmodified linesexcept Exception:pass# 处理邮箱验证码页面(可能在 consent 流程中出现)try:otp_input = page.locator('input[name="code"], input[inputmode="numeric"]').first551 unmodified lines552553554555556557558559560561562563564565566567568569570571551 unmodified linesexcept Exception:pass# 处理密码页面(可能在 consent 流程中出现)try:pwd_field = page.locator('input[name="password"], input[type="password"]').firstif pwd_field.is_visible(timeout=2000) and password:logger.info("[Codex] 需要重新输入密码 (step %d)...", step + 1)pwd_field.fill(password)time.sleep(0.5)_click_primary_auth_button(page, pwd_field, ["Continue", "继续", "Log in"])time.sleep(5)_screenshot(page, f"codex_04_password_{step + 1}.png")continueexcept Exception:pass# 处理邮箱验证码页面(可能在 consent 流程中出现)try:otp_input = page.locator('input[name="code"], input[inputmode="numeric"]').first
src/autoteam/codex_auth.py+14