Skip to content

Desktop app: native window, real-pixel thumbnails, macOS app + Linux AppImage (v0.2.0) - #1

Merged
jondot merged 4 commits into
mainfrom
claude/epic-thompson-xoh72h
Nov 10, 2026
Merged

jondot merged 4 commits into
mainfrom
claude/epic-thompson-xoh72h

Conversation

@jondot

@jondot jondot commented Nov 10, 2026

Copy link
Copy Markdown
Owner

acidtrip can now run as a desktop app, started from an icon, while Claude draws into it live over MCP.

What's in it

  • Native window (acidtrip --window, and the default when there's no terminal, e.g. started from an icon). A ratatui backend keeps the screen in memory. winit opens the window and softbuffer paints the cell grid with the VGA 8×16 font, the same renderer PNG export uses. Window input is translated into the events the terminal version gets, so the editor code is unchanged. MCP live drawing works the same as in the terminal.
  • Real-pixel thumbnails in the window: minimap, layer thumbnails, gallery posters and strip, and the Alt-W preview are painted as pixels instead of half-blocks.
  • Scale follows the monitor (Retina 2x, plain screens 1x). ACIDTRIP_WINDOW_SCALE overrides it.
  • Packaging (scripts/package.sh, sources in packaging/):
    • The tar.gz now also carries the launcher: Acidtrip.app on macOS, .desktop + icons on Linux.
    • Acidtrip-<target>.zip: ad-hoc signed macOS app (not notarized).
    • acidtrip-<target>.AppImage for Linux.
    • Everything is cosign-signed, as before.
  • install.sh adds the launcher by default (~/Applications/Acidtrip.app, or the Linux apps menu). --no-app skips it.
  • Release workflow dry run: on PRs that touch packaging it builds and packages every target and smoke-tests the outputs. It publishes nothing; the release job only runs on tags.
  • Version bump to 0.2.0.

Testing

  • crates/acidtrip/tests/window_parity.rs (ignored by default, needs Xvfb + xdotool) drives the same steps through the terminal build and the real window via X input. It compares screens per cell: 0 differences at all 9 checkpoints. It also checks the frame against what X displays.
  • Unit test for compositing thumbnails onto the frame.
  • Clippy is clean with -D warnings.

Known gaps

  • Moving the window between monitors with different scales doesn't rescale it.
  • The $EDITOR handoff doesn't work in window mode.
  • macOS Cmd shortcuts aren't mapped.
  • No notarization yet (needs Apple Developer secrets).

Generated by Claude Code

Run the same app in its own window instead of a terminal. ratatui draws
into an in-memory GridBackend; frames are painted with the core VGA 8x16
renderer (softbuffer, integer scale); winit input is mapped to the
crossterm events the app already handles, with pixel-precise mouse.
The app loop becomes generic over backend and input source.

Starts in window mode with --window, or when stdout is not a terminal
(launched from an app icon). The live MCP socket works unchanged.

tests/window_parity.rs (ignored; needs Xvfb + xdotool) drives the same
steps through the pty harness and the window via real X input and
compares the screens pixel for pixel, plus the on-screen pixels vs the
rendered frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KLubvhoPRuPfGsAcdikJjN
In the native window the minimap, layer thumbnails, gallery posters and
strip, and the Alt-W preview are painted as pixels over the cell grid
instead of falling back to half-blocks. Thumbs gains a native mode that
queues (rect, image) overlays; the window backend takes them on flush
and composites them after the cells, at any scale.

ACIDTRIP_GRAPHICS=off still turns them off; the parity rig sets it so
both sides keep half-block previews.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KLubvhoPRuPfGsAcdikJjN
- packaging/: app icon (from the site's pixel mark, with the script that
  makes it), Info.plist for Acidtrip.app, and a .desktop entry.
- scripts/package.sh builds the release files: the tar.gz now carries
  the launcher (Acidtrip.app on macOS, share/ on Linux), plus a
  standalone, ad-hoc signed Acidtrip-<target>.zip on macOS and an
  AppImage on Linux. The release workflow runs it and signs all of them.
- install.sh adds the launcher by default (~/Applications on macOS, the
  applications menu on Linux); --no-app skips it.
- The window takes its scale from the monitor (Retina 2, plain screens
  1) unless ACIDTRIP_WINDOW_SCALE is set, has the app icon, and sets
  WM_CLASS / Wayland app id to match the .desktop file.
- Finder's -psn_ argument is ignored.
- README: the desktop app, and adding the MCP server to Claude Desktop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KLubvhoPRuPfGsAcdikJjN
Bump to 0.2.0. The release workflow also dry-runs on pull requests that
touch packaging: every target builds and packages, a smoke test checks
the archives, the macOS zip and the AppImage, and nothing is published.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KLubvhoPRuPfGsAcdikJjN
@jondot
jondot merged commit 5f8f24d into main Nov 10, 2026
8 checks passed
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.

2 participants