Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

[English](CHANGELOG.md) · [Русский](CHANGELOG.ru.md) · [简体中文](CHANGELOG.zh-CN.md)

## Unreleased

- **Agents you launch run as your terminal would run them.** The OS isolation layer (macOS `sandbox-exec`, Linux bubblewrap) now wraps only subagents, plugin-started agents and the auto of a CLI without an auto mode of its own (its approval bypass). Before, it wrapped every agent outside Manual, and Claude Code's Bash tool and external editor failed with `EPERM`: Claude keeps their files in `/tmp/claude-<uid>` whatever `TMPDIR` says. Inside the layer Claude Code may now write that folder. Base protection is unchanged and still on by default.
- CanvasTTY no longer switches Claude Code's own sandbox on in Auto; it follows the person's Claude settings.
- **Settings → Keyboard → Claude editor** (macOS): rebindable keys for Claude Code cards, like the Codex editor. While Claude's prompt box is on screen, Enter breaks the line and Command+Enter submits; in dialogs, confirmations and other screens Enter keeps its usual meaning, and Shift+Enter always breaks the line. Command+A selects the whole draft, then Command+C, Command+X, Delete or typing copy, cut, delete or replace it, and the terminal Paste key replaces it. Submit, line break and select always keep a key; copy, cut and delete can be switched off. Changes apply at once in open cards. The **Claude draft keys** switch at the top of the group (on by default) turns all of it off: the keys reach Claude as they are (Enter submits), and new Claude sessions start with the person's own editor instead of CanvasTTY's `VISUAL`.
- **Settings → Keyboard → Codex editor** (macOS): the keys are now really rebindable, and the owned Codex frontend reads them. Defaults match the Claude editor: Command+Enter submits (or queues, and picks a `/` command), Enter and Shift+Enter break the line, Command+A selects the whole draft, and Command+C, Command+X and Delete copy, cut or delete a selected draft (selected terminal output still copies with the terminal's Copy key). The separate alternate and Command submit rows are gone. Settings still at the old Codex defaults take the new ones; customized submit and line-break keys are kept. Copy, cut and delete can be switched off. A plain Enter that no key uses keeps Codex's own submit; dialogs and embedded editors keep their keys. Changes apply to new or restarted Codex cards. Linux and Windows are unchanged.

## 1.8.1

- Fixed the Files reader rejecting all regular files on macOS: `/dev/fd` device paths are not treated as resolved file targets, and the opened file's identity is checked against its current path before reading. The 1.8.0 build was not published.
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

[English](CHANGELOG.md) · [Русский](CHANGELOG.ru.md) · [简体中文](CHANGELOG.zh-CN.md)

## Не выпущено

- **Агенты, которых вы запускаете сами, работают так же, как в вашем терминале.** Слой изоляции ОС (macOS `sandbox-exec`, Linux bubblewrap) теперь оборачивает только субагентов, агентов, запущенных плагинами, и auto у CLI без собственного авторежима (его обход подтверждений). Раньше он оборачивал любого агента не в Manual, и у Claude Code падали Bash и внешний редактор с `EPERM`: Claude хранит их файлы в `/tmp/claude-<uid>`, что бы ни стояло в `TMPDIR`. Внутри слоя Claude Code теперь может писать в эту папку. Базовая защита не изменилась и по-прежнему включена по умолчанию.
- CanvasTTY больше не включает собственную песочницу Claude Code в Auto: она следует настройкам Claude у человека.
- **Настройки → Горячие клавиши → Редактор Claude** (macOS): переназначаемые клавиши для карточек Claude Code, как у редактора Codex. Пока на экране видно поле ввода Claude, Enter переносит строку, а Command+Enter отправляет; в диалогах, подтверждениях и на других экранах Enter работает как обычно, а Shift+Enter всегда переносит строку. Command+A выделяет весь черновик, затем Command+C, Command+X, Delete или набор текста копируют, вырезают, удаляют или заменяют его, а клавиша «Вставить» терминала заменяет его вставкой. У отправки, переноса строки и выделения клавиша есть всегда; копирование, вырезание и удаление можно отключить. Изменения сразу действуют в открытых карточках. Переключатель **Клавиши черновика Claude** вверху группы (по умолчанию включён) выключает всё это: клавиши уходят в Claude как есть (Enter отправляет), а новые сессии Claude запускаются с редактором человека вместо `VISUAL` от CanvasTTY.
- **Настройки → Горячие клавиши → Редактор Codex** (macOS): клавиши теперь действительно переназначаются, и собственный фронтенд Codex их читает. Умолчания как у редактора Claude: Command+Enter отправляет (или ставит в очередь и выбирает команду `/`), Enter и Shift+Enter переносят строку, Command+A выделяет весь черновик, а Command+C, Command+X и Delete копируют, вырезают или удаляют выделенный черновик (выделенный вывод терминала по-прежнему копируется клавишей копирования терминала). Отдельных строк дополнительной отправки и отправки по Command больше нет. Настройки со старыми умолчаниями Codex получают новые; изменённые клавиши отправки и переноса сохраняются. Копирование, вырезание и удаление можно отключить. Обычный Enter, не занятый ни одной клавишей, остаётся отправкой Codex; диалоги и встроенные редакторы сохраняют свои клавиши. Изменения действуют в новых или перезапущенных карточках Codex. Linux и Windows не меняются.

## 1.8.1

- Исправлен запрет чтения обычных файлов на macOS: пути устройств `/dev/fd` больше не считаются адресами самих файлов; перед чтением проверяется идентичность открытого файла и текущего пути. Сборка 1.8.0 не была опубликована.
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

[English](CHANGELOG.md) · [Русский](CHANGELOG.ru.md) · [简体中文](CHANGELOG.zh-CN.md)

## 未发布

- **你自己启动的智能体按你的终端方式运行。** 操作系统隔离层(macOS `sandbox-exec`,Linux bubblewrap)现在只包裹子智能体、插件启动的智能体,以及没有自带自动模式的 CLI 的 auto(其跳过审批)。此前它包裹所有非 Manual 的智能体,导致 Claude Code 的 Bash 工具和外部编辑器以 `EPERM` 失败:无论 `TMPDIR` 如何,Claude 都把这些文件放在 `/tmp/claude-<uid>`。现在隔离层内的 Claude Code 可以写入该文件夹。基础防护不变,仍默认开启。
- CanvasTTY 不再在 Auto 中开启 Claude Code 自身的沙箱,改为遵循用户的 Claude 设置。
- **设置 → 键盘 → Claude 编辑器**(macOS):为 Claude Code 卡片提供可重新绑定的按键,与 Codex 编辑器相同。当屏幕上显示 Claude 的输入框时,Enter 换行,Command+Enter 发送;在对话框、确认提示和其他界面中 Enter 保持原有含义,Shift+Enter 始终换行。Command+A 选中整段草稿,随后 Command+C、Command+X、Delete 或直接输入会复制、剪切、删除或替换它,终端的粘贴键会用粘贴内容替换它。发送、换行和全选始终保留按键;复制、剪切和删除可以关闭。修改会立即作用于已打开的卡片。分组顶部的 **Claude 草稿按键** 开关(默认开启)可关闭以上全部功能:按键原样发送给 Claude(Enter 发送),新的 Claude 会话使用用户自己的编辑器,而不是 CanvasTTY 的 `VISUAL`。
- **设置 → 键盘 → Codex 编辑器**(macOS):按键现在可以真正重新绑定,自带的 Codex 前端会读取它们。默认值与 Claude 编辑器一致:Command+Enter 发送(或加入队列,并选择 `/` 命令),Enter 和 Shift+Enter 换行,Command+A 选中整个草稿,Command+C、Command+X 和 Delete 复制、剪切或删除已选中的草稿(选中的终端输出仍用终端的复制键复制)。不再有单独的备用发送和 Command 发送行。仍为旧 Codex 默认值的设置会改用新默认值;自定义的发送和换行按键会保留。复制、剪切和删除可以关闭。未被任何按键占用的普通 Enter 仍是 Codex 自身的发送;对话框和内嵌编辑器保留各自的按键。更改对新建或重启的 Codex 卡片生效。Linux 和 Windows 不变。

## 1.8.1

- 修复 macOS 拒绝读取所有普通文件的问题:不再将 `/dev/fd` 设备路径当作文件实际路径,读取前核对已打开文件与当前路径的身份。1.8.0 构建未发布。
Expand Down
2 changes: 1 addition & 1 deletion docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Terminal cards subscribe before requesting a fresh `terminal:read-buffer` snapsh

Terminal pointer coordinates are converted from the canvas's visually transformed rectangle back to xterm layout coordinates before selection or wheel handling. Terminal and canvas wheel direction are normalized independently from persisted settings. Clipboard, scrollback search, page scrolling and exited-session restart use the configured terminal shortcuts. Clipboard text enters xterm through `Terminal.paste` rather than synthetic keystrokes. Codex terminals preserve every combination of Shift, Alt, Ctrl, and Super on modified Enter through CSI-u on every platform; unbound plain Enter stays a carriage return, and the CLI decides what each key does.

General Settings owns macOS, Windows, Linux and Custom keyboard presets, with editable canvas, terminal and Codex shortcuts directly below the preset. New profiles use host defaults; existing bindings migrate to Custom. A named preset replaces bindings, and an individual edit selects Custom. SettingsStore validates bindings and duplicates by dispatch context. TerminalManager passes only native Codex editor bindings to the optional frontend through `CANVASTTY_CODEX_KEYBOARD` and publishes the launch snapshot in `SessionMetadata.nativeEditor`. TerminalCard uses that snapshot to encode editor keys with modifiers; changing settings updates canvas/terminal actions immediately but requires a new or restarted process for editor bindings. Ordinary CLI launches retain their own editor keymaps.
General Settings owns macOS, Windows, Linux and Custom keyboard presets, with editable canvas, terminal and Codex shortcuts directly below the preset. New profiles use host defaults; existing bindings migrate to Custom. A named preset replaces bindings, and an individual edit selects Custom. SettingsStore validates bindings and duplicates by dispatch context. TerminalManager passes only native Codex editor bindings to the optional frontend through `CANVASTTY_CODEX_KEYBOARD` (on macOS `submit`, `newline`, `newlineAlternate`, `selectAll`, `copy`, `cut`, `clear`, read once at startup by the owned frontend for the main and startup drafts, which keeps a plain Enter no key uses as Codex's submit and leaves dialogs alone; on Linux `submit`, `submitAlternate`, `submitSuper`, `newline`, `selectAll` as before) and publishes the launch snapshot in `SessionMetadata.nativeEditor`. TerminalCard uses that snapshot to encode editor keys with modifiers; changing settings updates canvas/terminal actions immediately but requires a new or restarted process for editor bindings. Ordinary CLI launches retain their own editor keymaps. On macOS the `claude*` bindings (their own dispatch context) are read live by TerminalCard: while Claude's prompt box is on screen (the rows between its last two rules) the submit key sends `\r` and the line-break key sends Shift+Enter, and the whole-draft keys act through `TerminalManager.draftAction`. The `claudeDraftKeysEnabled` setting turns them off; the draft helper `VISUAL` is given only to Claude sessions started while it is on.

Application shortcuts are normalized in `SettingsStore`, matched in `App`, and rendered from the same persisted bindings in the canvas hint. `App` owns the exclusive selected canvas application and the selected terminal session used by window actions such as rename. `TerminalCard` owns xterm focus and only the inline editor; `BrowserService` owns native page focus. Alt+arrow canvas focus navigation yields to terminal surfaces and editable fields on every platform, before preventing the key event, so agent TUIs receive their own shortcuts. Pressing empty canvas clears either selection. Optional hover focus uses the same configured entry/exit delay for terminals and the built-in browser; focus-in/focus-out sequences produced by a terminal's programmatic transition are suppressed before PTY input so agent TUIs do not reset their history position.

Expand Down
Loading
Loading