Skip to content

DRU-650 -- Other files reach the chat agent as links - #726

Merged
czpython merged 1 commit into
mainfrom
codex/dru-650-other-files-reach-the-chat-agent-as-links
Sep 26, 2026
Merged

czpython merged 1 commit into
mainfrom
codex/dru-650-other-files-reach-the-chat-agent-as-links

Conversation

@czpython

Copy link
Copy Markdown
Owner

A file that is not an image or audio, sent on WhatsApp or Slack, now reaches the agent as a link it can open. An operator's agent reads the copy with its own tools. A bot agent, which has no file tools, sees the link and the file's name.

  • Before the prompt, send_turn uploads each such file from the file storage to {work_root}/chat/{conversation.id}/files/{file.id}/{name} with host.upload_file, the way it uploads the session archive to the conversation folder. Only the file's base name joins the path.
  • The message gets a resource_link block with a file:// uri, the name, and the mime type. The three adapters turn it into a link or file part the agent can open.
  • An image over MAX_UPLOAD_BYTES goes the same way, as a link, instead of a base64 block.
  • Audio files add nothing to the prompt.
  • docs/chat.md says what reaches the agent under WhatsApp and under Slack's Files.

@czpython
czpython force-pushed the codex/dru-650-other-files-reach-the-chat-agent-as-links branch from 900d8a3 to a44de84 Compare September 26, 2026 19:39
@czpython
czpython force-pushed the codex/dru-649-images-reach-the-chat-agent branch from ce3aa03 to 8cb9c1a Compare September 26, 2026 19:59
@czpython
czpython force-pushed the codex/dru-650-other-files-reach-the-chat-agent-as-links branch from a44de84 to 14f0695 Compare September 26, 2026 19:59
Base automatically changed from codex/dru-649-images-reach-the-chat-agent to main September 26, 2026 20:12
@mintlify

mintlify Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
druks 🟢 Ready View Preview Sep 26, 2026, 8:14 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@czpython
czpython force-pushed the codex/dru-650-other-files-reach-the-chat-agent-as-links branch from 14f0695 to 12c91f0 Compare September 26, 2026 20:14
@czpython
czpython merged commit 37f79a1 into main Sep 26, 2026
3 checks passed
@czpython
czpython deleted the codex/dru-650-other-files-reach-the-chat-agent-as-links branch September 26, 2026 20:18
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