Skip to content

Add message queue sync regression test#1740

Open
ruizanthony wants to merge 1 commit into
agent0ai:mainfrom
ruizanthony:fix/message-queue-pending-spinner
Open

Add message queue sync regression test#1740
ruizanthony wants to merge 1 commit into
agent0ai:mainfrom
ruizanthony:fix/message-queue-pending-spinner

Conversation

@ruizanthony

Copy link
Copy Markdown

Summary

  • Add regression coverage for message queue output synchronization without relying on a context.message_queue attribute.
  • Use os.path.basename when serializing queued attachment names for frontend polling.

Why

Queued messages can remain visually pending/spinning if _sync_output() raises before the frontend receives updated message_queue output data. This test locks the expected contract: queue state is read from context data and published through set_output_data().

Tests

  • python3 -m pytest tests/test_message_queue_sync.py -q
  • python3 -m py_compile helpers/message_queue.py

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