Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
cc2fa06
perf(canvas): keep the command palette and the context menu out of th…
BIackFIame Oct 12, 2026
71f33dd
feat(canvas): add Auto-sort to the empty-canvas Tools submenu
BIackFIame Oct 12, 2026
720abc1
fix(canvas): keep the Tools menu readable near corner panels and zoom…
BIackFIame Oct 12, 2026
f22aac5
fix(canvas): show a preloaded menu that finished loading before its e…
BIackFIame Oct 19, 2026
65706b0
fix(canvas): copy an already-loaded Tools submenu into a new context …
BIackFIame Oct 19, 2026
62e95fb
fix(canvas): keep the earlier auto-sort undo when a sort moves nothing
BIackFIame Oct 22, 2026
10a13b1
fix(canvas): keep a selected mascot in the auto-sort fallback scope
BIackFIame Oct 22, 2026
2a36ef1
feat: animated terminal backgrounds, Fine Dots engine, background cre…
CLOSETTTY Oct 24, 2026
c12570b
test: use generic posix path in animated background creator test to p…
CLOSETTTY Oct 24, 2026
89d1a71
fix(shortcuts): guard optional shortcut matching and configure webp l…
CLOSETTTY Oct 25, 2026
b8b8c3f
refactor: keep only upstream ascii.rest library scenes, trim bundle, …
CLOSETTTY Oct 25, 2026
06313ee
refactor: replace vendored ascii.rest with official npm dependency
CLOSETTTY Oct 25, 2026
7c98a17
fix(browser): honor renderer zoom for native viewport and input
teo-nex Oct 25, 2026
0094e0c
feat(canvaslink): add experimental Android LAN window control
teo-nex Oct 25, 2026
eba7baf
ci(canvaslink): avoid retired Android tools package
teo-nex Oct 25, 2026
f643b31
feat(canvaslink): add verified Android installation prompt
teo-nex Oct 25, 2026
19b46df
fix(canvaslink): enforce session expiry and stop stale connections
teo-nex Oct 26, 2026
5d34ee6
refactor: address review feedback on packaging, performance, bundle s…
CLOSETTTY Oct 26, 2026
4ac71a8
fix(tests): restore webgl pool eligibility guard and min brightness c…
CLOSETTTY Oct 26, 2026
46620e4
Merge remote-tracking branch 'origin/pr-165' into dev/prs-163-165-164…
howdeploy Oct 26, 2026
b454105
Merge remote-tracking branch 'origin/pr-164' into dev/prs-163-165-164…
howdeploy Oct 26, 2026
dff94b3
fix(dev): preserve animated backgrounds and prevent terminal text gho…
howdeploy Oct 26, 2026
c24cba9
fix(bundle): dynamic import of terminalTextBackdrop satisfies both us…
CLOSETTTY Oct 26, 2026
bbc18ac
ci: trigger fresh run for macOS PTY runner capacity
CLOSETTTY Oct 26, 2026
968c2fa
Merge PR #164 follow-up fixes from CLOSETTTY
howdeploy Oct 26, 2026
259c094
Merge PR #166 CanvasLink Android integration from teo-nex
howdeploy Oct 26, 2026
508780f
Prepare CanvasTTY 1.8.3 and CanvasLink 1.0 with integration fixes
howdeploy Oct 26, 2026
188bb8f
Include pinned CanvasLink installers in CanvasTTY releases
howdeploy Oct 26, 2026
6320d32
Update paste-control regression for the compact mobile toolbar
howdeploy Oct 26, 2026
79c1b5c
Respect viewport clipping and Windows line endings in integration checks
howdeploy Oct 26, 2026
807ed69
Isolate real browser zoom smoke from corner HUD occlusion
howdeploy Oct 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
48 changes: 48 additions & 0 deletions .github/workflows/canvaslink.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CanvasLink Android

on:
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
contracts:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- run: npm ci --ignore-scripts
- run: npx playwright install --with-deps chromium
- run: npm run test:canvaslink
- run: npm run typecheck

android-debug:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- uses: android-actions/setup-android@v3
with:
packages: platform-tools
log-accepted-android-sdk-licenses: 'false'
- run: sdkmanager 'platforms;android-35' 'build-tools;35.0.0'
- run: node integrations/canvaslink/scripts/build-android.cjs
- name: Upload APK (ephemeral CI signature; official releases use the owner key)
uses: actions/upload-artifact@v4
with:
name: CanvasLink-Android
path: integrations/canvaslink/dist/CanvasLink-*.apk
retention-days: 30
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,22 @@ jobs:
with:
path: release-artifacts
merge-multiple: true
- name: Include the pinned CanvasLink installers
env:
GH_TOKEN: ${{ github.token }}
run: |
canvaslink_version="$(node -p "require('./integrations/canvaslink/package.json').version")"
gh release download "canvaslink-v${canvaslink_version}" --repo "${GITHUB_REPOSITORY}" \
--pattern '*.apk' --pattern 'canvaslink-release.json' --dir release-artifacts
node --input-type=module <<'JS'
import { createHash } from 'node:crypto';
import { readFileSync } from 'node:fs';
import { CANVASLINK_ANDROID_RELEASE as release } from './src/shared/canvasLinkInstall.ts';
const apk = readFileSync(`release-artifacts/CanvasLink-${release.version}.apk`);
if (createHash('sha256').update(apk).digest('hex') !== release.sha256) {
throw new Error('CanvasLink APK does not match the pinned installation checksum');
}
JS
- name: Verify release tag and artifact set
run: node scripts/verify-release-artifacts.mjs "${GITHUB_REF_NAME}" release-artifacts
- name: Create GitHub release
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

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

## 1.8.3

- Added canvas Auto-sort by task, status, project or grid, with scoped movement and undo (#163, @BIackFIame).
- Added animated ASCII terminal backgrounds, Fine Dots rendering, scene creation, presets and a quick-hide shortcut (#164, @CLOSETTTY).
- Fixed native browser bounds and input coordinates at non-default renderer zoom (#165, @teo-nex).
- Added CanvasLink 1.0 for Android: LAN window streaming, touch and terminal input, pairing and explicit revocation (#166, @teo-nex). Desktop access is off on startup.
- Retained Codex prompt-delivery and account-scoped quota fixes already merged in #158 (@pepechka-kun).
- Integration fixes preserve backgrounds across F8, prevent terminal glyph ghosting, keep zoomed-out cards opaque, repair background-settings scrolling, and add official reset/reload icons and button motion. CanvasLink gains LAN/VPN network selection, bounded reconnects without input replay, a CanvasTTY-style mobile shell and non-selectable controls.
- Original contributor commits are preserved. Maintainer integration and follow-up patches are recorded separately; #159, #160, #161 and #162 are not included.

## 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
10 changes: 10 additions & 0 deletions CHANGELOG.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

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

## 1.8.3

- Автосортировка окон по задаче, состоянию, проекту или сетке с отменой перемещения: #163, @BIackFIame.
- Анимированные ASCII-фоны терминалов, Fine Dots, создание сцен, пресеты и быстрое скрытие: #164, @CLOSETTTY.
- Исправление координат и размера встроенного браузера при изменении масштаба интерфейса: #165, @teo-nex.
- CanvasLink 1.0 для Android: изображение окна по локальной сети, касания, ввод в терминал, сопряжение и отзыв доступа: #166, @teo-nex. После запуска доступ выключен.
- Сохранены уже принятые исправления отправки заданий Codex и устаревших данных лимитов: #158, @pepechka-kun.
- Наши патчи исправляют восстановление фонов после F8, наложение символов, прозрачность отдалённых карточек и прокрутку настроек; добавляют SVG-иконки и анимации кнопок. Для CanvasLink улучшены выбор локальной сети при VPN, ограниченное ожидание подключения без повторения ввода и мобильный интерфейс в стиле CanvasTTY.
- Исходные коммиты участников сохранены; интеграционные правки выделены отдельно. #159, #160, #161 и #162 не включены.

## 1.8.1

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

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

## 1.8.3

- 新增按任务、状态、项目或网格自动排列窗口,并可撤销移动(#163,@BIackFIame)。
- 新增 ASCII 动态终端背景、Fine Dots、场景创建、预设和快速隐藏快捷键(#164,@CLOSETTTY)。
- 修复界面缩放后内置浏览器的大小与输入坐标(#165,@teo-nex)。
- 新增 Android CanvasLink 1.0,支持局域网窗口画面、触控、终端输入、配对与撤销授权(#166,@teo-nex)。桌面端每次启动时默认关闭访问。
- 保留 #158 中已合并的 Codex 提示发送与账户额度修复(@pepechka-kun)。
- 集成修复包括 F8 背景恢复、字符残影、缩小卡片的不透明背景、设置滚动、官方 SVG 图标和按钮动效。CanvasLink 增加 VPN 环境下的局域网选择、连接超时和不重放输入的恢复机制,以及 CanvasTTY 风格的移动界面。
- 保留原作者提交,维护者集成修复单独记录;不包含 #159、#160、#161 或 #162。

## 1.8.1

- 修复 macOS 拒绝读取所有普通文件的问题:不再将 `/dev/fd` 设备路径当作文件实际路径,读取前核对已打开文件与当前路径的身份。1.8.0 构建未发布。
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ npm run dev

The opt-in **Settings → Controls → Even G2** integration adapts CanvasTTY's terminal and AI-agent workflows to Even G2 glasses. Pair with six digits on the same local network, approve access on the computer, then read responses on the glasses HUD, dictate through local Nemotron speech recognition, and create, rename or close shared sessions. The companion includes a More agents picker and supports the desktop's provider list. Its source lives in `integrations/even-g2` and builds with the desktop. See [setup, distribution status and acceptance limits](docs/even-g2.md); a compatible public installer and Even Hub approval are still pending.

## CanvasLink 1.0 for Android

**Settings → CanvasLink** streams the current CanvasTTY window to an Android phone or tablet on the same LAN, with touch, direct terminal keyboard input and a shortcut bar. Access starts off; pairing uses a short-lived six-digit code. The desktop host is integrated, with no separate application. See [setup, APK builds and platform limits](docs/canvaslink.md). Original CanvasLink implementation: @teo-nex (#166). The integrated LAN/VPN path has a Linux/Android user trial; final cross-platform device acceptance remains limited.

## Web companion

The opt-in [Web companion](docs/mobile-companion.md) shares selected sessions with Android, iOS, and desktop browsers through **Tailscale Serve HTTPS**, not Funnel. CanvasTTY binds its companion endpoint to `127.0.0.1:3481` in this mode; pair with a short-lived code and approve each browser on the desktop. Open **Settings → Controls → Web companion** for setup, grants, and revocation. End-to-end Tailscale Serve deployment on Windows, Linux, and macOS remains unverified.
Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ CanvasTTY is a spatial Electron desktop for real local terminals and AI-agent CL
| [Built-in browser and audit log](browser.md) | Canvas controls, settings, agent access, website/file boundaries, activity, and persistent redacted audit files |
| [File browser and reader](files.md) | Opening a Files card, session and folder roots, supported content, read limits, quick open, persistence, and read-only security boundaries |
| [Web companion](mobile-companion.md) | Tailscale Serve HTTPS setup, browser pairing, session grants, revocation, and security limits |
| [CanvasLink for Android (alpha)](canvaslink.md) | Full-window LAN streaming, touch/keyboard input, APK build, security boundaries and platform limits |
| [Installing, releases, and local data](installing-and-security.md) | Installer formats, unsigned-preview caveats, credential boundaries, and release checks |
| [Widget authoring](widget-authoring.md) | Source-level extension paths, visual grammar, process boundaries, and an AI-agent brief |
| [Pixel terminal themes (Russian)](pixel-skin-packs.ru.md) | Ten-PNG ZIP layout, terminal apertures, app import, and local agent CLI |
Expand Down
1 change: 1 addition & 0 deletions docs/UI_CONTRACT.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ This contract preserves the approved MVP concept and prevents feature ownership
- The Files viewer renders Markdown (`.md`, `.markdown`, `.mdown`, `.mkd`) as formatted GitHub-Flavored Markdown with fenced code blocks syntax-highlighted, and syntax-highlights recognized code files by the language detected from their extension while unknown languages stay plain monospaced text. All rendered output is sanitized: raw HTML and scripts never render and event-handler attributes and dangerous link schemes such as `javascript:` are neutralized. Activating an `http(s)` link opens it in the built-in browser while other schemes are inert, only embedded `data:` images render while remote or relative sources fall back to alt text or a placeholder without a network request, and text or code above the rich-rendering size threshold falls back to plain text with a notice.
- An authenticated connection or heartbeat alone never shows agent presence. A branded badge appears only after that agent actually issues a browser command, and its cursor appears only after a real pointer position exists. Claude uses `#D97757`, Codex `#10A37F`, Qwen `#6D44E8`, Kimi `#7C5CFC`, OpenCode `#5A5858`, Hermes `#D6A700`, and an unknown provider `#7A8291`. Browser Settings separately controls indicator visibility without revoking browser access; the agent-access kill switch revokes the connection itself.
- With window snapping enabled, drag and resize use a hidden `10px` grid and a `10px` magnetic threshold for neighboring edges, centers, and a consistent `20px` gap.
- The empty-canvas context menu also lists Files and a **Tools** submenu between Browser and Settings. **Tools** holds a single **Auto-sort** action whose criteria (by task, i.e. subagents to the right of the session that spawned them; by status; by project folder; grid) are radio rows in that submenu; there is no separate layouts surface, toolbar, or saved preset. Auto-sort moves the windows of the current multi-selection when it holds at least two, or else every terminal, plugin, and Browser window that is not completely inside a region (companion mascots move only when selected); sticky notes, materials, and Files cards never move. The sorted block keeps the snapping grid and `20px` gap when snapping is on, and shifts right or down until it is clear of HOME, regions, notes, materials, Files cards, and windows it does not move. The moved windows show the existing selection outline for a few seconds or until the next press; it is presentation-only and does not select them. They glide into place unless reduced motion is requested, and **Undo auto-sort** stays in the same submenu while any of them is still where the sort put it. Undo restores only those untouched windows; there is no global undo shortcut, so terminal and text inputs keep their keys. The criterion is remembered only for the running session.
- One trusted context dispatcher owns right-clicks on the canvas. Truly empty canvas offers region creation, a sticky note, the Settings-configured launcher submenu, Browser, and Settings. Holding RMB on empty canvas also opens the configurable radial quick launcher: moving toward an action and releasing activates it, while a stationary right-click continues to open the standard empty-canvas menu. Region and note right-clicks remain context-specific. A region offers rename, color, a note at the pressed point, and region-only deletion. A note frame offers edit, bring-to-front, and deletion. Terminal, Browser, plugin, textarea/input, and contenteditable surfaces keep their native context menus; middle-button panning is unchanged. `Cmd/Ctrl+K` opens a searchable palette over live sessions and the same global creation/launch actions. Regions persist independently of terminal restore, render behind HOME and windows, resize from every edge/corner, and move every terminal, plugin, Browser, or note whose complete bounds were inside the region at drag start. Attached contents follow the region continuously during the gesture and persist once at pointer release; deleting a region never deletes its contents. Sticky notes persist bounded text and geometry, snap like other windows, and resize from every edge/corner. General Settings exposes independent **Save colored regions after exit** and **Save notes after exit** controls. Both default on to preserve existing profiles. Turning either off removes only that collection from disk persistence without deleting its live canvas objects; turning it back on saves the current collection, while leaving it off starts the next launch with that collection empty.
- Context menus, region editors, the radial launcher, and the command palette use official Lucide/provider assets and shared application color tokens. Their dimensions follow root `--ui-scale`. Appearance owns the `0.85–1.25` scale in `0.05` steps and the sage/lilac/night system palette; the scale changes UI chrome rather than canvas zoom or terminal font size. Agents owns the independent context-menu and radial-launcher subsets and their safe reset defaults.
- Settings uses the approved two-pane modal grammar: a persistent icon-labelled sidebar for all seven sections, a separate current-section header, and a scrollable content pane. Settings must not fall back to the legacy light slide-over with one horizontal segmented tab strip. Simple settings use compact copy/control rows; all Settings chrome reads the active system tokens, official Lucide assets, and root `--ui-scale`.
Expand Down
Loading
Loading