Prompt history is shared across separate session #3050

Open
opened 2026-02-16 17:38:23 -05:00 by yindo · 1 comment
Owner

Originally created by @driebe on GitHub (Nov 22, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

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

  1. Submit a prompt
  2. Change the session
  3. Arrow up

=> Prompt shown is from the previous session context

Screenshot and/or share link

No response

Operating System

6.12.48-1-MANJARO x86_64

Terminal

zsh

Originally created by @driebe on GitHub (Nov 22, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description 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 1. Submit a prompt 2. Change the session 3. Arrow up => Prompt shown is from the previous session context ### Screenshot and/or share link _No response_ ### Operating System 6.12.48-1-MANJARO x86_64 ### Terminal zsh
Author
Owner

@rekram1-node commented on GitHub (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.

@rekram1-node commented on GitHub (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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3050