You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prompt history is shared across separate session #4628
Not a 100% sure whether this is a bug or should be a feature request. However, I noticed that all primary agents all share the same prompt history (Arrow up) across all sessions. I think sharing the prompt history in the context of one session makes sense. But it should not be shared across separate sessions since each session may have completely different usage context.
OpenCode version
1.0.85
Steps to reproduce
Submit a prompt
Change the session
Arrow up
=> Prompt shown is from the previous session context
This isn't a bug it is intentional behavior the prompt history from the tui frontend is shared everywhere but it doesnt affect your agents or the history of the session, this "prompt history" is just the last 50 or so inputs you sent and it is global.
This isn't a bug it is intentional behavior the prompt history from the tui frontend is shared everywhere but it doesn't affect your agents or the history of the session, this "prompt history" is just the last 50 or so inputs you sent and it is global.
Recommend re-evaluating this position as it is counterintuitive, and others are stepping on this and reporting issues and even a PR to 'fix' it. I just ran into this by running the last prompt in the wrong session. A new session should not have any prompt history, and other project sessions should have their histories tied to their respective sessions. I can't think of any good reason for them to cross over, especially given that two live sessions in separate project folders are not live-updating the opposite's history, so we run into a similar issue as when overlapping bash histories overwrite themselves based on the last session to close. This makes no sense in the context of a tool which has per-project sessions - such division should not end at the prompt history.
Activity
rekram1-node commentedon Nov 23, 2025
This isn't a bug it is intentional behavior the prompt history from the tui frontend is shared everywhere but it doesnt affect your agents or the history of the session, this "prompt history" is just the last 50 or so inputs you sent and it is global.
malventano commentedon Apr 20, 2026
Recommend re-evaluating this position as it is counterintuitive, and others are stepping on this and reporting issues and even a PR to 'fix' it. I just ran into this by running the last prompt in the wrong session. A new session should not have any prompt history, and other project sessions should have their histories tied to their respective sessions. I can't think of any good reason for them to cross over, especially given that two live sessions in separate project folders are not live-updating the opposite's history, so we run into a similar issue as when overlapping bash histories overwrite themselves based on the last session to close. This makes no sense in the context of a tool which has per-project sessions - such division should not end at the prompt history.
bric3 commentedon Sep 3, 2026
Can it be disabled ?
I just had same issue, restarting opencode sessions in 5 terminal, this is annoying.