Skip to content

Paste images into viewport when toggled, without forcing viewport as default` #604

@JuanPabloMF

Description

@JuanPabloMF

Checklist

  • I agree to communicate with the author myself (not AI-generated).
  • I've read the README's Filing issues section.
  • I'm running the latest versions (fill in below).
    • agent-shell: v0.41.1-4-g858c7e1
    • acp.el: v0.11.1-6-g49de56f
    • ACP package (e.g. claude-code-acp): @agentclientprotocol/claude-agent-acp 0.33.1
    • Agent CLI (e.g. claude, gemini): claude 2.1.123
    • Emacs: 30.2
    • OS: Guix
  • For issues, I'm including ACP traffic (as per README).

What I'm trying to do

I'm trying to paste images or send them with agent-shell-send-screenshot to the viewport. I tried (setq agent-shell-prefer-viewport-interaction t) and it works for sending images, but working in this mode is quite unstable in my setting (every 20 minutes I get stuck with lots of error messages about shell in viewport, and I can't even close the buffer). So I'm trying to achieve pasting images in the viewport when (setq agent-shell-prefer-viewport-interaction nil) .

What actually happens

When in (setq agent-shell-prefer-viewport-interaction nil) when I go toggle viewport I can't paste images, every image pasted goes to the normal view and takes me out of the viewport.

Question / Request

Is there a way to paste images in the viewport toggle view, without forcing my default to viewport interaction? I like agent-shell as the default: start in normal view and toggle with C-c C-o when needed. But I would love to control where images get pasted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions