Deprecate OServer — migrate hero_os to HeroRpcServer #30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
With
HeroRpcServer(#27) handling socket binding, lifecycle, and mandatory endpoints for all Hero services,OServerinhero_rpc_serveris now redundant.What OServer Does Today
HeroRpcServerServerState+UnixRpcServer::register_app()— already reusable without OServer_contextin paramsContextRegistrystays, just not tied to OServerMigration Plan
hero_os_server
Replace
OServer::run_cli()with:Same pattern as hero_osis_server migration.
hero_os_ui (WASM/Dioxus)
Works with
HeroUiServeras-is. The WASM app is just different static assets — the server pattern is identical:Cleanup
OServer,ServerCli,ServerCommandinhero_rpc_serverServerState,ContextRegistry, domain registration helpers — they're still usefulhero_rpc_servercrate dependency from services (replace withhero_service+hero_rpc_osis)Depends On
Migration Strategy
Before starting the OServer deprecation, merging outstanding branches into
developmentfirst:development_timur→development— lifecycle/zinit/service config work (8 commits). This is foundational since it set up theOServer::run_cli()pattern we're now replacing.development_dioxus_bootstrap_2→development— Bootstrap OS shell, island windows, scrolling fixes (20 commits). Orthogonal but large; integrating first avoids painful 3-way merges later.development_mik_6_1→development— Dock layout and popup grid improvements (5 commits).Then create a fresh
development_deprecate_oserverbranch from the mergeddevelopmentand do the migration there.Why merge first
hero_os_server/src/main.rswhich the lifecycle commits also modified — working on the final state avoids conflictsHeroRpcServer/HeroUiServerare already implemented inhero_rpc/crates/service/— the dependency (#27) is readyStarting Migration
All three branches merged into
development✓Now working on
development_deprecate_oserver— starting withhero_os_servermigration fromOServer::run_cli()→HeroRpcServer, thenhero_os_ui→HeroUiServer.Migration Complete
Branch:
development_deprecate_oserver(3d15262)hero_os_server
OServer::run_cli()→HeroRpcServer::run_simple()~/hero/var/sockets/hero_os_server.sock/rpchandler dispatchesType.methodcalls toOsisDesktopdomain directlyhero_rpc_serverdep, addedhero_servicehero_os_ui
ZinitLifecycle+LifecycleCommand→HeroServer::run_raw()clap::Args)hero_rpc_serverdep, addedhero_serviceCleanup
hero_rpc_serverpatch removed from workspace (no longer used)desktop/rpc.rsBoth crates compile clean. Ready for PR when reviewed.