new session clears current prompt input #3192

Closed
opened 2026-02-16 17:39:03 -05:00 by yindo · 4 comments
Owner

Originally created by @DanielFGray on GitHub (Nov 28, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

sometimes i am in a session and i decide i want some prompt ive typed to run in a new session. i <C-x> n to new session and my prompt is cleared and I cry

please preserve the prompt when creating a new session

OpenCode version

1.0.119

Steps to reproduce

  1. have existing session
  2. type prompt
  3. try to start new session with prompt
  4. prompt disappears

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @DanielFGray on GitHub (Nov 28, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description sometimes i am in a session and i decide i want some prompt ive typed to run in a new session. i `<C-x> n` to new session and my prompt is cleared and I cry please preserve the prompt when creating a new session ### OpenCode version 1.0.119 ### Steps to reproduce 1. have existing session 2. type prompt 3. try to start new session with prompt 4. prompt disappears ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the opentuibug labels 2026-02-16 17:39:03 -05:00
yindo closed this issue 2026-02-16 17:39:03 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 28, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2232: "Preserve Prompt on Ctrl+C" - Similar concern about preserving input when navigation changes occur
  • #3368: "opentui: /undo doesnt put previous prompt in the input box" - Related issue about prompt restoration after state changes
  • #4186: "[FEATURE]: "revert message" should place reverted message in the prompt input" - Related feature request about preserving/restoring input

Feel free to ignore if these don't fully address your specific case.

@github-actions[bot] commented on GitHub (Nov 28, 2025): This issue might be a duplicate of existing issues. Please check: - #2232: "Preserve Prompt on Ctrl+C" - Similar concern about preserving input when navigation changes occur - #3368: "opentui: /undo doesnt put previous prompt in the input box" - Related issue about prompt restoration after state changes - #4186: "[FEATURE]: "revert message" should place reverted message in the prompt input" - Related feature request about preserving/restoring input Feel free to ignore if these don't fully address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Nov 28, 2025):

/oc can you fix this?

@rekram1-node commented on GitHub (Nov 28, 2025): /oc can you fix this?
Author
Owner

@opencode-agent[bot] commented on GitHub (Nov 28, 2025):

Created PR #4878

New%20session%20-%202025-11-28T20%3A43%3A35.984Z
opencode session  |  github run

@opencode-agent[bot] commented on GitHub (Nov 28, 2025): Created PR #4878 <a href="https://opencode.ai/s/cZYKH1tV"><img width="200" alt="New%20session%20-%202025-11-28T20%3A43%3A35.984Z" src="https://social-cards.sst.dev/opencode-share/TmV3IHNlc3Npb24gLSAyMDI1LTExLTI4VDIwOjQzOjM1Ljk4NFo=.png?model=opencode/claude-haiku-4-5&version=1.0.119&id=cZYKH1tV" /></a> [opencode session](https://opencode.ai/s/cZYKH1tV)&nbsp;&nbsp;|&nbsp;&nbsp;[github run](/sst/opencode/actions/runs/19773483134)
Author
Owner

@rekram1-node commented on GitHub (Dec 4, 2025):

should be fixed in next release

@rekram1-node commented on GitHub (Dec 4, 2025): should be fixed in next release
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3192