Skip to content

developブランチをmainにマージします - #279

Merged
MasanoriSuda merged 27 commits into
mainfrom
develop
Mar 9, 2026
Merged

MasanoriSuda merged 27 commits into
mainfrom
develop

Conversation

@MasanoriSuda

Copy link
Copy Markdown
Owner

No description provided.

@coderabbitai

coderabbitai Bot commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@MasanoriSuda has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 14 minutes and 17 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: fbd38e56-4700-4af9-8777-b630049b1c3e

📥 Commits

Reviewing files that changed from the base of the PR and between 6baf644 and f5ce292.

📒 Files selected for processing (40)
  • .github/workflows/backend-coverage.yml
  • .gitignore
  • docs/steering/STEER-266_incoming-call-popup.md
  • docs/steering/STEER-267_ivr-vr-notify-fix.md
  • docs/steering/STEER-275_outbound-call-history-display.md
  • docs/steering/index.md
  • virtual-voicebot-backend/docs/steering/STEER-272_outbound-inbound-support.md
  • virtual-voicebot-backend/docs/steering/STEER-273_fix-outbound-inbound-judgment.md
  • virtual-voicebot-backend/migrations/20260302000001_add_direction_callee_number_to_call_logs.sql
  • virtual-voicebot-backend/src/bin/serversync.rs
  • virtual-voicebot-backend/src/interface/db/postgres.rs
  • virtual-voicebot-backend/src/interface/sync/mod.rs
  • virtual-voicebot-backend/src/interface/sync/notification_worker.rs
  • virtual-voicebot-backend/src/protocol/session/b2bua.rs
  • virtual-voicebot-backend/src/protocol/session/coordinator.rs
  • virtual-voicebot-backend/src/protocol/session/handlers/mod.rs
  • virtual-voicebot-backend/src/protocol/session/handlers/sip_handler.rs
  • virtual-voicebot-backend/src/protocol/sip/core.rs
  • virtual-voicebot-backend/src/protocol/sip/mod.rs
  • virtual-voicebot-backend/src/protocol/sip/utils.rs
  • virtual-voicebot-backend/src/shared/config/mod.rs
  • virtual-voicebot-backend/src/shared/ports/call_log_port.rs
  • virtual-voicebot-frontend/app/api/incoming-call-notifications/[id]/route.ts
  • virtual-voicebot-frontend/app/api/incoming-call-notifications/route.ts
  • virtual-voicebot-frontend/app/api/ingest/incoming-call/route.ts
  • virtual-voicebot-frontend/components/IncomingCallPopup.tsx
  • virtual-voicebot-frontend/components/admin-layout.tsx
  • virtual-voicebot-frontend/components/call-history-content.tsx
  • virtual-voicebot-frontend/components/calls/call-detail-drawer.tsx
  • virtual-voicebot-frontend/components/calls/calls-table.tsx
  • virtual-voicebot-frontend/docs/steering/STEER-270_call-history-status-label.md
  • virtual-voicebot-frontend/docs/steering/index.md
  • virtual-voicebot-frontend/hooks/useIncomingCallNotifications.ts
  • virtual-voicebot-frontend/lib/api.ts
  • virtual-voicebot-frontend/lib/call-display.ts
  • virtual-voicebot-frontend/lib/db/notifications.ts
  • virtual-voicebot-frontend/lib/db/queries.ts
  • virtual-voicebot-frontend/lib/db/sync.ts
  • virtual-voicebot-frontend/lib/mock-data.ts
  • virtual-voicebot-frontend/lib/types.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch develop

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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

Copy link
Copy Markdown

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: f5ce292acc

ℹ️ 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".

.map(|s| s.elapsed().as_secs().min(i32::MAX as u64) as i32);
let call_log_id = self.ensure_call_log_id();
let caller_number = extract_e164_caller_number(self.from_uri.as_str());
let (direction, callee_number) = if self.outbound_mode {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve outbound direction when persisting failed calls

send_ingest derives direction solely from the current self.outbound_mode, but outbound failures clear that flag in the B2BUA failure path before ingest is written (handlers/mod.rs in SessionControlIn::B2buaFailed), so failed outbound attempts are persisted as inbound with no callee number. This corrupts call-log direction data and causes outbound failure records to be misclassified in downstream sync/UI flows.

Useful? React with 👍 / 👎.

}

try {
const entry = await addIncomingCallNotification(payload)

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 Enforce idempotency when ingesting incoming-call notifications

This handler always appends a new notification entry with a random UUID and does not deduplicate by call_id/Idempotency-Key, even though the backend worker sends retries with Idempotency-Key: <call_id> (notification_worker.rs). If the first POST succeeds but the response is lost/times out, a retry will create duplicate popups for the same call, which is exactly the failure mode idempotency keys are meant to prevent.

Useful? React with 👍 / 👎.

@MasanoriSuda
MasanoriSuda merged commit bafc0e2 into main Mar 9, 2026
5 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.

2 participants