Skip to content

Conversation

adrianlyjak
Copy link
Contributor

@adrianlyjak adrianlyjak commented Sep 23, 2025

Adds session history

  • Session metadata is stored on the client in indexed db
  • Conversation history is stored in the workflow state
  • Adds a sidebar with timestamped conversation sessions

Updates the UI a bit to look better with the sidebar. Also adds dark/light mode detection

image

Future things that need fixing or improving:

  • Need to delete backend workflows when the frontend is deleted
  • Should synchronize and detect deleted conversations on the client, or alternately entirely query the workflows from the server (needs further features added to workflow server)
  • Should "sleep" inactive workflows to save resources on the server
  • The workflow list API is querying details of all the active workflows individually. Was noticing some potential bugs related to this with a lot of parallel requests. Reloading history was getting buggy

@adrianlyjak adrianlyjak marked this pull request as ready for review September 23, 2025 18:33
)


@functools.lru_cache(maxsize=None)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if index is already there and there is no cache in memory?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

despite its name, create_index does an upsert operation

@adrianlyjak adrianlyjak merged commit 0ae0f8d into main Sep 23, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants