Fix 'Edit In Place' feature appending instead of editing messages#6955
Merged
zanesq merged 2 commits intoblock:mainfrom Feb 4, 2026
Merged
Fix 'Edit In Place' feature appending instead of editing messages#6955zanesq merged 2 commits intoblock:mainfrom
zanesq merged 2 commits intoblock:mainfrom
Conversation
…pending The 'Edit In Place' feature was appending the edited content as a new message instead of modifying the existing message as intended. This fix updates the onMessageUpdate function to properly update the content of the last message in the truncated conversation when using the 'Edit In Place' feature, rather than adding a new message. Fixes block#6954 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Collaborator
|
Can you try reloading a session from history; does it follow the expectation there where the old message is removed/replaced? |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes issue #6954 where the "Edit In Place" feature was appending edited messages as new messages instead of replacing the existing message content.
Changes:
- Modified
onMessageUpdatefunction to properly update the last user message in place after truncating the session - Added logic to preserve existing image content when editing a message
- Implemented proper message content replacement before requesting a new assistant response
Contributor
Author
not sure if i understand this question. I'm experiencing the same issue from reloading the past sessions; |
tlongwell-block
added a commit
that referenced
this pull request
Feb 5, 2026
* origin/main: fix: detect context length errors in GCP Vertex AI provider (#6976) Added the ability to escape Jinja variables in recipes to include them in prompts (#6975) Bug Fix: bump pctx (#6967) fix(acp): fixtures now raise content mismatch errors (#6912) custom provider form minor improvements (#6966) Fix 'Edit In Place' feature appending instead of editing messages (#6955) docs: change RPI slash commands (#6963)
kuccello
pushed a commit
to kuccello/goose
that referenced
this pull request
Feb 7, 2026
…ock#6955) Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Zane Staggs <zane@squareup.com>
Tyler-Hardin
pushed a commit
to Tyler-Hardin/goose
that referenced
this pull request
Feb 11, 2026
…ock#6955) Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Zane Staggs <zane@squareup.com>
Tyler-Hardin
pushed a commit
to Tyler-Hardin/goose
that referenced
this pull request
Feb 11, 2026
…ock#6955) Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Zane Staggs <zane@squareup.com>
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
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.
Summary
onMessageUpdatefunction to properly update the content of the edited message instead of creating a new oneTest plan
🤖 Generated with Claude Code