Skip to content

refactor(desktop): brand-configurable local-server readiness service name - #37

Merged
Luhaozhu merged 1 commit into
mainfrom
refactor/local-service-name
Jul 28, 2026
Merged

refactor(desktop): brand-configurable local-server readiness service name#37
Luhaozhu merged 1 commit into
mainfrom
refactor/local-service-name

Conversation

@Luhaozhu

Copy link
Copy Markdown
Contributor

What

The local-server readiness probe hardcoded service == "hugagent" when checking /health. A downstream brand whose backend reports a different service id never passes readiness — the local mode setup hangs at 99% and times out even though the backend is healthy (hit in practice on a downstream branch).

  • Move the expected id to brand.rs as LOCAL_SERVICE_NAME, overridable at build time via JX_LOCAL_SERVICE_NAME.
  • No behavior change for this repository (default stays hugagent).

Testing

  • cargo test --lib in desktop/src-tauri — 33/33 pass

…nd constant

The readiness probe hardcoded service == "hugagent"; downstream brands whose
backend reports a different /health service id would never pass readiness and
local mode would hang at startup timeout (hit in practice on a downstream
branch). Move the expected id to brand.rs, overridable at build time via
JX_LOCAL_SERVICE_NAME. No behavior change for this repo.
@Luhaozhu
Luhaozhu merged commit 63f6d81 into main Jul 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant