feat: integrate the Chat modality with the shared Rust core - #326
Merged
Conversation
…uapi into feat/signing-host-ring-vrf
Use codec-derived runtime payloads and metadata-aware storage projections so field ordering and variant encoding stay aligned with chain types. Derive SSO message labels once and keep normal transcript events at debug.
Native executors need dispatch futures that can move across Tokio worker threads. Keep concise async signatures while teaching rustdoc codegen to unwrap async-trait futures.
added 2 commits
August 7, 2026 12:39
eugypalu
approved these changes
Aug 7, 2026
…shared-core # Conflicts: # android/truapi-host/build.gradle.kts # android/truapi-host/src/main/kotlin/io/parity/truapi/TrUAPIHost.kt # ios/truapi-host/Sources/TrUAPIHost/truapi_server.swift # ios/truapi-host/Sources/truapi_serverFFI/include/truapi_serverFFI.h # js/packages/truapi/src/client.test.ts # rust/crates/truapi-server/src/native.rs
…ared-core # Conflicts: # android/truapi-host/build.gradle.kts # android/truapi-host/src/main/kotlin/io/parity/truapi/TrUAPIHost.kt # ios/truapi-host/Sources/TrUAPIHost/truapi_server.swift # ios/truapi-host/Sources/truapiFFI/include/truapiFFI.h # ios/truapi-host/Sources/truapi_platformFFI/include/truapi_platformFFI.h # ios/truapi-host/Sources/truapi_serverFFI/include/truapi_serverFFI.h # ios/truapi-host/scripts/rebuild.sh # js/packages/truapi/src/client.test.ts # rust/crates/truapi-server/src/native.rs
- Use canonical types over the native FFI: derive uniffi on the v01 chat and custom-renderer types plus ProductExecutionKind, and delete the Native* mirror enums/records and their From conversions. - Move chat off HostCallbacks onto an optional NativeChatCallbacks trait passed to open_product_execution; freeze the legacy NativeTrUApiCore at its pre-chat surface; drop the inert session-store/cancel-login hooks and the Swift LiveSessionStoreForwarder machinery. - Share one ChatConnection per execution via ConnectionAdapters, replacing the doubled pre-connection action buffer and the paired *_with_platform constructor variants; runtime dispose now detaches the subscriber while keeping buffered actions for the next connection. - Avoid per-frame ProtocolMessage clones, build the native renderer child tree once per update so children() returns Arc clones, and resolve chain-head follow aliases once per request. - Name the host-initiated codegen constants, hoist shared launch-script helpers into scripts/lib/ios-simulator.mjs, overlap dev-server/product builds with simulator boot, and validate chat diagnosis reports from their rendered counts instead of a hardcoded method total. Swift bindings are not regenerated here; run ios/truapi-host/scripts/rebuild.sh to refresh them and the XCFramework. Co-Authored-By: Claude <noreply@anthropic.com>
pgherveou
commented
Aug 9, 2026
| /// starting a subscription, while the dispatcher keys that subscription | ||
| /// by its transport request id. The first follow-bound request claims the | ||
| /// sole unaliased follow for this chain; later requests reuse that alias. | ||
| fn resolve_local_follow_id(&self, requested_id: &str) -> Option<String> { |
Collaborator
Author
There was a problem hiding this comment.
I believe this is not really needed we should probably verify and get rid of that
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
Design
Host drafts
Validation
Notes
The protocol and iOS host integration should be reviewed together.