Skip to content

feat(cc-widgets): wire AI summary workflows - #750

Merged
rsarika merged 41 commits into
webex:nextfrom
rsarika:codex/ai-summary-widget-integration
Oct 27, 2026
Merged

rsarika merged 41 commits into
webex:nextfrom
rsarika:codex/ai-summary-widget-integration

Conversation

@rsarika

@rsarika rsarika commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

COMPLETES CAI-8657 and CAI-8658

This pull request addresses

Agents need conversation context when receiving a consult or transfer and when wrapping up a call. This PR adds those summary workflows to widgets and fixes incoming-summary visibility and layout.

by making the following changes

  • Add consult/transfer and wrap-up summaries with editing, exclusion, copy and feedback.
  • Connect summaries to the SDK/store and open incoming summaries directly through the toast or assistant launcher.
  • Use registration summary flags until a matching task enablement event arrives; live events take precedence, with no browser storage for summary enablement.
  • Keep incoming summaries and assistance replies in the existing chat scroller; remove the extra in-panel View summary controls and manual navigation state.
  • Fix automatic incoming display, timestamp formatting and footer alignment in compact and full-width panels.

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

  • Full repository unit tests, lint and build passed; sample TypeScript checks passed.

  • Summary regression coverage includes direct open/restore, toast actions, history, feedback, long-summary scrolling and assistance continuity. The assistant component suite passes 88 tests and the assistant widget suite passes 80 tests, including TypeScript.

  • Live integration testing covered included, edited and excluded summaries, consults, transfers, cancellation and wrap-up.

  • Compared incoming summaries with Agent Desktop and checked navigation, timestamps and compact/full-width layouts. Manual testing used the local integration build; Amplify validation is pending.

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

    OpenAI Codex assisted with implementation, regression tests and review.

  • 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 - OpenAI Codex
  • This PR is related to

    • Feature
    • Defect fix
    • Tech Debt
    • Automation

Checklist before merging

Local unit suites passed with the existing skipped tests unchanged. Test results and screenshots are recorded locally; the shared testing-document update and Amplify validation are not marked complete.

  • 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.

@rsarika
rsarika requested a review from a team as a code owner October 9, 2026 05:31
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-27T13:15:19.590101Z
We couldn’t complete this review. Comment @codex review to try again.
9d33ae2 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: 57dfea3335

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

'on-recording-toggle',
'conference-enabled',
]);
expectObservedAttributes(AI_ASSISTANT_TAG, [

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 wellness attributes in the AI Assistant expectation

In the cc-widgets Jest/jsdom suite, WebAIAssistant still declares seven wellness props in src/wc.ts (onWellnessBreakOffered through wellnessBreakOverlayTarget), and r2wc includes each declared prop in observedAttributes. This newly added exact-equality assertion omits all of them, so the cc-widgets unit suite has a guaranteed failure; include the existing dashed wellness attributes or avoid asserting the unrelated element here.

Useful? React with 👍 / 👎.

Use SDK summary types directly and send only changed structured sections. Guard superseded request results, pair task listener cleanup, and require the original task for post-call submission. Repair the lockfile for immutable installs.
@aws-amplify-us-east-2

Copy link
Copy Markdown

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

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

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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".

@rsarika
rsarika force-pushed the codex/ai-summary-widget-integration branch from c18c8e9 to f47d8bd Compare October 20, 2026 13:08
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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".

@rsarika
rsarika force-pushed the codex/ai-summary-widget-integration branch from f47d8bd to f2eef6e Compare October 20, 2026 13:49
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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".

@rsarika
rsarika force-pushed the codex/ai-summary-widget-integration branch from f2eef6e to 0849d99 Compare October 20, 2026 14:38
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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".

@rsarika
rsarika force-pushed the codex/ai-summary-widget-integration branch from 0849d99 to 321bd0c Compare October 21, 2026 14:06
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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".

Reuse adaptive summary cards and shared copy and feedback actions. Match Momentum consult, transfer, and wrap-up interactions, preserve staged selections and summary exclusion, and synchronize SDK response handling, regression tests, and module contracts.
@rsarika
rsarika force-pushed the codex/ai-summary-widget-integration branch from 321bd0c to db0855f Compare October 22, 2026 04:47

@Kesari3008 Kesari3008 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please test thoroughly not just summary feature but also suggested responses and consult and transfer flows because there are too many changes on the existing code impacting existing features and make a vidcast of that

{renderLauncherButton()}
</div>
) : (
renderLauncherButton()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This comment is still not addressed

method: 'copySuggestion',
method: 'copyToClipboard',
});
return false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please test these changes for Suggested Responses as well because it gets used there too

// Stash callbacks in refs so the render effect only re-runs when the card
// itself changes — fresh inline parent callbacks would otherwise force a
// full re-parse and re-fetch of every image on each render.
const onUserActionRef = useRef(onUserAction);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This code is related to suggested responses also and these changes might impact the existing feature to break. So either test the feature and ensure nothing breaks or verify these changes

{AI_ASSISTANT_SUMMARY_MESSAGES.editSummary}
</Button>
) : null}
{showCopy ? (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would there ever be a scenario where copy option is not there so evaluate if we really need this condition

@rsarika rsarika added the validated Indicates that the PR is ready for actions label Oct 26, 2026
@github-actions github-actions Bot removed the validated Indicates that the PR is ready for actions label Oct 27, 2026
@rsarika rsarika added the validated Indicates that the PR is ready for actions label Oct 27, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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".

@github-actions github-actions Bot removed the validated Indicates that the PR is ready for actions label Oct 27, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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".

@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: 7f3387ecf2

ℹ️ 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 +92 to +94
if (aiSummary?.midCall && aiSummary.midCall.state !== 'omitted') {
setAgentMenu((menu) => (menu && !menu.hasSummary ? {...menu, hasSummary: true} : menu));
}

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 Request a summary when capability arrives after opening

When TASK_FEATURE_ENABLEMENT turns midCallEnabled on while a telephony Consult/Transfer menu is already open, openAgentMenu has already run under the disabled flags, so its request was skipped or returned without creating an entry. This effect only latches hasSummary; the newly projected view therefore stays in generating until the agent closes and reopens the menu. Issue the matching request once when this transition occurs.

Useful? React with 👍 / 👎.

if (hasIncomingContent && listRef.current) {
listRef.current.scrollTop = 0;
}
}, [hasIncomingContent]);

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 Re-scroll when another receiver summary arrives

When a second TASK_MID_CALL_SUMMARY_RECEIVED arrives for the active interaction while the assistant is open after real-time-assist replies, children was already truthy, so this dependency does not change; chatEntries.length and status also remain unchanged. Because receiver cards are inserted before the chat and the open chrome suppresses the summary toast, the new card can remain offscreen with no notification. Drive this effect from receiver content identity or count rather than only child presence.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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".

Reuse assistant card surfaces and align wrap-up copy and suggestion chips.
Use registration config until task enablement arrives, without summary storage.
@rsarika
rsarika force-pushed the codex/ai-summary-widget-integration branch from a1b1dcb to 9d33ae2 Compare October 27, 2026 13:04
@rsarika rsarika added the validated Indicates that the PR is ready for actions label Oct 27, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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".

@rsarika
rsarika merged commit bf6260c into webex:next Oct 27, 2026
7 checks passed
@github-actions

Copy link
Copy Markdown
🎉 Your changes are now available!
Released in: webex-cc-widgets-v1.28.0-next.66
📖 View full changelog →
Packages Updated Version
@webex/cc-widgets 1.28.0-next.66
@webex/cc-ai-assistant 0.0.0-next.17
@webex/cc-components 1.28.0-next.56
@webex/cc-digital-channels 0.0.0-next.33
@webex/cc-station-login 1.28.0-next.56
@webex/cc-store 1.28.0-next.37
@webex/cc-task 1.28.0-next.59
@webex/cc-ui-logging 1.28.0-next.39
@webex/cc-user-state 1.28.0-next.57
@webex/test-fixtures 0.0.0-next.1
samples-cc-react-app 0.0.0-next.1
samples-cc-wc-app 0.0.0-next.1

Thank you for your contribution!
🤖 This is an automated message. For queries, please contact support.

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.

3 participants