Skip to content

[CLI] The ability to list history conversation in CLI and show initial user prompt #101

@xingyaoww

Description

@xingyaoww

What problem or use case are you trying to solve?

After closing a CLI session, I would like to review the previous conversations I had, but there's no way to do this in the CLI.

AC:

  • When a conversation ends, we should show the conversation ID so it can be resumed

  • Support a new command like/conv that will show the most recent 10 conversations from ~/.openhands/sessions OR wherever the sessions are stored based on configurations.

It will basically list smth like:

- [CONVO ID 1] [Created at: XXX] Initial user message: ABCD...[truncated at 100 characters]
- [CONVO ID 2] [Created at: XXX] Initial user message: ABCD...[truncated at 100 characters]

Implementation notes:

  • You can find initial user messages by checking the JSONs ({0,1,2,3,4,5,6,...}.json in order) and look for "action": "message" and "source": "user" and get the .args.content field as the user message.

  • We should allow the user to enter each conversation to view the [all user messages] from that conversation.

  • We should also add a button and the button to move to next page/previous page.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions