Skip to content

Header icon is double the expected size #202

@jneidel

Description

@jneidel

TL;DR: Workaround found, no fix required.

Great project! The interface is much superior to the codex TUI :)

Checklist

  • I've read the README's Issues section.
  • I'm running the latest agent-shell version. (20260116.1925)
  • I'm running the latest agent version (ie. Claude Code, Geminig CLI).
  • I'm running the latest agent ACP package (ie. claude-code-acp).
  • For requesting new agent support, I'm including a link to the ACP-capable agent or related ACP package.
  • For issues, I'm including ACP traffic (as per README).

Problem

The agent icon in the header is too large (exactly double) what it should be and is thus overlapping text.

Image

My font is

(set-frame-font "ComicCodeLigatures Nerd Font 13" nil t)

font files in my dotfiles

Workaround

I already found a workaround for this, so I don't require a fix. Feel free to close this issue.
Just posting this for awareness :)

(with-eval-after-load 'agent-shell
  (require 'cl-lib)
  (advice-add
   'agent-shell--make-header :around
   (lambda (fn state &rest args)
     (let ((orig-default-font-height (symbol-function 'default-font-height)))
       (cl-letf (((symbol-function 'default-font-height)
                  (lambda (&rest fh-args)
                    (* 0.5 (apply orig-default-font-height fh-args)))))
         (apply fn state args))))))

This code corrects the icon size without any side effects (that I have noticed).
See:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions