> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dureai.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Terminal 与文件工作流

> 保留原生 CLI 行为，同时在 local 与 SSH pane 中传递文字、图片和文件。

Dure 嵌入 provider 的真实 terminal UI，而不是把它替换成聊天界面。

| 工作流         | 当前行为                                            |
| ----------- | ----------------------------------------------- |
| 韩文输入        | macOS IME relay 处理不发送普通 composition event 的输入法。 |
| 远程剪贴板       | OSC 52 让受信任的 tmux、Neovim 等程序写入本地 clipboard。     |
| 图片粘贴        | 先创建临时文件；SSH pane 会上传后再输入远程路径。                   |
| Finder 文件拖放 | local 与 SSH 路径全部准备成功后才一次性输入。                    |

## 把文件拖给 agent

从 Finder 向 terminal pane 拖入最多 5 个、总计不超过 50 MiB 的文件。Dure 会安全
引用包含空格、韩文或 shell 符号的路径。SSH 中会先上传，再输入远程路径。

如果任一步失败，Dure 会清理自己创建的临时文件，并且不会在 terminal 中留下
半条命令。

<Warning>
  OSC 52 允许 terminal program 写入系统 clipboard。只对可信 CLI 和远程环境开启。
</Warning>

文件传递是便利功能，不是安全 sandbox。权限仍由 provider approval 与本地或远程
账号决定。
