Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provide explicit synchronous and asynchronous REST clients and reliable message/form integration for Pine.
PineAIreturns synchronous REST values;AsyncPineAIowns asynchronous REST and realtime access. Injected HTTP clients remain caller-owned.ensure_copilot=false(requires backend support).submit_form_response: re-read the original form, preserve its message/request IDs, validate and encode fields like the web app. Use the existing directsession:message_statusreceipt to obtain the persisted reply ID, then wait for matching delivery. No additional backend sender echo or form validation changes are required.Validation: 131 offline tests and Ruff passed locally on Python 3.14.7, including delayed received/delivered, wrong reply IDs, failures, concurrency, disconnect/cancel and reconnect. CI covers Python 3.10–3.14 and distribution builds. Live MCP -> SDK -> restored original backend form protocol -> local Agent1 regression observed received then delivered, zero sender form echoes, the persisted reply ID and Agent1 confirmation. MCP history excluded L2/L3 synthetic fixture values. No package publication or phone call was performed.
Keep Draft for review. Ticket/identity APIs require the matching backend authorization update; form submissions use the preexisting backend protocol. The legacy synchronous form helper is deprecated because it does not recover and verify the original form association. Backend form validation, sender events and logging remain unchanged.