-
Notifications
You must be signed in to change notification settings - Fork 8.8k
feat(tui): reinsert forked message text in prompt text input box when forking session (resolves #5495) #5545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rekram1-node
merged 12 commits into
anomalyco:dev
from
ariane-emory:feat/retain-prompt-when-forking
Dec 20, 2025
Merged
feat(tui): reinsert forked message text in prompt text input box when forking session (resolves #5495) #5545
rekram1-node
merged 12 commits into
anomalyco:dev
from
ariane-emory:feat/retain-prompt-when-forking
Dec 20, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add initialPrompt support to SessionRoute to populate input box with selected message content when forking a session. - Extend SessionRoute type to support optional initialPrompt - Add effect in session component to handle initial prompt from fork - Modify fork action to extract message content and pass it to new session Fixes anomalyco#5495
Collaborator
|
/review |
packages/opencode/src/cli/cmd/tui/routes/session/dialog-message.tsx
Outdated
Show resolved
Hide resolved
…e.tsx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Contributor
Author
|
The bot's change introduced an error :( Fixing presently. |
- Remove duplicate conflicting code in dialog-message.tsx that caused a syntax error from a bad merge - Add initialPrompt support to dialog-fork-from-timeline.tsx so the /fork command also retains the message text in the prompt input box
Contributor
Author
|
Fixed. |
Contributor
Author
|
@rekram1-node Should be ready to come in for a safe landing now, yeah? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adjusts the behaviour when forking a session so that the text of the message on which the session is being forked is reinserted in the prompt text input box.
This improves ergonomics and can save two clicks and a keystroke by eliminating the need for the currently-common pattern of copying a message (two clicks) before forking on it so that you can begin the fork using a modified version of that message (one keystroke to past the copied message back into the prompt text input box).
Resolves #5495.