Skip to content

chore(server): drop embedded heierchat snapshot — restore upstream UI default#101

Merged
marksverdhei merged 1 commit into
htfrom
chore/restore-upstream-default-ui
Jun 10, 2026
Merged

chore(server): drop embedded heierchat snapshot — restore upstream UI default#101
marksverdhei merged 1 commit into
htfrom
chore/restore-upstream-default-ui

Conversation

@marksverdhei

Copy link
Copy Markdown

Summary

  • Removes tools/server/public/ (15.5k-line heierchat snapshot) so the cmake fall-through picks the upstream prebuilt UI from the llama-ui HF bucket via the existing LLAMA_USE_PREBUILT_UI=ON default.
  • Fixes the embedded webui hanging on "Initializing connection to heierchat server…" — the snapshot expected a heierchat-app backend that isn't present on a bare llama-server.
  • Docs (AGENTS.md, README.md, tools/server/README-dev.md, scripts/ui-assets.cmake comments) updated to reflect the new arrangement: heierchat is the standalone product talking to llama-server over its OpenAI-compatible API.

Behaviour after merge

scripts/ui-assets.cmake priority chain:

  1. copy_public_dist (tools/server/public/) → MISS (removed)
  2. copy_src_dist (tools/ui/dist) → MISS (no svelte sources in tools/ui/src/)
  3. BUILD_UI=ON npm build → no-op (no source to build)
  4. HF_ENABLED=ON → downloads upstream llama-ui bundle, embeds via llama-ui-embed (C++ host-compiler only — no node)

Snoop-kube confirmed the monolith Dockerfile can drop nodejs from stage1 once this lands (paired change, pinned via --build-arg HT_SHA=<this-merge-sha>).

Test plan

  • git rm removes the 4 snapshot files cleanly
  • No remaining references to "heierchat snapshot" in docs (except as historical mention)
  • Post-merge: rebuild Pascal v2 tarball with the new SHA, verify curl http://crystal:8080/ | grep -c heierchat → 0
  • Post-merge: snoop rebuilds unified-llm container pinned to merge SHA, verifies stock UI on titan-llm + centurion-llm

… default

The heierchat snapshot at tools/server/public/ was wired into llama-server
as priority 1 in scripts/ui-assets.cmake, overriding the LLAMA_USE_PREBUILT_UI
HF-bucket download even though that flag defaults ON. The snapshot expects a
heierchat-app backend that isn't present on bare llama-server, which causes
the embedded webui to hang on "Initializing connection to heierchat server…"
when hit at llama-server's root.

Now that heierchat is a standalone product talking to llama-server over its
OpenAI-compatible API, the embedded UI reverts to the upstream llama.cpp
default — fetched as a prebuilt bundle from the llama-ui HF bucket at build
time via the existing tools/ui/ cmake scaffolding (no nodejs required, no
fork-side build).

Behaviour after this commit:
- copy_public_dist priority 1 → MISS (public/ removed)
- copy_src_dist priority 2 → MISS (tools/ui/src/ has no svelte sources)
- BUILD_UI npm priority 3 → no-op (no source to build)
- HF_ENABLED priority 4 → downloads upstream llama-ui bundle, embeds via
  llama-ui-embed (C++, host-compiler only)

Docs updated to reflect the new arrangement. The copy_public_dist cmake
function is preserved as a manual override for local experimentation.
@marksverdhei marksverdhei merged commit e0c85c8 into ht Jun 10, 2026
1 of 8 checks passed
@marksverdhei marksverdhei deleted the chore/restore-upstream-default-ui branch June 10, 2026 08:37
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