Hierarchical display of chat session content

In the context of a single chat session (conversation), please make the user questions (prompts) be collapsible nodes, where the ChatGPT answers are contents of those nodes.

Every time the user writes a prompt - the previous node is collapsed and the current one is expanded and filled with the latest response.

It becomes overwhelming to manage longer chat sessions with scrolling.

A table of contents for the current chat session on the left would also be a great addition to quickly jumpt between prompts of the chat session.