Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

How to enable pi image paste via portal wrapper

Goal

Make image paste work transparently in pi sessions using portal-backed wl-paste wrapper.

Requirements

  1. agent-portal-host running on host
  2. Portal enabled in ~/.agent-box.toml
  3. Wrapper binary (wl-paste) available in container PATH before system wl-paste

Steps

  1. Start portal host:
agent-portal-host
  1. Spawn with Agent-box (portal enabled):
ab spawn -s my-session
  1. In container/session env:
export WAYLAND_DISPLAY=wayland-1
# AGENT_PORTAL_SOCKET is injected by ab when portal is enabled
  1. Validate wrapper flow:
wl-paste --list-types
wl-paste --type image/png --no-newline

Notes

  • Policy is enforced host-side by agent-portal-host.
  • Wrapper should not prompt in-container.