Skip to content

Wait for completedAt in remote dispatch polling#113

Open
abrahmasandra wants to merge 13 commits into
mainfrom
arnav/remote-dispatch-input-required-status
Open

Wait for completedAt in remote dispatch polling#113
abrahmasandra wants to merge 13 commits into
mainfrom
arnav/remote-dispatch-input-required-status

Conversation

@abrahmasandra
Copy link
Copy Markdown
Contributor

@abrahmasandra abrahmasandra commented May 8, 2026

SDK polling previously stopped based on status, so an active input-required wait could be mistaken for a completed request. This PR changes remote-dispatch polling to continue until completedAt is set and adds an on_input_required callback that fires once per active inputId with the typed action metadata. The design mirrors the backend contract directly: status communicates active state, completedAt communicates finality, and inputId prevents duplicate callback invocations for the same user-input step.

@zizhengtai
Copy link
Copy Markdown
Contributor

Let's hold off on merging this as we are discussing the desired DX for a HITL feature.

Arnav Brahmasandra added 4 commits May 20, 2026 14:12
@abrahmasandra abrahmasandra requested a review from zizhengtai May 22, 2026 01:12
Comment thread packages/narada-core/src/narada_core/models.py Outdated
Comment thread packages/narada-pyodide/src/narada/window.py Outdated
Comment thread packages/narada-pyodide/src/narada/window.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.

2 participants