Skip to content

修复手机号注册自动成功后复用旧身份#284

Closed
qqqasdwx wants to merge 2 commits into
QLHazyCoder:devfrom
qqqasdwx:feature/phone-signup-auto-run-success-cleanup-pr
Closed

修复手机号注册自动成功后复用旧身份#284
qqqasdwx wants to merge 2 commits into
QLHazyCoder:devfrom
qqqasdwx:feature/phone-signup-auto-run-success-cleanup-pr

Conversation

@qqqasdwx
Copy link
Copy Markdown

本次改动

  • 手机号注册自动轮次成功后,只有在当前 flow 的完整 workflow node 全部完成时,才清理本轮手机号注册运行态和绑定邮箱运行态。
  • 清理范围包括 signupPhone*accountIdentifier*phoneNumbercurrentPhoneActivationemailregistrationEmailStatestep8VerificationTargetEmail 等字段,避免下一轮复用上一轮手机号或绑定邮箱。
  • 补充自动运行控制器回归测试,并同步长期链路与结构文档。

风险与影响

  • 只影响手机号注册自动流程的成功收尾;未完整成功的轮次不会清理运行态,便于失败恢复继续使用当前上下文。
  • 不包含 Cloudflare Temp Email 固定子域,也不包含手机号密码页跳过注册尾部修复。

测试情况

  • git diff --check
  • node --check background.js && node --check background/auto-run-controller.js
  • node --test tests/auto-run-phone-signup-success-email-cleanup.test.js
  • npm test:1277 pass / 0 fail

hiiidev added a commit to hiiidev/FlowPilot that referenced this pull request May 27, 2026
Clear phone signup runtime only after the active workflow reports every node done, so the next automatic round allocates fresh phone and email state instead of inheriting the previous successful account.

Constraint: User requested local fork carry PR QLHazyCoder#284 because upstream has not merged it.

Rejected: Clearing runtime on every reset | partial workflows and retry paths must preserve in-flight identity state.

Confidence: high

Scope-risk: narrow

Directive: Keep phone/email runtime cleanup gated by full workflow completion, not by round loop boundaries alone.

Tested: node --test tests/auto-run-phone-signup-success-email-cleanup.test.js

Tested: node --test tests/auto-run-*.test.js tests/background-auto-run-module.test.js tests/run-count-unlimited.test.js

Tested: npm test

Not-tested: Real browser extension automation against live phone/email providers.
@QLHazyCoder
Copy link
Copy Markdown
Owner

已在 dev 重新实现并推送,不直接合并原 PR。\n\n手机号注册自动成功后清理旧手机号/绑定邮箱运行态的问题已修复,避免下一轮复用上一轮身份,并补了自动轮次回归测试。对应提交:fae7b9b。\n\n功能已实现,关闭此 PR。

@QLHazyCoder
Copy link
Copy Markdown
Owner

关闭:相关功能已在 dev 重新实现并推送。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants