How to debug Portal wrapper failures
Goal
Find and fix common failures for wl-paste/gh wrappers and other Portal clients.
Quick checklist
- Is host service running?
pgrep -a agent-portal-host - Can you ping the socket directly?
agent-portal-cli ping - Is the wrapper using the expected socket path?
echo "$AGENT_PORTAL_SOCKET" - Enable host logs:
RUST_LOG=debug agent-portal-host
Common failures
- failed to connect to socket
- socket path mismatch or host service not running
- denied
- policy mode blocks method/container
- prompt_failed
prompt_commandmissing or exits non-zero in ask-mode
- clipboard_failed
- no allowed image MIME currently in clipboard or host
wl-pasteissue
- no allowed image MIME currently in clipboard or host
- gh_exec_failed
- host
ghunavailable or command failure
- host
Next actions
- Confirm
[portal.policy]defaults and overrides. - Confirm wrapper is first on PATH in container.
- Re-run request via
agent-portal-clito isolate wrapper-specific parsing issues.