- Pin upstream to v4.8.2 (better official translations). Branding overlay
re-verified: logos, favicon, Onyx->AIDO codemod (incl. the official
next-intl catalogs, now 9 locales with Arabic), notification-hide, and
de/en language limiting all apply clean and type-check.
- Re-sync smb-ui.patch onto v4.8.2 and remove the "Initial Indexing"
badge hunk: connectors now ingest as the File source, which reports
status correctly on its own, so the hunk was dead. The patch is now two
files (chat citation + licensed Search), keyed on metadata.smb_source.
- Refresh the SMB connector docs to the current design: File-source
ingestion (chat-searchable), the full extension set, the per-source
index document and per-connector group access, and the UI overlay that
copies the full path. Fix stale ingestion_api / v4.5.2 references and a
trailing-whitespace nit in the connector payload.
DHI is a no-op on v4.8.2 (Dockerfile defaults to public node images).
The Ingestion API docs require creating a connector with source=file and
pushing documents with from_ingestion_api=true so they are indexed under a
recognizable DocumentSource that Onyx's chat UI can filter and search.
Previously we used source=ingestion_api / input_type=poll. Documents were
indexed (visible in the admin panel) but were not searchable in Onyx's
default chat because ingestion_api is absent from the chat filter UI.
Connector changes:
- onyx_client.py: create connector as source=file, input_type=load_state,
connector_specific_config.file_locations=[] (avoids LocalFileConnector
health-check errors since we push via API, not disk crawl)
- sync.py: set source=file and from_ingestion_api=true on every document
and index payload so Onyx treats them as API-ingested File docs
UI overlay changes (branding/smb/smb-ui.patch):
- Replace document.source_type === ValidSources.IngestionApi with
document.metadata?.smb_source
- This keeps the broken-preview suppression and logical-path clipboard
copy working for SMB docs, while leaving normal File uploads untouched
Result: SMB documents now surface in default chat under the File filter,
the connector stays "Up to Date" without dummy-file errors, and the
Phase 2 click-to-copy behavior continues to work.
1. Optional Onyx group per connector. Set SMB_SOURCE_<N>_GROUPS (or
"groups" in SMB_SOURCES JSON, or SMB_DEFAULT_GROUP_IDS as a fallback)
to a list of Onyx user-group ids. The connector is then created
PRIVATE and restricted to those groups; empty stays PUBLIC. Applied
only at connector creation, as requested. Needs the Business licence.
2. Standalone deployment. New docker-compose.standalone.yml runs the
connector as its own Compose project next to Onyx (no -f injection),
joining Onyx's network (onyx_default, override via ONYX_NETWORK) to
reach the API by service name. Suits Compose management tools that
cannot handle multiple injected compose files. The legacy injected
compose still works.
Verified: group-id parsing across all three source styles, the
private+groups vs public payload, standalone compose config, and the
full index/sync simulation (still green).
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.
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>