native icon indicating copy to clipboard operation
native copied to clipboard

Application-defined external effects

Open WhiteHades opened this issue 4 months ago • 0 comments

Native apps need a bounded way to run app-owned work through the existing effect lifecycle.

For example, melearner should send a list_courses request to its Rust core and receive the result as a normal Msg, without adding melearner-specific APIs to Native SDK.

I propose fx.external: each request carries an adapter ID, operation kind, schema version, and byte payload. Native SDK owns request IDs, limits, exact cancellation, UI-thread delivery, and deterministic session record/replay.

Requests are capped at 64 KiB, results at 256 KiB, and external work shares the existing 16 effect slots.

Does this boundary fit the shared effects API?

WhiteHades avatar Jul 15 '26 04:07 WhiteHades