opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: moves prompt history to be project scoped instead of global

Open spoons-and-mirrors opened this issue 4 months ago • 0 comments

Summary

Currently, prompt history is globally scoped and shared amongts all user projects. This PR changes this and makes prompt history project scoped.

Before:

  • ~/.local/state/opencode/tui (global)

After:

  • ~/.local/share/opencode/project/{repo-name}/prompt-history (project scoped)

If not in a git repo, falls back to:

  • ~/.local/share/opencode/project/global/prompt-history

Resolves https://github.com/sst/opencode/issues/2067

spoons-and-mirrors avatar Aug 19 '25 16:08 spoons-and-mirrors