Skip to content

[Bug] zai-web: attachment metadata is present, but files are missing in /home/z/my-project/upload #860

Description

@annapusher-tech

提交前确认 · Pre-submission checklist

  • 我已搜索过现有 issue,确认这不是重复 / I searched existing issues and confirmed this isn't a duplicate.
  • 我已阅读 CONTRIBUTING.md / I've read CONTRIBUTING.md.

问题类别 · Category

稳定性 / 崩溃 · Stability / Crash

涉及的 Agent 框架 · Agent framework

ZCode Agent(自研)

严重程度 · Severity

影响体验 · Major (功能可用但体验受损 / works but degraded)

复现频率 · Reproducibility

必现 · Always

问题描述 · Description

bug-report-attachments-zai-web.md

Attachments uploaded in the zai-web chat are not delivered to the model container.

The gateway metadata correctly lists the attachments (file_name, Storage location: /home/z/my-project/upload/{file_name}), but the files are never physically written to the container filesystem. The target directory /home/z/my-project/upload/ remains empty.

This is a platform bug in the zai-web gateway, not a model bug. Full report (with trace IDs, session IDs, environment details) is attached below / in the follow-up comment.

Note: this report is filed against ZCode's feedback form because it is the only available escalation channel — the actual affected component is zai-web.

复现步骤 · Steps to reproduce

  1. Open the zai-web chat at z.ai (session web-f0d0bc9e-f107-4e26-a105-62ca6e90df95, chat e9cc761f-abd3-4ed0-a1aa-6dd67f6a7c9d).
  2. Attach a PNG image and two .txt files (e.g. 1.png, Модуль 1 - транскрибация.txt, Модуль 1 Решение ПЗ - транскрибация.txt).
  3. Send the message.
  4. In the model container, run ls -la /home/z/my-project/upload/ — the directory is empty.
  5. Check the incoming message metadata — it still contains file_name and Storage location.

期望表现 · Expected behavior

After sending an attachment in the zai-web chat, the file should appear at /home/z/my-project/upload/{file_name} within the message processing time (synchronously or in a short async window). The Storage location metadata should only be generated after a successful write to disk.

实际表现 · Actual behavior

Metadata lists the attachments, but no files appear in /home/z/my-project/upload/. A full-filesystem search (find / -type f \( -name "1.png" -o -iname "*транскрибация*" -o -iname "*Модуль*" \)) returns 0 matches. The directory is writable (drwxrwxrwx, owner root), so this is not a permissions issue — the bytes are simply never written.

ZCode 版本 · ZCode version

N/A — not a ZCode issue. Affected component: zai-web (web chat).

设备 / 系统 / 浏览器 · Device / OS / Browser

Infinix Y3 Max/Windows 11/Edge

截图 / 录屏 / 日志 · Screenshots / Recordings / Logs

No response

Activity

  1. github-actions commented on Sep 28, 2026

    @github-actions

    👋 感谢你的反馈,我们已经收到。

    • 维护者看到后会尽快回复你。
    • 状态保持为 status: 待评估,你可以随时补充信息。
    • 信息不全时我们会打上 needs: 更多信息 标签并 @ 你。

    👋 Thanks — we've received your issue.

    • A maintainer will get back to you as soon as we can.
    • Status stays at status: 待评估 (Triage); feel free to add context.
    • If we need more details, we'll add needs: 更多信息 and ping you.
  2. FlacH7 commented on Sep 29, 2026

    @FlacH7

    Same bug here, still reproducing on Sep 29, 2026.
    Adding my trace_ids for log lookup:

    trace_id: 1a0eb522f7412ad5
    trace_id: 1a0eb57ea1fea859
    trace_id: 1a0eb5ba2e73b151 (hola.txt, 5 bytes)
    trace_id: 1a0eb608b9cbfcc1 (hola.txt retransmission, still missing)
    trace_id: 1a0eb6b206553b75 (most recent turn)

    session_id: web-e4665e1f-40a2-45a7-a6cc-ee7daee920d7
    chat_id: b3bc61b4-680a-44eb-9c78-e5e27f64d5a4
    channel: zai-web

    Reproduction identical to OP. The agent receives
    "file_name: " + "Storage location: /home/z/my-project/upload/{file_name}"
    but the file never appears in the sandbox filesystem.

  3. annapusher-tech commented on Sep 29, 2026

    @annapusher-tech
    Author

    Same bug here, still reproducing on Sep 29, 2026. Adding my trace_ids for log lookup:

    trace_id: 1a0eb522f7412ad5 trace_id: 1a0eb57ea1fea859 trace_id: 1a0eb5ba2e73b151 (hola.txt, 5 bytes) trace_id: 1a0eb608b9cbfcc1 (hola.txt retransmission, still missing) trace_id: 1a0eb6b206553b75 (most recent turn)

    session_id: web-e4665e1f-40a2-45a7-a6cc-ee7daee920d7 chat_id: b3bc61b4-680a-44eb-9c78-e5e27f64d5a4 channel: zai-web

    Reproduction identical to OP. The agent receives "file_name: " + "Storage location: /home/z/my-project/upload/{file_name}" but the file never appears in the sandbox filesystem.

    Thanks for confirming, good to know it's not an isolated case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions