Skip to content

history types #666

@HalFrgrd

Description

@HalFrgrd

Instead of having some support for different history managers (bash hisotry, cancelled commands, agent mode commands), use only history manager. But allow the history entries to have different Origin. Origins is an enums of bash, cancelled, agent. Settings will save the cancelled and agent commands for this session. When we create history manager in app, we pass the cancelled commands and agent commands to history manager. It should try and merge in these other types of commands into the main list based on timestamps. If the users bash history doesn't have timestamps and you can't find a good place to put them, then don't insert them at all.

When rendering, instead of the index , for cancelled commands show CNCL, and for agent commands show AGNT. num digits for index should be at least 4.

Accepting an agent history should put the prompt the person wrote into the buffer and also move us into agent output selection mode. So we will need to store the agent mode output as well as the prompt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions