feat: adopt MessageOrigin API and remove ApplicationMessage.app#164
Merged
feat: adopt MessageOrigin API and remove ApplicationMessage.app#164
Conversation
Update chat-delegate and UI to use the new typed MessageOrigin enum from freenet-stdlib. The origin contract ID is now extracted from MessageOrigin::WebApp instead of ApplicationMessage.app. Depends on: freenet-stdlib feat/delegate-message-origin
Merged
5 tasks
2 tasks
- Add net feature to room-contract dev-dependencies for WebApi - Add V7 legacy delegate migration entry for pre-0.3.2 WASM hash - Rebuild and sync WASM artifacts
room-contract tests use WebApi which requires the net feature on freenet-stdlib. Previously this worked via feature unification with the freenet dev-dep (both resolved to stdlib 0.1.40), but now the workspace uses 0.3.2 while the freenet dev-dep uses 0.1.40, so features don't unify across major versions. Added a net feature flag to room-contract and enabled it in CI.
…-stdlib symbols The `freenet` dev-dep pulls in freenet-stdlib 0.1.x while the workspace uses 0.3.2, causing duplicate `#[no_mangle] __frnt_set_id` symbols at link time. Gate the integration test (already `#[ignore]`) behind `integration-test` feature so it only compiles when explicitly requested.
sanity
added a commit
that referenced
this pull request
Mar 13, 2026
PR #164 committed WASMs that don't match a clean build against the new stdlib version. Rebuild from clean state to ensure consistency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Mar 13, 2026
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.
Problem
Chat-delegate uses the old
attested: Option<&'static [u8]>delegate API andApplicationMessage.appfield which are being removed in freenet-stdlib.Solution
process()signature to useorigin: Option<MessageOrigin>ContractInstanceIdfromMessageOrigin::WebAppinstead of raw bytesappparameter from handler functions andcreate_app_responseApplicationMessage::new(payload)(single-arg) in UITesting
Dependencies
Depends on freenet/freenet-stdlib#61