Increase duration of the error message in Self service portal

Hi All,

I am using Pega Constellation 25.1.2

I have come across a scenario where the error message displayed in the top of the Self service portal does not retain for longer duration and gets disappeared within 150-300 milliseconds.

Example: A user logs in and opens a assignment of a case in his session. While another user logs in and tries to open the same assignment after opening the same case in his respective session and hence it displays the "Case Locked by other user"error message for the second user, but this locked error message disappears within 300 milliseconds. Hence, creating a confusion to the second user what exactly the error was.

I have tried to capture the screenshot as soon as it was visible as shown below:

If anyone knows, a way to increase the duration of this error message for longer than 2-3 seconds?

Note: If the second user opens the same assignment from my tasks list using “Go” button this error message displays for longer duration.

Thanks in advance.

Hello @AjitKumarC17810417

I looked into this, and I don’t think what you’re seeing is a configurable “duration” setting on the error banner. I checked the Banner component (Cosmos React Core) that renders these inline messages in Constellation, and it has no built-in auto-dismiss/fade timer at all.

Its props are limited to variant, heading, messages, and onDismiss (which only fires on a manual click of the dismiss/× button). There’s no duration/dismissAfter/autoHideDuration knob anywhere on it. So this isn’t a timing value that can be tuned to “last longer”, the banner component itself never times out on its own.

What I suspect is actually happening: the banner isn’t fading, it’s being unmounted. When the assignment-open call comes back with a lock conflict, the portal shows the error, but the surrounding view is likely also reacting to that same failed response for e.g., falling back to a different render (redirecting to the case view, retrying the fetch, or swapping the work area) because the assignment couldn’t open. That fallback replaces the DOM subtree the banner lives in, so it disappears almost instantly, not because of a fade, but because its container gets torn down underneath it.

Your own observation actually supports this well: the error persists longer when opened via the “Go” button from My Tasks vs. directly in the Self-Service portal. If this were a genuine timer-based fade, the entry point shouldn’t matter. The fact that it does points to different navigation/container code paths being involved, with one triggering a faster fallback/redirect than the other.

A couple of things worth checking to confirm this before escalating:

  1. Open React DevTools (or just the Elements panel) on the banner’s container the moment the lock error appears, and watch whether that container remounts right as the message vanishes.
  2. Watch the Network tab for a second request firing immediately after the lock-conflict response (a retry, a case refresh, a redirect), and see if its timing lines up with the ~150–300ms disappearance.

Since there’s no supported prop to extend the banner’s display time, and this looks like an app-shell/harness timing behavior rather than something app-level configuration can fix, I’d raise this with Pega support rather than continuing to search for a setting. I don’t believe one exists to find.

Hope that helps narrow it down.

Regards

JC

I agree @JayachandraSiddipeta. Thanks for your response.

Also I have checked if any other requests are triggered after the lock-conflict from Network tab. But, I have observed there were no requests triggered after that.

I think we have to raise with Pega support.