Skip to content

Conversation

@bhabalan
Copy link
Contributor

COMPLETES #CAI-7511

This pull request addresses

Inconsistent end call button visibility states from CC Desktop

by making the following changes

Modified state variables to mirror what is on the CC desktop

Vidcast: https://app.vidcast.io/share/906a7c3e-98a2-471f-be66-e4ec8a81cd53?playerMode=vidcast

Change Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Tooling change
  • Internal code refactor

The following scenarios were tested

  • The testing is done with the amplify link
    < ENUMERATE TESTS PERFORMED, WHETHER MANUAL OR AUTOMATED >

The GAI Coding Policy And Copyright Annotation Best Practices

  • GAI was not used (or, no additional notation is required)
  • Code was generated entirely by GAI
  • GAI was used to create a draft that was subsequently customized or modified
  • Coder created a draft manually that was non-substantively modified by GAI (e.g., refactoring was performed by GAI on manually written code)
  • Tool used for AI assistance (GitHub Copilot / Other - specify)
    • Github Copilot
    • Other - Cursor
  • This PR is related to
    • Feature
    • Defect fix
    • Tech Debt
    • Automation

Checklist before merging

  • I have not skipped any automated checks
  • All existing and new tests passed
  • I have updated the testing document
  • I have tested the functionality with amplify link

Make sure to have followed the contributing guidelines before submitting.

@bhabalan bhabalan requested review from akulakum and rsarika January 19, 2026 03:56
@bhabalan bhabalan added the validated Indicates that the PR is ready for actions label Jan 19, 2026
@aws-amplify-us-east-2
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-600.d1b38q61t1z947.amplifyapp.com

@bhabalan
Copy link
Contributor Author

@codex review

Copy link

@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: 4fdb510975

ℹ️ 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 on lines 123 to +125
// Agent-to-agent consult during conference: End button enabled when switched back to main call
if (isConsultInitiatedOrAcceptedOrBeingConsulted && isConferenceInProgress) {
return {isVisible, isEnabled: consultCallHeld};
}

// Regular consult without conference: End button enabled only when on main call
if (isConsultInitiatedOrAcceptedOrBeingConsulted && !isConferenceInProgress) {
return {isVisible, isEnabled: consultCallHeld};
return {isVisible, isEnabled: false};

Choose a reason for hiding this comment

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

P3 Badge Align comment with new conference consult behavior

The comment says the end button is enabled when switched back to the main call during a consult conference, but the code now unconditionally disables it in that state. This mismatch can mislead future maintainers about the intended behavior and increases the chance of introducing regressions when modifying this logic; either update the comment or adjust the logic to match the documented intent.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

validated Indicates that the PR is ready for actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants