CommandCodeAI / CommandCodeAI/desktop

[Bug]:

Open
#64 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Shell
Stars
80
Forks
2
PR merge metrics
No merged PRs in 30d

Description

GUI version

0.1.29

Operating system

Linux (Debian/Ubuntu)

Reproduction steps
  1. Start a new Command Code thread.
  2. Select Muse Spark 1.3
  3. Ask AI to read >50 images (or +50 image PDF)
  4. Error occurs: Error: 400 request contains 54 images, exceeding the maximum of 50 allowed per request
Expected behavior

The last tool call result should be stripped out of the context and the error description should be passed to LLM, so the loop doesn't break and the AI knows how to work around these provider limits.

Actual behavior

The error is fatal and the model's run stops. Trying to start the conversation with "Proceed" shows the error
Something went wrong. The agent stopped unexpectedly
The reason for this is because the context still contains over 50 images, and restarting send back all the context in the request, hitting the same error.

Screenshots, recordings, or sanitized logs

Session: -fsKzjLOm8IQCetGDAfhF
Traces: 6c9e260c6071811ced3e21ef9f192d41, fc45133506d2b1436568d367ff41136e, a992776999b4372ea668eef6841a1f6b, 2735719d3420ae1a561847be2877e4b0, 056420db5c21fd1e30f3ab8d658e22b4

Safety check
  • I removed credentials and private project information from this report.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure by starting a Command Code thread, selecting Muse Spark 1.3, and asking it to read more than 50 images or a 50-plus-image PDF. Trace how the failed tool result and conversation context are retried; done means the oversized result is removed, the error reaches the LLM, and restarting does not resend more than 50 images.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
ai, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.