Two client-requested changes:
1. Table of contents per source. On each sync the connector writes one
index document listing every file on the share, grouped by folder, so
the assistant is aware of the full document set even when a search
returns only some files. It re-upserts only when the file set changes,
is excluded from the orphan-delete reconcile (shares the source prefix
but is not a file), and is removed if SMB_WRITE_INDEX is turned off.
2. Shorter citation labels. semantic_identifier is now the file name, not
the full path, so the chat/search citation shows "Angebot.pdf" instead
of a long truncated Z:\... path. The full network path stays in `link`
and metadata; the UI overlay copies it to the clipboard on click, in
both the chat view and the licensed Search view. A DOC_FORMAT_VERSION
bump re-upserts already-synced files once so existing docs get the new
label without waiting for a content change.
Verified with a mock-client simulation: 17 checks covering filename
labels, full-path copy, index create/update/delete, reconcile whitelist,
add/remove sync, and the one-time format-version re-upsert.
The Phase 2 overlay patched the shared openDocument(), which the chat
view uses. The licensed (EE) Search view has its own click handler in
web/src/ee/sections/SearchCard.tsx that never calls openDocument, so
ingestion_api (SMB) documents still opened the broken preview pane.
Add the same ingestion_api branch to SearchCard.handleClick: copy the
logical network path to the clipboard instead of opening a dead preview.
Regenerate smb-ui.patch (now 3 files); applies clean to v4.7.2 and the
three files type-check clean.
- Pin upstream to v4.7.2 and use its official next-intl i18n (German
included); disable the temporary react-i18next backport.
- Extend the string codemod to rebrand Onyx->AIDO inside the official
next-intl message catalogs (web/src/i18n/messages/*.json).
- Re-sync the SMB UI overlay patch onto v4.7.2 (path-copy for cited SMB
documents + the ingestion_api "Initial Indexing" status fix).
- Re-add notification-hide-for-non-admins and de/en language limiting as
string-based targeted patches in apply-branding.mjs, so they survive
future version bumps (no more brittle patch files for these).
- DHI base-image swap is now a no-op: v4.7.2 defaults to public node
images (DHI is a CI-only build-arg override).
Four items from client feedback:
1. Stuck 'Initial Indexing' status. Root cause (by design in Onyx):
docprocessing/utils.py never runs a classic index attempt for INGESTION_API
connectors — documents are pushed via the API, not polled — so
last_finished_status stays null and the badge is stuck even though the docs
are indexed and searchable (also why it's safe: no risk of re-index deleting
the pushed docs). Two-part fix:
- Connector now sets each cc_pair ACTIVE after provisioning (set_cc_pair_active),
which fixes the connector detail page + 'Active Connectors' count.
- Frontend overlay (branding/smb/smb-ui.patch): the Ingestion table shows the
real cc_pair_status for ingestion_api connectors instead of forcing
'Initial Indexing'. Verified live: new cc_pair comes up ACTIVE.
2. Connector name now configurable: ONYX_CONNECTOR_NAME_PREFIX (default 'AIDO SMB').
3. HTTP timeout now configurable: ONYX_HTTP_TIMEOUT (default 60), for large embeds.
4. (Phase 2 already delivered in ab64692 — the preview/path overlay.)
Verified live against running Onyx: provisioning sets ACTIVE, custom prefix
'Livtec Docs - Sales' applied, timeout honoured, ä-filename still indexed. Full
overlay apply green, no conflict markers, connector modules parse.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Client hit a crash on every cycle: filenames with non-UTF-8 bytes (e.g. 0xE4 = ä)
arrive from os.walk surrogate-escaped ('\udce4'), and encoding them to UTF-8 for
the id hash / ingestion JSON / manifest raised UnicodeEncodeError.
Fix: normalise each relative path once via _fs_safe() — recover the real on-disk
bytes (os.fsencode reverses surrogateescape) and decode with the share's codepage
(SMB_FILENAME_ENCODING, default cp1252) — so the id hash, the ingestion payload
and the manifest are all UTF-8/JSON-safe and the filename displays correctly
(Angebot_März.txt, not a crash). New SMB_FILENAME_ENCODING env; the previously
added SMB_SOURCE_<N>_MOUNT_OPTS also lets you pass iocharset at mount time.
Verified E2E against live Onyx with a real 0xE4 filename: no crash, indexed
'Angebot_März.txt', logical path '\company\sales\Angebot_März.txt' stored
correctly, manifest persisted, restart → 0/0/all-unchanged (stable id).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Frontend overlay (folds into the white-label apply step). Documents synced from
SMB shares (source=ingestion_api) have no browsable file, so Onyx's preview click
was a dead end. openDocument now, for ingestion_api docs, copies the logical
network path (semantic_identifier, e.g. \\company\share\file) to the clipboard
with a toast instead of attempting a broken preview. Single change at the shared
click chokepoint, so it covers the document sidebar + citations.
- branding/smb/smb-ui.patch: the utils.ts change (applies clean to v4.5.2 and on
top of the i18n patch; order-independent).
- apply-branding.mjs: new step 0b applies it (gated by smbUi.enabled, idempotent
via a marker), before the codemod.
- branding.config.json: smbUi block.
Verified: full apply green (i18n + SMB + branding), idempotent re-apply, no
conflict markers. Compile build in progress.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Client asked to mount the SMB share in Docker rather than on the host. Added an
opt-in in-container CIFS mount:
- entrypoint.sh mounts each source's share (mount -t cifs) from env
(SMB_SOURCE_<N>_UNC or _SERVER+_SHARE, _USERNAME/_PASSWORD/_DOMAIN/_VERS),
read-only, credentials via a 0600 file (never in the process list), then drops
from root to the unprivileged app user via gosu and execs the sync app;
unmounts cleanly on stop.
- Dockerfile installs cifs-utils + gosu, runs the mount entrypoint.
- docker-compose.smb.yml adds cap_add [SYS_ADMIN, DAC_READ_SEARCH] +
apparmor:unconfined (privileged fallback noted).
- .env.example + README document in-container mode; legacy host-bind-mount mode
still works (omit _UNC/_SERVER for that source).
Entrypoint logic validated (POSIX sh check + mocked dry-run: correct mount args,
guest fallback, creds file, privilege drop). Live CIFS round-trip to be run
against a real SMB server; the sync engine is already E2E-verified.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- System prompt description ('Remove the base system prompt...') wrapped in BOTH
places: AgentEditorPage (create) and AgentViewerModal (summary).
- Search filter (ActionsPopover/SwitchList): Enable All / Disable All now use the
existing chat.actions keys (added useTranslation hook).
- Model selector: 'Search models...' placeholder -> model_selector.search_placeholder.
- File picker: 'Recent Files' / 'All Recent Files' -> files.* keys.
- Notification BADGE on the sidebar account button now also gated by
canSeeNotifications — non-admins see no bell, no panel, and no count badge; admins
keep the full unfiltered notification centre.
Patch 66 files, applies clean to v4.5.2; apply green; missing-hook + duplicate-hook
scans CLEAN. Build verification next.
Build failed type-check: AgentEditorPage.tsx MCPServerCard used t() without the
useTranslation() hook (Cannot find name 't'). Added the hook. Scanned every
function the patch touches for the same class; MCPServerCard was the only real one.
Client feedback round:
- TOOLS bug: getLocalizedToolLabel calls t("tools.<x>") with no fallback and the
tools.* keys were missing, so the UI showed raw keys (tools.web_search). Added
tools.* to de/en (Websuche, Interne Suche, Bildgenerierung, ...).
- NOTIFICATIONS: hidden for non-admin end users (bell + panel) via AccountPopover
canSeeNotifications gate (admin/curator/global_curator still see it, English).
Client doesn't use it for users. Documented in branding.config.json.
- CREATE AGENT: wrapped the remaining strings across AgentEditorPage, AgentKnowledgePane,
KnowledgeMainContent, InputDatePicker (Select Date), BackButton (Back). ~30 labels/
descriptions/placeholders: Knowledge, Use Knowledge, instructions/starters/reminders
descriptions, Share, Feature/private/unlisted notes, labels, Create/Edit Agent, Cancel.
Added agent_editor.* + general.back/select_date German keys.
Patch regenerated (61 files, git add -A), applies cleanly to pristine v4.5.2; apply green;
only de/en; all keys resolve; no conflict markers. Image build verification in progress.
Client-flagged English areas now translated (keys already in de.json, so German shows
immediately):
- Sidebar (AppSidebar): New Session, Search Chats, Recents, Agents, More Agents/Explore
Agents, Projects, New Project.
- Chat-search command menu (ChatSearchCommandMenu): placeholder, Recent/Recent Sessions,
Sessions/Projects filter chips, New Session, New Project, footer Select/Open/Show all.
Added sidebar.search.* keys to de/en.
- Agent editor (AgentEditorPage, /app/agents/create): 13 section labels — Instructions,
Conversation Starters, Agent Avatar, Advanced Options, Reminders, Share/Feature/Delete,
Knowledge Cutoff, Overwrite System Prompt, User Files. Added agent_editor.* keys.
Patch regenerated with git add -A (prior manual regen had dropped untracked new files —
fixed). Applies cleanly to pristine v4.5.2; apply green; only de/en; all keys resolve;
no conflict markers. Image build verification in progress.
Extends the v4.5.2 i18n patch to translate 8 more user components the initial re-sync
had left English (onboarding NameStep/LLMStep/NonAdminStep, AppChrome, AppPage, settings
layout, MultiModelSelector, opal sidebar). ~24 additional strings, using PR #12558's own
keys (already in de.json), so German resolves immediately.
Method: extracted the PR's exact string->key wrapping and re-applied it onto v4.5.2's
versions, injecting each useTranslation hook at the PR's own anchor (verified every t()
call is inside its hook's function scope). Patch applies clean to pristine v4.5.2 (55
files). Un-wrapped strings fall back to English, so no breakage.
Remaining un-wrapped (documented): components v4.5.2 restructured heavily (chat greeting
is a logic refactor, some sidebar/modal/model-selector text) — bespoke per-component work,
added incrementally.
Note: final image build to be run on a stable connection (local Docker build network-
blocked this session); patch + hook scoping verified statically.
Two client requests on the v4.5.2 German build:
1. Editable/persistent translations. German dictionaries now live at
branding/i18n/locales/{de,en}.json (the client edits these). apply-branding.mjs
overlays them onto web/public/locales/<lang>/common.json AFTER the patch, so edits
survive make setup (previously the dict was inside the patch and got overwritten).
Added MISSING-de.md (the ~12 non-admin keys still English; dict is ~98% complete).
2. Limit the selector to German + English. New config i18n.languages=["de","en"];
apply strips every other bundled language (es/fr/pt) from i18n.ts (imports +
resources), the Settings selector, and public/locales. Config-driven + idempotent.
Note for coverage: dictionary edits only reach strings that are t()-wrapped. Components
kept at v4.5.2 during the re-sync (never-break-UI) render English regardless — those need
a component-wrapping pass (separate dev work), documented in README.
Verified in a built image: compiles (4.8min); de+en dictionaries served (200),
es/fr/pt removed (404); homepage 200.
Client is moving to release v4.5.2 (from the ~v4.3 the overlay was built on) and wants
the pin on a release NUMBER, not a raw commit.
- Re-synced end-user-i18n.patch: cherry-picked PR #12558 onto v4.5.2 and resolved the
~25 conflicts from upstream's own refactors. Strategy = never break the UI: kept
v4.5.2's version for tangled components (they stay English) and hand-merged only the
two that matter — AppProvider (i18n init + I18nextProvider) and SettingsPage (language
selector). New i18n infra + all 5 locale dicts merged cleanly. 4 files upstream
relocated were dropped (no dangling imports — verified).
- Pin to release tag: upstream.pinnedCommit + i18n.baseCommit = v4.5.2 (make setup
checks out the tag). Regenerated patch applies to pristine v4.5.2 with zero conflicts.
- apply-branding.mjs: idempotent i18n step via a sentinel file (src/lib/i18n.ts), so
re-running make apply no longer errors once branding has edited the patched files.
- DHI base-image swap now also triggers on v4.5.2 (its Dockerfile uses dhi.io/node).
- README: tag-pin model, coverage caveat, per-release re-sync guidance.
Verified: patch applies clean to v4.5.2; full make apply green (i18n + 201 code + 376
locale replacements); selector + init wired; no leaked conflict markers. Image build to
be run on a stable connection (local build blocked by network).
Temporary multi-language support until Onyx ships official i18n (ETA Q4'26/Q1'27).
Backports PR #12558 (react-i18next; end-user UI only, Admin stays English) as a
config-driven overlay so the official source stays intact and upgrades stay easy.
- branding/i18n/end-user-i18n.patch: the PR's 70-file change set, pinned to its exact
base commit (727e096d) so it applies with zero conflicts.
- branding.config.json: pin upstream to 727e096d; add i18n block (enabled, patch,
baseCommit, defaultLanguage=de, rebrandLocales).
- apply-branding.mjs: step 0 git-applies the patch BEFORE the string codemod; the
codemod then rebrands Onyx->AIDO inside every locale dict (de/en/es/fr/pt).
Idempotent; fails loudly if the checkout isn't at i18n.baseCommit.
- README: 'German UI / i18n (temporary)' section — how to edit translations, add
languages, and retire the overlay when official i18n lands.
Verified: patch applies cleanly on a fresh pinned checkout; `make apply` runs green
(198 code + 376 locale replacements across 5 languages); i18n deps resolve. Fill/refine
German in web/public/locales/de/common.json (PR ships a full draft).
The litellm-redis `command:` was indented at service level (2 spaces) instead of
inside the service (4 spaces), so Docker Compose parsed it as a bogus top-level
service named `command` and rejected the entire file with:
services.command must be a mapping
This made `docker compose <anything>` fail — the whole stack was unstartable.
Re-indented it under litellm-redis; `docker compose config` now validates.
Onyx's web Dockerfile now bases on Docker Hardened Images (dhi.io/node:24-debian13*),
which require a paid DHI subscription + `docker login dhi.io` — so `make build` fails
with a registry-login error for anyone without DHI access.
The apply overlay now rewrites those two FROM lines to the equivalent PUBLIC Docker
Hub node images (24-trixie / 24-trixie-slim, Debian 13 / glibc to match the DHI variant
the Dockerfile targets) and sets the runtime to the non-root `node` user, matching
upstream's posture — no docker login needed.
- branding.config.json: new build.baseImageReplacements map (config-driven)
- apply-branding.mjs: step 1b swaps DHI FROM lines (digest-stripped) + adds USER node;
idempotent, no-op with a warning if the DHI bases are absent (safe across upstream changes)
- README: upgrade note #3 documenting the swap
Verified end-to-end: full web image builds on the public bases (no login), serves 200,
and runs correctly as the non-root node user.
How to reach the app (http://localhost:3000), change the port (HOST_PORT),
auth behaviour, first-boot wait, health-check commands, and troubleshooting
the backend-unavailable banner.
- web_server: branded livtec/aido-web:local from ./web, pull_policy never
- restore minio (S3 file store) the flattened compose dropped — api_server
requires S3_ENDPOINT_URL=http://minio:9000 and won't start without it
- nginx published on ${HOST_PORT:-3000} → out-of-the-box http://localhost:3000
- Makefile targets the single file (no override chain)
- README: ./web layout, one-compose flow, USER_AUTH_SECRET + first-boot notes
- gitignore runtime data dirs (db_volume, model caches)
Verified: stack converges healthy on the single file; localhost:3000 + /api/health both 200.
Single self-contained docker-compose.yml for the client — no override chain:
- web_server uses the branded livtec/aido-web:local (built from ./web), pull_policy never
- restore the minio (S3 file store) service the flattened compose had dropped;
api_server requires S3_ENDPOINT_URL=http://minio:9000 and can't start without it
- publish nginx on ${HOST_PORT:-3000} for out-of-the-box http://localhost:3000
(Traefik labels still apply in prod)
- Makefile now targets the single file; drop docker-compose.branding.yml
- README updated for ./web layout, one-compose flow, USER_AUTH_SECRET + first-boot notes
- gitignore runtime data dirs (db_volume, model caches)
Verified: full stack converges healthy on one file; localhost:3000 and /api/health both 200.
Follow-up to client testing on the flattened (sparse-checkout) structure.
- icons.tsx: swap inline OnyxLogoTypeIcon SVG (error/health pages, craft) for
the AIDO wordmark asset, via a new template + anchored, idempotent patch.
- Notification bell content is backend-generated (official image, not rebuilt),
so rebrand it at render time: generate lib/branding-runtime.ts from config and
route the notifications hook through it — sanitize 'Onyx'->brand and suppress
upstream/EE product notices (permissions-migration announcement, license/trial).
- Repoint hardcoded Onyx links/emails: Discord, support@onyx.app, '@onyx.app
administrators' (WebResultIcon hostname logic intentionally left untouched).
- .gitignore: ignore generated /web/, /data/, .onyx-sparse-tmp/ so 'make setup'
output can't be committed accidentally.
- README + verify updated for the new touchpoints.
Verified in the flattened layout: branded web image builds, 0 stray 'Onyx',
and bundle greps confirm all leaks gone.
Replace the nested `onyx/` full-clone approach with a flattened, self-contained
deployment structure:
- `make setup` now uses `git sparse-checkout` to fetch only `web/` and
`deployment/data/nginx/` from upstream, extracting them flat into `./web`
and `./data/nginx`. This avoids downloading the entire Onyx repository
when we only rebuild the branded web container ourselves.
- Add a top-level `docker-compose.yml` as the base stack file instead of
referencing paths inside `onyx/deployment/...`. This keeps the compose
project in the repo root so it can be managed by dockge and simplifies
putting Traefik in front of the Onyx nginx.
- Update `docker-compose.branding.yml` build context from `./onyx/web` to `./web`.
- Update `branding.config.json`:
- `webSrcRoot`: `onyx/web` → `web`
- `pinnedCommit`: pinned hash → `main`
- Add rename literals for "Open Source AI Platform" → "Powered by Livtec"
and `https://www.onyx.app` → `https://livtec.cloud`
- Replace the minimal `.env.example` with the full Onyx deployment template.
- Add `setup.sh` for server provisioning (Node.js 25, make, /opt/stacks/onyx).
- Update `make verify` to search `./web/src` instead of `./onyx/web/src`.
All backend/model services continue to use official upstream Docker images;
only the `web_server` image is built locally from the branded source.
Thin-overlay white-label: branding driven by a single config, applied into
onyx/web by apply-branding.mjs; only the web image is built locally while all
other services use official Onyx images.
- branding/branding.config.json: single source of truth (name, assets, links)
- branding/apply-branding.mjs: asset fetch + logo swap + favicon repoint + codemod
- docker-compose.branding.yml + Makefile: build only livtec/aido-web, pull the rest
- .env/.env.nginx examples + README (update-branding & upgrade-Onyx workflows)
Community Edition only; no EE/commercial features used.