[PR #2070] feat: moves prompt history to be project scoped instead of global #10180

Closed
opened 2026-02-16 18:14:47 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2070

State: closed
Merged: No


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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2070 **State:** closed **Merged:** No --- ## 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
yindo added the pull-request label 2026-02-16 18:14:47 -05:00
yindo closed this issue 2026-02-16 18:14:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10180