Files
codex-oauth-plus-onboarding…/skill/codex-oauth-plus-onboarding/references/openai-add-phone-uk44-and-runner-cleanup-2026-05-10.md
T

2.4 KiB

OpenAI add-phone UK +44 and interrupted-run cleanup notes (2026-05-10)

What changed

BOSS requested stopping the active Argentina/Netherlands/Indonesia run and switching phone verification to the UK +44.

Mandatory cleanup when stopping a runner

When a background phone-verification runner is killed/interrupted, immediately inspect the last active 5sim activation from the JSONL log and cancel it if status is still RECEIVED.

Observed interrupted order:

{"activation_id":"1006733450","country":"netherlands","status":"RECEIVED","sms_count":0}

Cleanup result:

{"activation_id":"1006733450","result":"CANCELED"}

Do not assume a killed runner canceled its current order.

UK +44 mapping for OpenAI add-phone

5sim country slug used successfully for buying OpenAI activation:

england

OpenAI selector mapping:

ISO: GB
Visible text: 英国 (+44)
Dial prefix: 44

Config for UK-only run:

FIVE_SIM_COUNTRY_ORDER=england
PHONE_VERIFICATION_REPLACEMENT_LIMIT=10
FIVE_SIM_OPERATOR=any
FIVE_SIM_PRODUCT=openai

Strict country gate remains mandatory

Before buying and before clicking Continue, verify both:

{"country":"英国 (+44)","selectValue":"GB"}

Observed valid gate before the first UK buy:

{
  "phase": "country_gate_before_buy",
  "country": "england",
  "attempt": 1,
  "ok": true,
  "country_text": "英国 (+44)",
  "selectValue": "GB"
}

Then 5sim bought a UK number:

{"phase":"buy","country":"england","activation_id":1006734496,"masked":"+4477***381","status":"RECEIVED"}

Runner behavior after UK switch

Use a single configurable strict-gate runner, not ad-hoc CDP snippets:

  1. Stop old runner.
  2. Cancel in-flight activation from its log.
  3. Set FIVE_SIM_COUNTRY_ORDER=england.
  4. Ensure metadata includes england: {iso:'GB', visible:'英国 (+44)', prefix:'44'}.
  5. Restore OAuth/add-phone if currently on phone-verification or a Chrome error page.
  6. Set country via native select.
  7. Run strict gate.
  8. Buy only after gate passes.
  9. Fill local phone part.
  10. Run strict gate again.
  11. Click Continue.
  12. Poll; resend once; poll; cancel/rotate if no SMS.

Pitfall

BOSS watches the visible screen and will catch wrong country/area code. If the visible selector says 美国 (+1) while a non-US number is being used, stop immediately, cancel any new order, restore add-phone, and verify the correct visible code before buying/submitting again.