Skip to content

Enhance escalation notification verbosity for Slack and MS Teams - #19674

Merged
adrinr merged 54 commits into
masterfrom
escalations/extend-verbosity
Sep 21, 2026
Merged

adrinr merged 54 commits into
masterfrom
escalations/extend-verbosity

Conversation

@adrinr

@adrinr adrinr commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Description

Improve escalation message on channels. At the escalation point, the approver most probably does not know about the context of the context of it. The current messages are short like this:
image

This PR adds more context to these messages, in order to give enough information to the approval on what they are approving on:
image

Addresses

Launchcontrol

Improve escalation message on channels


Summary by cubic

Escalation approvals previously sent only short messages; Slack, MS Teams, and in-app cards now show who requested the action, what operation and tool will run, and the tool parameters explicitly shared for review.

  • Approval rules can share up to 40 parameters, chosen from the tool's table columns, read-action arguments (row ID, limit, bookmark, query, sort), query parameters, or automation trigger inputs; nothing is shared by default, and saved selections survive tool or field changes.
  • Automation-triggered requests name the agent; user-triggered requests include the user's name and email.
  • Unselected values never reach reviewer-facing copy, model-controlled text is rendered as plain or escaped text, and query tool names include their source label.
  • Long, nested, circular, and multiline values are truncated or chunked safely; empty and undefined values render blank and missing ones show "Not provided"; Slack stays within block limits, and parameter sections are omitted when nothing is shared.
  • The in-app card shows stored context in a collapsible section and fetches it once without retrying failed requests.

Written for commit 2a986ed. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 13 files

Tip: instead of fixing issues one by one fix them all with cubic

Re-trigger cubic

Comment thread packages/server/src/escalation/notifications/slack.spec.ts Outdated
Comment thread packages/server/src/escalation/notifications/slack.ts Outdated
Comment thread packages/server/src/sdk/workspace/ai/agents/agentRuntime.ts Outdated
Comment thread packages/server/src/sdk/workspace/ai/agents/agentRuntime.ts Outdated
Comment thread packages/server/src/escalation/notifications/ms-teams.ts Outdated
Comment thread packages/server/src/escalation/notifications/ms-teams.ts Outdated

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 6 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread packages/server/src/escalation/notifications/slack.spec.ts
@adrinr
adrinr requested a review from deanhannigan September 14, 2026 10:03
@github-actions github-actions Bot added size/xl and removed size/l labels Sep 15, 2026

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 14 files (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

Comment thread packages/server/src/escalation/notifications/slack.ts Outdated
Comment thread packages/builder/src/stores/portal/escalations.ts Outdated
Comment thread packages/frontend-core/src/components/Chatbox/EscalationCard.svelte
Comment thread packages/frontend-core/src/components/Chatbox/index.svelte

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 29 files (changes from recent commits).

Requires human review: Auto-approval blocked because this review re-detected 1 unresolved issue already reported by Cubic.
Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

Comment thread packages/builder/src/stores/portal/escalations.spec.ts Outdated
Comment thread packages/server/src/sdk/workspace/ai/agents/escalationGate.ts Outdated
Comment thread packages/server/src/escalation/schemaReviewContext.ts Outdated
Comment thread packages/server/src/escalation/schemaReviewContext.ts Outdated

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 29 files (changes from recent commits).

Requires human review: Auto-approval blocked because this review re-detected 1 unresolved issue already reported by Cubic.
Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

Comment thread packages/frontend-core/src/components/Chatbox/EscalationCard.svelte Outdated
Comment thread packages/server/src/escalation/schemaReviewContext.ts Outdated
Comment thread packages/server/src/escalation/notifications/ms-teams.spec.ts

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 25 files (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

Comment thread packages/server/src/escalation/reviewContext.ts
Comment thread packages/server/src/sdk/workspace/escalations.spec.ts Outdated

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 25 files (changes from recent commits).

Requires human review: Auto-approval blocked because this review re-detected 1 unresolved issue already reported by Cubic.
Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

Comment thread packages/server/src/sdk/workspace/ai/agents/utils.ts Outdated

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 26 files (changes from recent commits).

Requires human review: Auto-approval blocked because this review re-detected 1 unresolved issue already reported by Cubic.
Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

@github-actions github-actions Bot added size/l and removed size/xl labels Sep 16, 2026

@deanhannigan deanhannigan 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.

LGTM! Ran through it all this morning on teams and its solid 🚀

@adrinr
adrinr enabled auto-merge September 21, 2026 10:39
@adrinr
adrinr merged commit ca58897 into master Sep 21, 2026
38 checks passed
@adrinr
adrinr deleted the escalations/extend-verbosity branch September 21, 2026 10:47
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Sponsor
SponsoredKunjungi sekarang
Promo