Skip to content

tui: prompt history is clobbered w/ multiple instances of opencode #19536

Description

@elijahmorg

Description

prompt-history.jsonl is overwritten by opencode when writing a new prompt to prompt history.

When you have multiple instances of opencode the prompt history will be overwritten by each opencode instances history store.

This leads to losing prompt history.

Plugins

none

OpenCode version

dev branch

Steps to reproduce

  1. open two instances of opencode tui
  2. in instance one send hello1
  3. in instance two send hello2
  4. look at prompt-history.jsonl - hello1 will not be present in jsonl.
  5. when you restart opencode you will lose prompt history

Screenshot and/or share link

No response

Operating System

MacOS

Terminal

Ghostty

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions