fix(cli): align socket dir docs with code and warn on stale env override #21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_codescalers_service_name"
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?
Closes #17.
Summary
The Rust source already binds to the canonical
hero_codescalers/socket directory (commit7edb4e3/ PR #16). The "stuck in starting" symptom on issue #17 was caused by:hero_codescalers_server/layout, which led operators to exportHERO_CODESCALERS_SOCK_NAME=hero_codescalers_serverfrom previous setups.Changes
README.md— replaced legacy socket-directory references with the canonical names:hero_codescalers_server*/->hero_codescalers*/).HERO_CODESCALERS_SOCK_NAMEdefault in the env-var table (hero_codescalers_server->hero_codescalers).hero_codescalers_servermatches are deliberately kept (binary name + hero_proc action names — distinct concepts from the socket dir).crates/hero_codescalers/src/main.rs— added a non-fataleprintln!guard insidebuild_service_definitionthat warns when a staleHERO_CODESCALERS_SOCK_NAMEexported in the caller's environment differs from the instance-derived directory. The CLI was already passing the correct value viaActionBuilder::env(...), so this is purely informational and removes the silent foot-gun.Test plan
cargo check -p hero_codescalersclean.cargo test --workspace— 10/10 pass (no regressions).cargo fmt --all -- --check— fails ondevelopmentbaseline (122 diffs across 18 files unrelated to this patch); should be tracked separately.cargo clippy --workspace --all-targets -- -D warnings— fails ondevelopmentbaseline (32 errors unrelated to this patch); should be tracked separately.hero_codescalers --start, confirm~/hero/var/sockets/hero_codescalers/{rpc,ui}.sockexist, hero_router dashboard showshero_codescalersHealthy with a working UI link.If a prior run left a stale
~/hero/var/sockets/hero_codescalers_server*/directory on disk, operators shouldrm -rf ~/hero/var/sockets/hero_codescalers_server*once after merging.