Skip to content

Remember current workflow in duo chat panel

What does this MR do and why?

This code change improves the AI chat feature by adding memory capabilities. Previously, when users closed and reopened the chat, they would lose their conversation history and have to start over. Now the system remembers the current conversation by storing it in the browser's local storage.

The main improvements include:

  • Adding a new constant to track running workflows.
  • Storing the current chat session information (workflow ID and active thread) in browser storage.
  • When users reopen the chat, it automatically loads their previous conversation history.
  • If a workflow was still running when the chat was closed, it resumes automatically when reopened.
  • Updated tests to verify this new persistence behavior works correctly.

This makes the chat experience more user-friendly by maintaining conversation continuity across browser sessions, so users don't lose their progress when they accidentally close the chat or need to refresh the page.

References

Issue #567351+

Screenshots or screen recordings

Before After
duo_agentic_chat_memory_before.mov duo_agentic_chat_history.mov

How to set up and validate locally

A prerequisite is setting up Duo Agent capabilities in your GDK.

  1. Check out this branch.
  2. Open a project with duo capabilities enabled.
  3. Enable agentic mode in the Duo Chat panel.
  4. Start a conversation or load an existing one from the conversation history.
  5. If you reload the page or navigate to a different one, the conversation that you loaded in step 4. will still be active in the chat panel.

MR acceptance checklist

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

Edited by Enrique Alcántara

Merge request reports

Loading