Every non-image chat attachment (PDF, docx, …) reaches the agent as a filename only. POST /api/upload answers 200 with the real size and mime, the bytes are on disk, but the agent only ever gets [Attached files: /opt/data/webui/attachments/<session>/x.pdf] and cannot open that path. Images keep working.
Environment
Olares 1.12.7, single node olares, user kaivostudio@olares.de
wings 26.11.12 from market.aimighty (HERMES_WEBUI_CHAT_BACKEND=gateway, HERMES_WEBUI_GATEWAY_BASE_URL=https://baf3d7172….olares.de)
hermesagent 1.3.53 from market.olares (the gateway that answers the chat)
reproduced with a 190 KiB PDF uploaded 2026-11-20
Diagnosis
values.hermesHome: "/olares/hermes-home" is mounted at /opt/data in wings-webui. On this Olares the gateway's home is somewhere else: hermesagent's own volume is the hostPath /olares/rootfs/userspace/pvc-userspace-<user>-<hash>/Data/hermesagent/home, mounted at /opt/datain its own container. Both are on the same device (/dev/mapper/olares--vg-data, 64514) but they are different directories:
# wings-webui
$ stat -c '%d %i %n' /opt/data → 64514 42629720 /opt/data
$ ls -l /opt/data/webui/attachments/fe4a76164624/9650206845555.pdf
-rw------- 1 hermeswebui hermeswebui 195408 … (header %PDF-1.4) → bytes are here
# hermesagent
$ stat -c '%d %i %n' /opt/data → 64514 42754807 /opt/data
$ ls /opt/data/webui/attachments/fe4a76164624
ls: cannot access '…': No such file or directory
Both containers call their home /opt/data, so the path string is identical while the storage is not. api/upload.py writes into $HERMES_WEBUI_STATE_DIR/attachments/<session>/ and returns that path; api/streaming.py:4690-4749 embeds images as base64 image_url data URLs — that is the only reason images still work, the gateway never has to resolve their path. Everything else is handed over as a path only, so document attachments work exactly as long as the WebUI's /opt/data and the gateway's /opt/data are the same inode. The old home still holds backups/profiles-vor-migration-20261112T095005Z, i.e. the gateway home moved into the userspace PVC around 2026-11-12 while the chart kept pointing at /olares/hermes-home.
detect-hermes-home writes /hermes-home-path/hermes_home = /opt/data — that is the gateway's path name, which is the string Wings already uses, so it confirms the assumption instead of catching the mismatch.
Reproduction
Install hermesagent (1.3.53) and wings 26.11.12 for the same user.
Upload a PDF into a Wings chat and send.
cluster pod exec <wings-pod> -c wings-webui -- ls -l /opt/data/webui/attachments/<session>/ → file present with all bytes.
cluster pod exec <hermesagent-pod> -c hermesagent -- ls /opt/data/webui/attachments/<session>/ → No such file or directory.
The agent reports "only the path, no bytes"; images in the same session work.
Expected
A non-image attachment is readable by the gateway at the exact path the WebUI writes into [Attached files: …].
Fix ideas
Resolve hermesHome from the gateway app's real home (the hostPath on the hermesagent Deployment) instead of hard-coding /olares/hermes-home. detect-hermes-home already finds the gateway's HERMES_HOME inside its container; what is missing is the host-side path.
Interim that works today (patch below): mount the gateway's attachments subtree over the WebUI's own attachments directory, so the emitted path resolves. This shadows the WebUI-side directory, so already-uploaded files must be copied into the gateway directory first (I mirrored them).
Longer term: hand document bytes to the gateway the way images are handed today (inline, or an authenticated fetch route), so path equality between two containers is not a precondition for documents.
Related finding in the same chart (dictation)
The chart injects STT_OPENAI_MODEL=default-stt but nothing sets STT_OPENAI_BASE_URL; tools/transcription_common.py:35 defaults the base URL to https://api.openai.com/v1, and _builtin_model_name prefers the merged packaged default whisper-1 over the injected env. Dictation therefore posts the Router key to OpenAI (401 invalid_api_key), and after adding the base URL it asks for whisper-1 (404 model whisper-1 is not registered, disabled, or its provider is disabled). Tracked separately; worked around per profile with:
Suggest shipping that shape (or at least STT_OPENAI_BASE_URL) when the app runs against the Olares Router.
Interim patch used on this box
--- a/wings/values.yaml
+++ b/wings/values.yaml
@@ -16,6 +16,14 @@
# Directory shared with the gateway's session helper. The helper creates the
# Unix socket; Wings mounts it read-only at /run/webui-session.
sessionSocketDir: "/olares/hermes-session"
+# Unterpfad des Gateway-Anhang-Einhangs unterhalb von /olares/rootfs/userspace.
+# Dokument-Uploads landen in $HERMES_HOME/webui/attachments und das Gateway öffnet
+# genau den Pfad, den es im Nachrichtentext bekommt. Auf diesem Olares liegt der
+# Gateway-Home im Userspace-PVC und nicht in hermesHome oben, darum wird dieser
+# Unterpfad über das WebUI-eigene attachments-Verzeichnis gehängt. (Bilder sind
+# nicht betroffen: die gehen als base64 data-URL mit.) Leer = kein zusätzlicher
+# Berg; der Pfad muss zum Userspace-PVC des-userspace passen.
+gatewayAttachmentsSubPath: "pvc-userspace-kaivostudio-pkjc0occh500re9i/Data/hermesagent/home/webui/attachments"
gateway:
# Empty = hermesagent-<user>, derived from the Wings namespace.
namespace: ""
--- a/wings/templates/deployment.yaml
+++ b/wings/templates/deployment.yaml
@@ -164,6 +164,13 @@
readOnly: true
- name: olares-rootfs
mountPath: /olares-rootfs
+ # Der Anhang-Einhang, den das Gateway sieht: nicht-Bild-Anhänge werden nur
+ # als Pfad übergeben, also muss dieser Baum unter demselben Pfad sichtbar
+ # sein, den die WebUI in [Attached files: ...] ausschreibt. Ohne ihn landen
+ # PDFs im WebUI-eigenen Home und das Gateway findet keine Bytes.
+ - name: olares-rootfs
+ mountPath: /opt/data/webui/attachments
+ subPath: {{ .Values.gatewayAttachmentsSubPath | quote }}
- name: hermes-home-path
mountPath: /hermes-home-path
readOnly: true
What this Olares does until then
Existing uploads were copied into the gateway's inbox at the same relative path (uid/gid 1000, 644), so the recorded paths resolve and the agent can extract text (PyMuPDF is present in the gateway image). New documents are placed through Olares Files — drive/Data/hermesagent/home/webui/attachments/… is reachable on the files backend — and copied into the matching session directory.
## What happens
Every non-image chat attachment (PDF, docx, …) reaches the agent as a filename only. `POST /api/upload` answers 200 with the real size and mime, the bytes are on disk, but the agent only ever gets `[Attached files: /opt/data/webui/attachments/<session>/x.pdf]` and cannot open that path. Images keep working.
## Environment
- Olares 1.12.7, single node `olares`, user `kaivostudio@olares.de`
- `wings` 26.11.12 from `market.aimighty` (`HERMES_WEBUI_CHAT_BACKEND=gateway`, `HERMES_WEBUI_GATEWAY_BASE_URL=https://baf3d7172….olares.de`)
- `hermesagent` 1.3.53 from `market.olares` (the gateway that answers the chat)
- reproduced with a 190 KiB PDF uploaded 2026-11-20
## Diagnosis
`values.hermesHome: "/olares/hermes-home"` is mounted at `/opt/data` in `wings-webui`. On this Olares the gateway's home is somewhere else: `hermesagent`'s own volume is the hostPath `/olares/rootfs/userspace/pvc-userspace-<user>-<hash>/Data/hermesagent/home`, mounted at `/opt/data` *in its own container*. Both are on the same device (`/dev/mapper/olares--vg-data`, 64514) but they are different directories:
```
# wings-webui
$ stat -c '%d %i %n' /opt/data → 64514 42629720 /opt/data
$ ls -l /opt/data/webui/attachments/fe4a76164624/9650206845555.pdf
-rw------- 1 hermeswebui hermeswebui 195408 … (header %PDF-1.4) → bytes are here
# hermesagent
$ stat -c '%d %i %n' /opt/data → 64514 42754807 /opt/data
$ ls /opt/data/webui/attachments/fe4a76164624
ls: cannot access '…': No such file or directory
```
Both containers call their home `/opt/data`, so the path *string* is identical while the storage is not. `api/upload.py` writes into `$HERMES_WEBUI_STATE_DIR/attachments/<session>/` and returns that path; `api/streaming.py:4690-4749` embeds images as base64 `image_url` data URLs — that is the only reason images still work, the gateway never has to resolve their path. Everything else is handed over as a path only, so document attachments work exactly as long as the WebUI's `/opt/data` and the gateway's `/opt/data` are the same inode. The old home still holds `backups/profiles-vor-migration-20261112T095005Z`, i.e. the gateway home moved into the userspace PVC around 2026-11-12 while the chart kept pointing at `/olares/hermes-home`.
`detect-hermes-home` writes `/hermes-home-path/hermes_home = /opt/data` — that is the gateway's path *name*, which is the string Wings already uses, so it confirms the assumption instead of catching the mismatch.
## Reproduction
1. Install `hermesagent` (1.3.53) and `wings` 26.11.12 for the same user.
2. Upload a PDF into a Wings chat and send.
3. `cluster pod exec <wings-pod> -c wings-webui -- ls -l /opt/data/webui/attachments/<session>/` → file present with all bytes.
4. `cluster pod exec <hermesagent-pod> -c hermesagent -- ls /opt/data/webui/attachments/<session>/` → `No such file or directory`.
5. The agent reports "only the path, no bytes"; images in the same session work.
## Expected
A non-image attachment is readable by the gateway at the exact path the WebUI writes into `[Attached files: …]`.
## Fix ideas
1. Resolve `hermesHome` from the gateway app's real home (the hostPath on the `hermesagent` Deployment) instead of hard-coding `/olares/hermes-home`. `detect-hermes-home` already finds the gateway's HERMES_HOME inside its container; what is missing is the host-side path.
2. Interim that works today (patch below): mount the gateway's attachments subtree over the WebUI's own attachments directory, so the emitted path resolves. This shadows the WebUI-side directory, so already-uploaded files must be copied into the gateway directory first (I mirrored them).
3. Longer term: hand document bytes to the gateway the way images are handed today (inline, or an authenticated fetch route), so path equality between two containers is not a precondition for documents.
## Related finding in the same chart (dictation)
The chart injects `STT_OPENAI_MODEL=default-stt` but nothing sets `STT_OPENAI_BASE_URL`; `tools/transcription_common.py:35` defaults the base URL to `https://api.openai.com/v1`, and `_builtin_model_name` prefers the merged packaged default `whisper-1` over the injected env. Dictation therefore posts the Router key to OpenAI (`401 invalid_api_key`), and after adding the base URL it asks for `whisper-1` (`404 model whisper-1 is not registered, disabled, or its provider is disabled`). Tracked separately; worked around per profile with:
```yaml
stt:
provider: openai
language: de
openai:
base_url: https://<router-entrance>/v1
api_key: <router key>
model: default-stt
language: de
```
Suggest shipping that shape (or at least `STT_OPENAI_BASE_URL`) when the app runs against the Olares Router.
## Interim patch used on this box
```diff
--- a/wings/values.yaml
+++ b/wings/values.yaml
@@ -16,6 +16,14 @@
# Directory shared with the gateway's session helper. The helper creates the
# Unix socket; Wings mounts it read-only at /run/webui-session.
sessionSocketDir: "/olares/hermes-session"
+# Unterpfad des Gateway-Anhang-Einhangs unterhalb von /olares/rootfs/userspace.
+# Dokument-Uploads landen in $HERMES_HOME/webui/attachments und das Gateway öffnet
+# genau den Pfad, den es im Nachrichtentext bekommt. Auf diesem Olares liegt der
+# Gateway-Home im Userspace-PVC und nicht in hermesHome oben, darum wird dieser
+# Unterpfad über das WebUI-eigene attachments-Verzeichnis gehängt. (Bilder sind
+# nicht betroffen: die gehen als base64 data-URL mit.) Leer = kein zusätzlicher
+# Berg; der Pfad muss zum Userspace-PVC des-userspace passen.
+gatewayAttachmentsSubPath: "pvc-userspace-kaivostudio-pkjc0occh500re9i/Data/hermesagent/home/webui/attachments"
gateway:
# Empty = hermesagent-<user>, derived from the Wings namespace.
namespace: ""
--- a/wings/templates/deployment.yaml
+++ b/wings/templates/deployment.yaml
@@ -164,6 +164,13 @@
readOnly: true
- name: olares-rootfs
mountPath: /olares-rootfs
+ # Der Anhang-Einhang, den das Gateway sieht: nicht-Bild-Anhänge werden nur
+ # als Pfad übergeben, also muss dieser Baum unter demselben Pfad sichtbar
+ # sein, den die WebUI in [Attached files: ...] ausschreibt. Ohne ihn landen
+ # PDFs im WebUI-eigenen Home und das Gateway findet keine Bytes.
+ - name: olares-rootfs
+ mountPath: /opt/data/webui/attachments
+ subPath: {{ .Values.gatewayAttachmentsSubPath | quote }}
- name: hermes-home-path
mountPath: /hermes-home-path
readOnly: true
```
## What this Olares does until then
Existing uploads were copied into the gateway's inbox at the same relative path (uid/gid 1000, 644), so the recorded paths resolve and the agent can extract text (PyMuPDF is present in the gateway image). New documents are placed through Olares Files — `drive/Data/hermesagent/home/webui/attachments/…` is reachable on the files backend — and copied into the matching session directory.
Beim Start wird /opt/data/webui/attachments ein Symlink auf das Gateway-eigene webui/attachments; vorhandene Wings-Uploads werden einmal kopiert (altes Verzeichnis bleibt als Backup).
Der Upload schreibt weiter über den aufgelösten Pfad, meldet aber den stabilen /opt/data/webui/attachments/...-Pfad; die Chat-Nachricht trägt damit den Pfad, den der Gateway in seinem eigenen /opt/data sieht.
Die Gegenrichtung (Agent-Medien lesen) kam mit 26.11.14.
Live auf der Box verifiziert (26.11.15):
Symlink: /opt/data/webui/attachments -> /olares-rootfs/.../Data/hermesagent/home/webui/attachments; altes Verzeichnis als attachments.wings-20261120T110120 gesichert.
Bestehende Datei fe4a76164624/9650206845555.pdf ist im hermesagent-Pod unter demselben Pfad sichtbar.
Neuer Upload über /api/upload → Pfad /opt/data/webui/attachments/fe4a76164624/wings-upload-test.pdf; im hermesagent-Pod ls -l + head -c 8 → %PDF-1.4.
Behoben in **Wings 26.11.15**.
- Beim Start wird `/opt/data/webui/attachments` ein Symlink auf das Gateway-eigene `webui/attachments`; vorhandene Wings-Uploads werden einmal kopiert (altes Verzeichnis bleibt als Backup).
- Der Upload schreibt weiter über den aufgelösten Pfad, meldet aber den stabilen `/opt/data/webui/attachments/...`-Pfad; die Chat-Nachricht trägt damit den Pfad, den der Gateway in seinem eigenen `/opt/data` sieht.
- Die Gegenrichtung (Agent-Medien lesen) kam mit 26.11.14.
**Live auf der Box verifiziert (26.11.15):**
- Symlink: `/opt/data/webui/attachments -> /olares-rootfs/.../Data/hermesagent/home/webui/attachments`; altes Verzeichnis als `attachments.wings-20261120T110120` gesichert.
- Bestehende Datei `fe4a76164624/9650206845555.pdf` ist im `hermesagent`-Pod unter demselben Pfad sichtbar.
- Neuer Upload über `/api/upload` → Pfad `/opt/data/webui/attachments/fe4a76164624/wings-upload-test.pdf`; im `hermesagent`-Pod `ls -l` + `head -c 8` → `%PDF-1.4`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What happens
Every non-image chat attachment (PDF, docx, …) reaches the agent as a filename only.
POST /api/uploadanswers 200 with the real size and mime, the bytes are on disk, but the agent only ever gets[Attached files: /opt/data/webui/attachments/<session>/x.pdf]and cannot open that path. Images keep working.Environment
olares, userkaivostudio@olares.dewings26.11.12 frommarket.aimighty(HERMES_WEBUI_CHAT_BACKEND=gateway,HERMES_WEBUI_GATEWAY_BASE_URL=https://baf3d7172….olares.de)hermesagent1.3.53 frommarket.olares(the gateway that answers the chat)Diagnosis
values.hermesHome: "/olares/hermes-home"is mounted at/opt/datainwings-webui. On this Olares the gateway's home is somewhere else:hermesagent's own volume is the hostPath/olares/rootfs/userspace/pvc-userspace-<user>-<hash>/Data/hermesagent/home, mounted at/opt/datain its own container. Both are on the same device (/dev/mapper/olares--vg-data, 64514) but they are different directories:Both containers call their home
/opt/data, so the path string is identical while the storage is not.api/upload.pywrites into$HERMES_WEBUI_STATE_DIR/attachments/<session>/and returns that path;api/streaming.py:4690-4749embeds images as base64image_urldata URLs — that is the only reason images still work, the gateway never has to resolve their path. Everything else is handed over as a path only, so document attachments work exactly as long as the WebUI's/opt/dataand the gateway's/opt/dataare the same inode. The old home still holdsbackups/profiles-vor-migration-20261112T095005Z, i.e. the gateway home moved into the userspace PVC around 2026-11-12 while the chart kept pointing at/olares/hermes-home.detect-hermes-homewrites/hermes-home-path/hermes_home = /opt/data— that is the gateway's path name, which is the string Wings already uses, so it confirms the assumption instead of catching the mismatch.Reproduction
hermesagent(1.3.53) andwings26.11.12 for the same user.cluster pod exec <wings-pod> -c wings-webui -- ls -l /opt/data/webui/attachments/<session>/→ file present with all bytes.cluster pod exec <hermesagent-pod> -c hermesagent -- ls /opt/data/webui/attachments/<session>/→No such file or directory.Expected
A non-image attachment is readable by the gateway at the exact path the WebUI writes into
[Attached files: …].Fix ideas
hermesHomefrom the gateway app's real home (the hostPath on thehermesagentDeployment) instead of hard-coding/olares/hermes-home.detect-hermes-homealready finds the gateway's HERMES_HOME inside its container; what is missing is the host-side path.Related finding in the same chart (dictation)
The chart injects
STT_OPENAI_MODEL=default-sttbut nothing setsSTT_OPENAI_BASE_URL;tools/transcription_common.py:35defaults the base URL tohttps://api.openai.com/v1, and_builtin_model_nameprefers the merged packaged defaultwhisper-1over the injected env. Dictation therefore posts the Router key to OpenAI (401 invalid_api_key), and after adding the base URL it asks forwhisper-1(404 model whisper-1 is not registered, disabled, or its provider is disabled). Tracked separately; worked around per profile with:Suggest shipping that shape (or at least
STT_OPENAI_BASE_URL) when the app runs against the Olares Router.Interim patch used on this box
What this Olares does until then
Existing uploads were copied into the gateway's inbox at the same relative path (uid/gid 1000, 644), so the recorded paths resolve and the agent can extract text (PyMuPDF is present in the gateway image). New documents are placed through Olares Files —
drive/Data/hermesagent/home/webui/attachments/…is reachable on the files backend — and copied into the matching session directory.Behoben in Wings 26.11.15.
/opt/data/webui/attachmentsein Symlink auf das Gateway-eigenewebui/attachments; vorhandene Wings-Uploads werden einmal kopiert (altes Verzeichnis bleibt als Backup)./opt/data/webui/attachments/...-Pfad; die Chat-Nachricht trägt damit den Pfad, den der Gateway in seinem eigenen/opt/datasieht.Live auf der Box verifiziert (26.11.15):
/opt/data/webui/attachments -> /olares-rootfs/.../Data/hermesagent/home/webui/attachments; altes Verzeichnis alsattachments.wings-20261120T110120gesichert.fe4a76164624/9650206845555.pdfist imhermesagent-Pod unter demselben Pfad sichtbar./api/upload→ Pfad/opt/data/webui/attachments/fe4a76164624/wings-upload-test.pdf; imhermesagent-Podls -l+head -c 8→%PDF-1.4.