Skip to content

Preserve escalation state when reloading chat preview - #19732

Merged
melohagan merged 5 commits into
masterfrom
fix/preserve-escalation-status-when-reloading-chat-preview
Oct 7, 2026
Merged

melohagan merged 5 commits into
masterfrom
fix/preserve-escalation-status-when-reloading-chat-preview

Conversation

@adrinr

@adrinr adrinr commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Description

Preserve escalation state when reloading chat preview.
Improvement over:

Screenshots

Before

https://jam.dev/c/eb8a9d5d-e0d7-4dec-b7d2-0252d67e410d

After

https://jam.dev/c/a597fe08-8ad9-4daf-81dd-af72804a68a9

Launchcontrol

Preserve escalation state when reloading chat preview


Summary by cubic

Fetches escalation state immediately when tracking starts, so reloading the chat preview no longer shows stale or missing escalation status until the first polling interval elapses. Also fixes polling after a reset: resetting now clears the in-flight flag so a new track polls right away, and a stale fetch from before the reset can no longer override the new state.

  • Adds tests covering immediate fetch on tracking and polling after a reset while a previous poll is still settling.

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

View guided diff Turn on auto-fix

@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 2 files

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

Fix all with cubic | Re-trigger cubic

Comment thread packages/builder/src/stores/portal/escalations.ts
Comment thread packages/builder/src/stores/portal/escalations.test.ts Outdated
Comment thread packages/builder/src/stores/portal/escalations.test.ts

@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 this locally and the escalation state remained visible and correct on reload.

@github-actions github-actions Bot added the stale label Oct 6, 2026
@melohagan
melohagan enabled auto-merge October 7, 2026 14:47
@melohagan
melohagan merged commit 25da06e into master Oct 7, 2026
38 checks passed
@melohagan
melohagan deleted the fix/preserve-escalation-status-when-reloading-chat-preview branch October 7, 2026 14:48
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Sponsor
SponsoredKunjungi sekarang
Promo