Skip to content

fix(app): deliver pending messages queued during startup#14101

Closed
kayametehan wants to merge 1 commit into
OpenHands:mainfrom
kayametehan:fix/13716-pending-message-task-id
Closed

fix(app): deliver pending messages queued during startup#14101
kayametehan wants to merge 1 commit into
OpenHands:mainfrom
kayametehan:fix/13716-pending-message-task-id

Conversation

@kayametehan

Copy link
Copy Markdown

Summary

  • accept both task id encodings when migrating queued pending messages to the real conversation id
  • add regression coverage for hyphenated task ids in pending message storage and delivery

Testing

  • uv run pytest tests/unit/app_server/test_pending_message_service.py tests/unit/app_server/test_live_status_app_conversation_service.py -q -k "pending_message or process_pending_messages_updates_hyphenated_task_id"
  • uv run pytest tests/unit/app_server/test_pending_message_service.py tests/unit/app_server/test_pending_message_router.py tests/unit/app_server/test_live_status_app_conversation_service.py -q

Fixes #13716

Copilot AI review requested due to automatic review settings April 23, 2026 18:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes delivery of pending messages that were queued during conversation startup by ensuring the server migrates pending messages regardless of which task-id string encoding the client used, and adds regression tests to prevent reintroducing the issue.

Changes:

  • Update pending-message migration to try both task-{uuid.hex} and task-{uuid-with-hyphens} conversation-id formats.
  • Add unit coverage for SQLPendingMessageService.update_conversation_id with hyphenated task IDs.
  • Add regression coverage ensuring _process_pending_messages migrates and delivers messages for hyphenated task IDs.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
openhands/app_server/app_conversation/live_status_app_conversation_service.py Attempts migration from both task-id encodings before delivering queued pending messages.
tests/unit/app_server/test_pending_message_service.py Adds a regression test for migrating messages stored under task-{uuid-with-hyphens}.
tests/unit/app_server/test_live_status_app_conversation_service.py Adds a regression test asserting both migration attempts occur and delivery proceeds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request Apr 25, 2026
- OpenHands/OpenHands#14101 merge-after-nits (pending message dual task-id encoding)
- charmbracelet/crush#2702 needs-discussion (super yollo: split yolo into two modes)
- cline/cline#10384 merge-after-nits (cap retry-after delay at 60s default)

INDEX: +8 entries under All-Hands-AI/OpenHands, anomalyco/opencode (sst),
BerriAI/litellm, charmbracelet/crush, cline/cline, continuedev/continue,
openai/codex. Verdict mix: 4 merge-as-is, 2 merge-after-nits, 2 needs-discussion,
1 request-changes.
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.

@github-actions github-actions Bot added the Stale Inactive for 40 days label Jun 3, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR was closed because it had no activity for 50 days. If you feel this was closed in error, and you would like to continue the PR, please resubmit or let us know.

@github-actions github-actions Bot closed this Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stale Inactive for 40 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Pending Messages Not Sent After Conversation Is Ready

2 participants