Skip to content

Fix/veteran callback staged capture#48

Merged
CapuchaRojo merged 3 commits into
mainfrom
fix/veteran-callback-staged-capture
May 12, 2026
Merged

Fix/veteran callback staged capture#48
CapuchaRojo merged 3 commits into
mainfrom
fix/veteran-callback-staged-capture

Conversation

@CapuchaRojo
Copy link
Copy Markdown
Owner

🚀 VetCan Pull Request

Summary

Implemented in 5a39343.

The veteran callback branch now uses staged capture instead of relying on one long utterance. If name and phone are already known from the new-patient path, the flow asks only for the best callback time and references the known phone ending. Missing name/phone paths are captured one field at a time. Short acknowledgements like “yes” no longer complete the callback-time step.

Validation:

  • WSL npm run build passed
  • targeted voice suites passed: 66/66 tests
  • git diff --check passed with line-ending warnings only

No Press 2, Press 3, Press 4, reschedule, cancellation, payment, Acuity mutation, Renewal TELE pricing, or veteran eligibility behavior was widened.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ce5ef4a70a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread api/src/routes/voice.ts
if (isPartialPhoneOnly(text)) return false;
if (hasVeteranCallbackTimeHint(text)) return true;
if (text.replace(/\D/g, "").length >= 7) return false;
if (isLikelyNameOnlyVeteranCallback(text)) return false;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Accept free-form callback windows

In the veteran callback time step, this check rejects nearly any alphabetic phrase that lacks one of the hard-coded time keywords, because validateNameInput accepts any non-empty sanitized string up to 50 characters. As a result, natural callback windows like “when someone is available” or “at your convenience” are treated as names, so isValidVeteranCallbackTime reprompts and can fall back with missing details instead of creating the callback, even though the final >= 3 word fallback appears intended to accept these responses.

Useful? React with 👍 / 👎.

@CapuchaRojo CapuchaRojo merged commit 6bf507f into main May 12, 2026
3 checks passed
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.

1 participant