feat: add cloud task session client - #254
Merged
Merged
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.
Summary
/api/v1session routesTaskThreadkey to{cloudSessionId, namespaceId, lastEventSeq, snapshotVersion}binding without changing the TaskThread/UI schemaWhy
Web and Desktop need a stable cloud session identity and replay cursor before the existing App controller can safely switch from local drafts to shared sessions. This PR establishes that TDD-tested client boundary while leaving the running XWorkmate UI and execution path unchanged until the Bridge endpoints are deployed.
Contract and security boundary
after_seqevent replay, and nested message/task-run receiptValidation
flutter test test/runtime/session_sync_contract_test.dart test/runtime/task_session_api_client_test.dart test/runtime/task_session_binding_test.dart test/runtime/task_session_sync_service_test.dart test/runtime/task_thread_store_test.dart(34 passed)flutter analyze(passed)flutter testwas attempted and exposed six existing Mobile assistant page/golden finder failures in files untouched by this PR; serial rerun reproduced the same failuresFollow-up dependency
After the Bridge
/api/v1routes are deployed, a separate controller slice must inject the existing managed Bridge endpoint/authorization resolver and applyTaskSessionSyncResultto the current TaskThread state. This PR intentionally does not auto-call unavailable endpoints and does not modify widgets, navigation, or golden files.