Skip to content

feat(site/src/pages/AgentsPage): add ArrowUp shortcut to edit last user message#23705

Draft
ethanndickson wants to merge 1 commit intomainfrom
chat-edit-xjes
Draft

feat(site/src/pages/AgentsPage): add ArrowUp shortcut to edit last user message#23705
ethanndickson wants to merge 1 commit intomainfrom
chat-edit-xjes

Conversation

@ethanndickson
Copy link
Member

Add a keyboard shortcut (ArrowUp on empty input) to start editing the most recent user message, mirroring Mux's behavior. The shortcut reuses the existing history-edit flow triggered by the pencil button.

Extract a shared getEditableUserMessagePayload helper so the pencil button and the new shortcut both derive the edit payload identically. Derive the last editable user message during render in AgentDetailInput from the existing store selectors, keeping the implementation Effect-free and React Compiler friendly.

…er message

Add a keyboard shortcut (ArrowUp on empty input) to start editing the
most recent user message, mirroring Mux's behavior. The shortcut reuses
the existing history-edit flow triggered by the pencil button.

Extract a shared getEditableUserMessagePayload helper so the pencil
button and the new shortcut both derive the edit payload identically.
Derive the last editable user message during render in AgentDetailInput
from the existing store selectors, keeping the implementation
Effect-free and React Compiler friendly.
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