Skip to content

Conversation

@1code-async
Copy link
Contributor

@1code-async 1code-async bot commented Jan 29, 2026

Summary

  • Adds the ability to edit queued messages before they are sent
  • Automatically pauses queue processing when editing the first item in the queue to prevent the message from being sent while being modified
  • Resumes processing automatically when the edit dialog is closed (save or cancel)

Changes

  • message-queue-store.ts: Added updateQueueItem, setEditingItem, and isItemEditing functions to track and update queue items being edited
  • edit-queued-message-dialog.tsx: New dialog component for editing queued message text with keyboard shortcuts (Cmd/Ctrl+Enter to save, Escape to cancel)
  • queue-processor.tsx: Added logic to pause processing when the first queue item is being edited, with subscription to editing state changes
  • agent-queue-indicator.tsx: Added edit button (pencil icon) to each queue item row
  • active-chat.tsx: Passed subChatId prop to AgentQueueIndicator for edit dialog context

Test plan

  • Queue multiple messages while the agent is streaming
  • Click edit icon on a queued message to open edit dialog
  • Verify that editing the first item in queue shows "Queue processing is paused while editing" message
  • Verify that editing items not at the front of the queue shows "Edit the message before it's sent" message
  • Make changes and click Save - verify the queued message is updated
  • Click Cancel or press Escape - verify no changes are made
  • Verify queue processing resumes after closing the edit dialog

🤖 Generated with Claude Code

Implements ENG-583: Users can now edit queued messages before they are sent.
When editing the first item in the queue, processing is automatically paused
to prevent the message from being sent while being edited.

Changes:
- Add updateQueueItem, setEditingItem, isItemEditing to message-queue-store
- Add EditQueuedMessageDialog component for editing message content
- Update QueueProcessor to pause when editing first queue item
- Add edit button (pencil icon) to queue item rows in AgentQueueIndicator
- Pass subChatId to AgentQueueIndicator for edit dialog context

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

0 participants