feat: add message editing UI#99
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 19, 2026, 12:01 AM ET / 04:01 UTC. Summary Reproducibility: not applicable. as a defect reproduction: this PR proposes a new UI capability. Its body provides a concrete after-fix real-app Playwright path for validating the proposed behavior. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: If maintainers want editable authored messages, land this bounded UI over the existing update path with its author-only controls and retained end-to-end coverage; otherwise decline the new interaction rather than treating it as a bug fix. Do we have a high-confidence way to reproduce the issue? Not applicable as a defect reproduction: this PR proposes a new UI capability. Its body provides a concrete after-fix real-app Playwright path for validating the proposed behavior. Is this the best way to solve the issue? Unclear pending product direction: the implementation appears to use the existing message-update path and is narrowly scoped, but whether editing sent messages should be exposed in the core UI is a maintainer policy choice. AGENTS.md: found, but no applicable review policy affected this item. Codex review notes: model internal, reasoning high; reviewed against 146f76255bcc. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (3 earlier review cycles)
|
- Add inline edit mode in MessageRow.svelte with textarea
- Add edit button on own messages (pencil icon)
- Add Save/Cancel controls with keyboard shortcuts (Esc to cancel, Cmd+Enter to save)
- Wire to existing PATCH /api/messages/{id} endpoint
- Show (edited) indicator on edited messages
- Hide message actions while editing
- Add editing message state management in ChatApp.svelte
- Show edited indicator in thread panel as well
27e456a to
d95bb2e
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat: add message editing UI This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Summary
Real behavior proof
tests/e2e/message-editing.spec.tsruns against ClickClack's locally built production web bundle served by the real Go API. In an isolated run it:(edited)state;The captured real-app state is committed at
docs/proof/message-editing-real-app.png, with reproduction details indocs/proof/message-editing-proof.md.Focused browser run:
Validation
pnpm exec playwright test tests/e2e/message-editing.spec.ts— 3 passed ond95bb2e82feb9aaec1613df74fe9aaf7f1210800pnpm check— passed ond95bb2e82feb9aaec1613df74fe9aaf7f1210800