Skip to content

Examples: messageId + GET message status polling - #6

Merged
matviychuk merged 1 commit into
mainfrom
feat/message-status-examples
Apr 8, 2026
Merged

Examples: messageId + GET message status polling#6
matviychuk merged 1 commit into
mainfrom
feat/message-status-examples

Conversation

@matviychuk

@matviychuk matviychuk commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Aligns planvault-examples with the Runtime API behaviour where POST /api/v1/sessions/{id}/messages returns immediately with messageId while planning runs asynchronously.

Changes

  • frontend/react-chat: Parse JSON from POST /messages, display status + messageId, and poll GET .../messages/{messageId}/status every 2s until completed or failed (SSE /chat unchanged).
  • scripts/bash-e2e: Echo messageId from jq and run a single sample GET .../status with jq output.
  • README.md / frontend/react-chat/README.md: Document the correlation id and status endpoint.

Testing

  • npm test and npm run build in frontend/react-chat.

- React sample: parse POST /messages response, show messageId, poll status until terminal
- bash-e2e: print messageId and one GET status sample (jq)
- README: document async correlation id and status endpoint

Made-with: Cursor
@matviychuk
matviychuk merged commit 95f0c47 into main Apr 8, 2026
10 checks passed
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