You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
split WhatsApp pairing into country calling-code and national-number controls
use the standards-defined tel-country-code and tel-national autocomplete hints so Safari can offer a phone picker without overwriting the country prefix
keep the legacy full phone=+... POST contract for Station and older clients
preserve the blank saved-secret fallback and reject incomplete or malformed split input before changing state
mobile rendering at 390 px without horizontal overflow
hotpatched and checksum-verified commit 9640b90 on the Azure box; the settings service is active on the exact tested binary
Compatibility
Station's current single-field international request remains supported and has regression coverage. The defanglabs/station repository is not visible to the authenticated GitHub account, so its own form change must follow once repository access is available.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
📝 Walkthrough
The WhatsApp pairing form now separates the country calling code from the national number. The handler validates the combined number, retains support for legacy full international numbers, and uses the saved number when both fields are blank.
Changes: WhatsApp pairing
Layer / File(s)
Summary
Split-number form modules/agent-box.nix, modules/src/settings-daemon.py, modules/src/settings.css, tests/golden/web/payloads/agent-box-settings/bin/agent-box-settings, tests/test-connect-card.py
The pairing forms use separate country-code and national-number inputs with distinct autocomplete hints and updated guidance. CSS sizes the fields, and the form tests check the new inputs.
Number validation and compatibility modules/agent-box.nix, modules/src/settings-daemon.py, tests/golden/web/payloads/agent-box-settings/bin/agent-box-settings, tests/test-connect-card.py
The handlers combine and validate split input, accept a legacy full international number, and retain the saved-number fallback. Tests cover valid split input and reject malformed or incomplete input without replacing the saved number.
No actionable merge-blocking issue was established for the WhatsApp phone-input change.
Pre-merge checks · 4 · 1
Failed checks (1 warning)
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 18.18% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 2 files. (3 skipped: …
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks (4 passed)
Check name
Status
Explanation
Title check
The title accurately identifies the WhatsApp phone autofill fix, which is a central part of the changes. It is concise and specific.
Description check
The description directly explains the split phone fields, autocomplete behavior, validation, compatibility, testing, and mobile rendering changes.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
Docstring coverage is 18.18% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 2 files. (3 skipped: 3 unsupported.)
Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
Commit to this branch
Create a new PR
🧪 Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tel-country-codeandtel-nationalautocomplete hints so Safari can offer a phone picker without overwriting the country prefixphone=+...POST contract for Station and older clientsAAAA-BBBBvisual pairing-code format landed in Fix WhatsApp delivery to Codex sessions #850Refs #820.
Validation
python3 tests/test-connect-card.py(42 passed)python3 tests/test_agentbox.py(157 passed, 1 skipped)nix build -L --keep-going .#ci-nativegit diff --check9640b90on the Azure box; the settings service is active on the exact tested binaryCompatibility
Station's current single-field international request remains supported and has regression coverage. The
defanglabs/stationrepository is not visible to the authenticated GitHub account, so its own form change must follow once repository access is available.Mobile screenshot