# Framework and serve keep files in the session

> Session::attach keeps a file in the session's /attachments folder, serve's message endpoint takes a files list, and embedded Slack files are kept too.

Source: <https://everruns.com/docs/changelog/2026-10-14-framework-serve-attachments/>

Date: 2026-10-14
Products: Framework
Category: Feature
Available: In 0.49.0
Pull request: everruns/everruns#4720

Files sent to a Framework or serve agent now stay readable for the whole conversation. `Session::attach` writes a file read-only to `/attachments/<id>/<name>` in the session’s own files and returns the part that sends it. The agent can open it again with `read_file` after compaction, and a zip unpacks into a folder next to it.

```rust,no_run
let report = session
    .attach("report.pdf", Some("application/pdf"), std::fs::read("report.pdf")?)
    .await?;
let mut message = InputMessage::user("Summarize the attached report.");
message.content.push(report);
session.run(message).await?;
```

A serve app’s message endpoint takes the same `files` list as the Agent API, and embedded Slack files are kept the same way. See [Send files](https://everruns.com/docs/framework/sessions/#send-files) and the [serve wire API](https://everruns.com/docs/framework/serve/#wire-api).