I'm running emacs (30.2) over WSL as a GUI app. I installed agent-shell, and when I ran the program, I got the following error: insert-image: Not an image: nil. When running the agent-shell-github-start-copilot I get image-type: Invalid image type ‘svg’. The debug stack traces of both are below.
One thing I noticed when installing agent-shell on Windows emacs, but not on WSL, is that on first start it ran the following, writing a bunch of images that I assume are the ones it's looking for and not finding in WSL.
Package ‘agent-shell’ installed.
Wrote <my-user>/AppData/Local/Temp/agent-shell/light/Auggie-100.svg
Wrote <my-user>/AppData/Local/Temp/agent-shell/light/claudecode.png
Wrote <my-user>/AppData/Local/Temp/agent-shell/light/cline.png
...
Thanks for the fantastic plugin!
debug stack traces
agent-shell
Debugger entered--Lisp error: (error "Not an image: nil")
signal(error ("Not an image: nil"))
error("Not an image: %s" nil)
insert-image(nil)
agent-shell--config-icon(:config ((:identifier . auggie) (:mode-line-name . "Auggie") (:welcome-function . agent-shell-auggie--welcome-message) (:buffer-name . "Auggie") (:shell-prompt . "Auggie> ") (:shell-prompt-regexp . "Auggie> ") (:client-maker . #f(compiled-function (arg1) #<bytecode 0x6090497c8e35f07>)) (:needs-authentication) (:authenticate-request-maker) (:default-model-id) (:default-session-mode-id) (:icon-name) (:install-instructions . "See https://docs.augmentcode.com/cli/overview for installation.")))
#f(compiled-function (arg1) #<bytecode 0x12e67ad142aefee3>)(((:identifier . auggie) (:mode-line-name . "Auggie") (:welcome-function . agent-shell-auggie--welcome-message) (:buffer-name . "Auggie") (:shell-prompt . "Auggie> ") (:shell-prompt-regexp . "Auggie> ") (:client-maker . #f(compiled-function (arg1) #<bytecode 0x6090497c8e35f07>)) (:needs-authentication) (:authenticate-request-maker) (:default-model-id) (:default-session-mode-id) (:icon-name) (:install-instructions . "See https://docs.augmentcode.com/cli/overview for installation.")))
mapcar(#f(compiled-function (arg1) #<bytecode 0x12e67ad142aefee3>) ((... ... ... ... ... ... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ... ... ... ... ... ...)))
agent-shell-select-config(:prompt "Start new agent: ")
agent-shell--shell-buffer()
agent-shell--dwim()
agent-shell(nil)
funcall-interactively(agent-shell nil)
call-interactively(agent-shell record nil)
command-execute(agent-shell record)
execute-extended-command(nil "agent-shell" "agent")
funcall-interactively(execute-extended-command nil "agent-shell" "agent")
call-interactively(execute-extended-command nil nil)
command-execute(execute-extended-command)
agent-shell-github-start-copilot
signal(error ("Invalid image type ‘svg’"))
error("Invalid image type `%s'" svg)
image-type("<svg width=\"2540\" height=\"96\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><image xlink:href=\"data:image/png;base<long image date omitted.") (height . 78) (width . 78) (y . 9) (x . 6))) (text ((x . 94) (y . 38) (font-size . 19)) (tspan ((fill . "#00d3d0")) "Copilot Agent")) (text ((x . 94) (y . 71) (font-size . 19)) (tspan ((fill . "#79a8ff")) "~"))))
agent-shell--make-header(((:agent-config (:identifier . copilot) (:mode-line-name . "Copilot") (:welcome-function . agent-shell-github--welcome-message) (:buffer-name . "Copilot") (:shell-prompt . "Copilot> ") (:shell-prompt-regexp . "Copilot> ") (:client-maker . #f(compiled-function (arg1) #<bytecode 0x5f14b9f5ee43c1a>)) (:needs-authentication) (:authenticate-request-maker) (:default-model-id . #f(compiled-function () #<bytecode 0x18c0c297c181>)) (:default-session-mode-id . #f(compiled-function () #<bytecode 0x18c0c297c171>)) (:icon-name . "githubcopilot.png") (:install-instructions . "See https://github.com/github/copilot-cli for installation.")) (:buffer . #<buffer Copilot Agent @ lezalaj>) (:client) (:client-maker . #f(compiled-function (arg1) #<bytecode 0x5f14b9f5ee43c1a>)) (:outgoing-request-decorator) (:heartbeat (:heartbeat-timer) (:beats-per-second . 10) (:on-heartbeat . #f(compiled-function (arg1 arg2) #<bytecode -0x1ffadd3fb8a5ad11>)) (:value) (:status)) (:initialized) (:needs-authentication) (:authenticate-request-maker) (:authenticated) (:set-model) (:set-session-mode) (:session (:id) (:mode-id) (:modes)) (:last-entry-type) (:chunked-group-count . 0) (:request-count . 0) (:tool-calls) (:available-commands) (:available-modes) (:supports-session-list) (:supports-session-load) (:supports-session-resume) (:supports-session-fork) (:resume-session-id) (:fork-session-id) (:prompt-capabilities) (:event-subscriptions) (:active-requests) (:pending-requests) (:usage (:total-tokens . 0) (:input-tokens . 0) (:output-tokens . 0) (:thought-tokens . 0) (:cached-read-tokens . 0) (:cached-write-tokens . 0) (:context-used . 0) (:context-size . 0) (:cost-amount . 0.0) (:cost-currency))))
agent-shell--update-header-and-mode-line()
agent-shell--start(:config ((:identifier . copilot) (:mode-line-name . "Copilot") (:welcome-function . agent-shell-github--welcome-message) (:buffer-name . "Copilot") (:shell-prompt . "Copilot> ") (:shell-prompt-regexp . "Copilot> ") (:client-maker . #f(compiled-function (arg1) #<bytecode 0x5f14b9f5ee43c1a>)) (:needs-authentication) (:authenticate-request-maker) (:default-model-id . #f(compiled-function () #<bytecode 0x18c0c297c181>)) (:default-session-mode-id . #f(compiled-function () #<bytecode 0x18c0c297c171>)) (:icon-name . "githubcopilot.png") (:install-instructions . "See https://github.com/github/copilot-cli for installation.")) :no-focus nil :new-session t :session-id nil :outgoing-request-decorator nil)
agent-shell-start(:config ((:identifier . copilot) (:mode-line-name . "Copilot") (:welcome-function . agent-shell-github--welcome-message) (:buffer-name . "Copilot") (:shell-prompt . "Copilot> ") (:shell-prompt-regexp . "Copilot> ") (:client-maker . #f(compiled-function (arg1) #<bytecode 0x5f14b9f5ee43c1a>)) (:needs-authentication) (:authenticate-request-maker) (:default-model-id . #f(compiled-function () #<bytecode 0x18c0c297c181>)) (:default-session-mode-id . #f(compiled-function () #<bytecode 0x18c0c297c171>)) (:icon-name . "githubcopilot.png") (:install-instructions . "See https://github.com/github/copilot-cli for installation.")))
agent-shell--dwim(:config ((:identifier . copilot) (:mode-line-name . "Copilot") (:welcome-function . agent-shell-github--welcome-message) (:buffer-name . "Copilot") (:shell-prompt . "Copilot> ") (:shell-prompt-regexp . "Copilot> ") (:client-maker . #f(compiled-function (arg1) #<bytecode 0x5f14b9f5ee43c1a>)) (:needs-authentication) (:authenticate-request-maker) (:default-model-id . #f(compiled-function () #<bytecode 0x18c0c297c181>)) (:default-session-mode-id . #f(compiled-function () #<bytecode 0x18c0c297c171>)) (:icon-name . "githubcopilot.png") (:install-instructions . "See https://github.com/github/copilot-cli for installation.")) :new-shell t)
agent-shell-github-start-copilot()
funcall-interactively(agent-shell-github-start-copilot)
call-interactively(agent-shell-github-start-copilot record nil)
command-execute(agent-shell-github-start-copilot record)
execute-extended-command(nil "agent-shell-github-start-copilot" nil)
funcall-interactively(execute-extended-command nil "agent-shell-github-start-copilot" nil)
call-interactively(execute-extended-command nil nil)
command-execute(execute-extended-command)
Checklist
I'm running emacs (30.2) over WSL as a GUI app. I installed agent-shell, and when I ran the program, I got the following error:
insert-image: Not an image: nil. When running theagent-shell-github-start-copilotI getimage-type: Invalid image type ‘svg’. The debug stack traces of both are below.One thing I noticed when installing agent-shell on Windows emacs, but not on WSL, is that on first start it ran the following, writing a bunch of images that I assume are the ones it's looking for and not finding in WSL.
Thanks for the fantastic plugin!
debug stack traces
agent-shell
agent-shell-github-start-copilot
Checklist