Skip to content

Include session expired info in error message in Duo Chat

What does this MR do and why?

Update error message which user might get when his session is not authorized.

New message:

I'm sorry, I can't generate a response. You might want to try again. You could also be getting this error because the items you're asking about either don't exist, you don't have access to them, or your session has expired.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
image.png image.png

How to set up and validate locally

  1. I forced the message by removing unless authorize from ee/lib/gitlab/llm/chain/tools/tool.rb.
  2. Run GDK locally and ask something from Duo Chat.
  3. You should get the new message.

Related to #467530 (closed)

Edited by Eva Kadlecová

Merge request reports