PostHog / PostHog/posthog

Allow editing any user message in chat (with undo/checkpoint)

Open
#76,232 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature/desktop
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
6h 51m
Merged PRs (30d)
232

Description

Description

Allow users to click on any of their previous messages in the chat to edit and re-send them. Editing a message should undo/revert all file changes that happened after that message, effectively creating a "branch" from that point in the conversation.

Behavior

  • Click on a user message to enter edit mode
  • On re-send, all subsequent messages and their associated file changes are undone
  • The conversation continues from the edited message
  • This is similar to how Claude.ai and Cursor handle message editing

Related

Acceptance Criteria

  • Users can click to edit any of their previous messages
  • File changes after the edited message are reverted
  • Conversation continues from the edited point
  • Clear visual indication of edit mode

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named, so first locate the chat message UI and the state handling conversation and file changes. Read how messages and file updates are persisted before designing the edit flow. Done means all four acceptance criteria pass, including reverting later file changes and showing edit mode clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.