hero_service::HeroService::ui() should default to admin.sock (post-s76 _ui→_admin rebrand) #52
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_rpc#52
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?
Surfaced by s110 hero_logic D-10 closure (hero_proc#102).
Problem
hero_service::HeroService::ui()defaults toui.sock(crates/service/src/service.rs:170—ServiceKind::Ui→default_socket()→"ui.sock"). But the workspace-wide_ui→_adminrebrand (session 76, home#228 + home#229) shifted every admin daemon to bindadmin.sock. The defaults are out of sync.Result: every CLI that uses
HeroService::ui("hero_X_admin")either registers an action withui.sock(which doesn't match the daemon's actual binding — kill_other and health checks miss the real socket) or has to override per-call:Live example: hero_logic ba74b2b
crates/hero_logic/src/main.rs:60.Proposed fix
Three options, in order of preference:
ServiceKind::Ui→ServiceKind::Adminwith defaultadmin.sock. Add aServiceKind::Webif a separate web-kind needsui.socksemantics for non-admin frontends. Most aligned withservice.tomlkind enum (server | admin | web | cli).ServiceKind::Ui's default toadmin.sock, document the rename history, keep the variant name as-is. Less disruptive — single-line default change.HeroService::admin(name)constructor that's identical toui()but defaults toadmin.sock. Coexists withui()(which keepsui.sockfor legacy callers). Most backward-compatible.I'd lean (2) — minimal disruption, single-line default change, and aligned with workspace convention as of s76.
Affected callers
Any CLI using
HeroService::ui(...)without.socket_name(...). Quick grep across workspace:Refs: home#228, home#229 (rebrand METAs), hero_proc#102, hero_proc#105.
mik-tf referenced this issue from lhumina_code/hero_demo2026-05-18 03:19:09 +00:00