add edit feature , reasoning mode, message queue in nova chat#1018
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-app | 85f9812 | Commit Preview URL Branch Preview URL |
Jun 02 2026, 04:14 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-mcp | 85f9812 | Jun 02 2026, 04:12 PM |
|
Claude finished @ved015's task in 1m 42s —— View job Review Complete
Overview: Adds message editing, reasoning mode selection (instant/thinking), and a message queue system to Nova chat. Issues found: None — this looks good to ship. The implementation is solid:
Score: 9/10 |
There was a problem hiding this comment.
Overview: Adds message editing and reasoning effort selection (instant/thinking) to Nova chat.
Issues found: None — this looks good to ship.
The regeneration flow is well-designed with a two-phase approach: truncate messages first, then send via useEffect once React has processed the state update. The refs (truncateFromMessageIdRef, pendingRegenerationRef) correctly preserve transient state across re-renders, and the setTimeout(0) pattern ensures the truncate ref is available during request preparation but cleared afterward.
The click-outside handler in ReasoningSelector properly cleans up its event listener. Input validation in submitEdit prevents empty submissions. No XSS concerns since message content is rendered as text.
Score: 9/10
Co-authored-by: Cursor <cursoragent@cursor.com>
Remove unused `cn` import and fix code formatting issues flagged by Biome CI. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Overview: Adds message editing, reasoning mode selection (instant/thinking), and a message queue system to Nova chat.
Issues found: None — this looks good to ship.
The implementation is solid:
-
Edit flow:
submitEditvalidates for empty text, draft state initializes correctly from the original message, and the textarea properly focuses on edit start. -
Regeneration: The two-phase approach (truncate messages via
setMessages, then send viauseEffectonce React processes the state) correctly handles React's batching. The refs (truncateFromMessageIdRef,pendingRegenerationRef,pendingSendSettingsRef) appropriately preserve transient state across re-renders without causing unnecessary renders. -
Message queue: Properly enforces the 3-message limit with
CHAT_QUEUE_LIMIT. ThequeuedDispatchInFlightRef/queuedDispatchSawResponseRefpattern correctly tracks whether a queued message has started receiving a response before dispatching the next. -
Click-outside handler:
ReasoningSelectorcorrectly adds/removes the event listener in the cleanup function, preventing memory leaks. -
No security concerns: Message content is rendered as text (not
dangerouslySetInnerHTML), so no XSS risk.
Score: 9/10
ux-revamp-1780216464737-compressed.mp4