Skip to content

Add editing and restart from sent ChatGPT messages - #31

Open
yuraoak wants to merge 1 commit into
mainfrom
feat/codex-edit-message
Open

yuraoak wants to merge 1 commit into
mainfrom
feat/codex-edit-message

Conversation

@yuraoak

@yuraoak yuraoak commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

ChatGPT messages in Lizard Studio could not be edited. Add an Edit message button with Save & send and Cancel for new messages and loaded history. Saving stops the current turn, rolls the Codex history back to the selected turn, and sends the changed prompt with its original attachments and page/file context.

The panel keeps later messages until the host confirms the rollback. Failed edits keep the draft. Stable turn IDs and retained history boundaries keep older pages editable, while queued prompts wait until the replacement answer finishes. File changes remain in place; the editor states this before sending.

Validation: 159 unit tests pass (npm test); 20 checks pass in the real panel with a mocked host (test/e2e/panel.html?regressions=edit), covering loaded history, live edits, cancellation, IME input, failed rollback, duplicate submission, queues and disconnects. Checked the editor in the browser and matched the RPC fields against the installed Codex protocol. No live account turn or production session was changed.

Uses thread/rollback, which the installed Codex protocol supports but marks deprecated. An unsupported method leaves the draft and visible history intact. For imported turns with several user corrections, editing must start from the first user message in that turn.

Merging changes the host package and triggers its npm release workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant