Skip to content

Drive outbound call opener from orchestrator intelligence#7468

Merged
noanflaherty merged 1 commit into
mainfrom
codex/llm-initial-call-opener
Feb 24, 2026
Merged

Drive outbound call opener from orchestrator intelligence#7468
noanflaherty merged 1 commit into
mainfrom
codex/llm-initial-call-opener

Conversation

@noanflaherty
Copy link
Copy Markdown
Contributor

@noanflaherty noanflaherty commented Feb 24, 2026

Summary

  • move outbound call opening responsibility from Twilio's static welcomeGreeting to the call orchestrator's initial LLM turn
  • keep Twilio welcomeGreeting empty by default (transport-only), with explicit CALL_WELCOME_GREETING override still supported
  • trigger an initial opener turn on relay setup using a synthetic [CALL_OPENING] marker and add guardrails in the system prompt for contextual opening behavior
  • extend marker sanitization to strip [CALL_OPENING] from spoken output if echoed
  • update relay and Twilio route tests to cover the new opener flow

Validation

  • bun test src/__tests__/twilio-routes.test.ts src/__tests__/twilio-routes-twiml.test.ts src/__tests__/call-orchestrator.test.ts src/__tests__/relay-server.test.ts
  • bunx tsc --noEmit
  • bun run lint (fails due to pre-existing unrelated unused import in src/__tests__/channel-readiness-service.test.ts)

Open with Devin

@noanflaherty noanflaherty merged commit 3b923d0 into main Feb 24, 2026
1 check failed
@noanflaherty noanflaherty deleted the codex/llm-initial-call-opener branch February 24, 2026 02:52
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 5 additional findings in Devin Review.

Open in Devin Review

Comment thread assistant/src/calls/relay-server.ts
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: 54fff661b0

ℹ️ 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 assistant/src/calls/call-orchestrator.ts
@noanflaherty
Copy link
Copy Markdown
Contributor Author

Addressed in #7516

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