Skip to content

codeBuff often crashes shortly after starting #365

Open

Description

@dazzafact7

.agents.zip

First of all, thank you for this great agent system.

heres my issue:
I have often encountered the problem that codeBuff simply crashes shortly after starting the task. I don't know what the cause is, but this should be addressed with better error messages. I suspect that it is either incorrect syntax that terminates codeBuff, or error messages from openrouter that trigger an internal error. I only use noneFree openrouter Models
(please first see the attachment file structur for my .agents)

Here's an excerpt from the CLI console

[checkpoint #1 saved]

Codebuff:

I need to find LLM benchmarks for “text->text” models from models-list.json. The plan is:
....

  1. First, read the relevant files (models-list.json, benchmarks.json, etc.)
  2. Extract the text->text models and collect them in a lean JSON
  3. Use the web-researcher agent for each model benchmark search
  4. Save the results in benchmarkResults.json
    ....
    I first read the important files to understand the structure.
    ....
    [Read Files]
    models-list.json
    benchmarks.json
    models-list-slim.json
    ....
    [Read Files]
    benchmarks.json

Lassen Sie mich die models-list-slim.json lesen, um die strukturierten
Daten zu sehen:

<codebuff_tool_call>
{
"cb_tool_name": "read_files",
"paths": [
"models-list-slim.json"
],

8 credits used for this request.
###FINSISHED ???

please first see the attachment file structur
.agents.zip

Activity

  1. charleslien commented on Nov 14, 2025

    @charleslien
    Contributor

    This is most likely an issue with handleSteps. You can add logging in handleSteps with the logger parameter.

    For example:

    // ...
      handleSteps: function* ({params, logger}) {
        logger.info({params}, 'Some message')
        yield "STEP_ALL"
      }
    // ...
    
  2. dazzafact7 commented on Nov 15, 2025

    @dazzafact7
    Author

    ok, thanks. heres the results with logger. It just didn't finish anything; shortly after the thinking process, it closes (see credits result).

    terminal logs

     projekt7 > Add a download link to the navigation bar after /downloads, right after the playlist menu in the header.
    [checkpoint #2 saved]
    [08:01:25.595] [INFO] [Agent 43253ea7-8b3d-404f-947e-23f888126f6c] base-max agent handleSteps invoked. model: {}
    [08:01:25.765] [INFO] [Agent 466f9980-dce6-46b6-92c4-74acbd8714de] context-pruner handleSteps invoked {
      "params": {}
    }
    
    Codebuff:
    
      I need to add a Download link to the navigation that points to /downloads, positioned right after the playlist
     menu in the header. Let me start by exploring the codebase to understand the current header structure
     and navigation implementation.
     <|tool_calls_section_begin|> <|tool_call_begin|> functions.read_files:0 <|tool_call_argument_begin|> 
    {"paths": ["src/components/header.jsx"], 
    
    2 credits used for this request.
    projekt7 >
    
  3. dazzafact7 commented on Nov 15, 2025

    @dazzafact7
    Author

    Here is another attempt. Could it be that the JSON is repeatedly being truncated at the end??

    terminal logs

    projekt7 > füge zur navi einen Download-Link hinzu nach /downloads, gleich nach dem playlist-Menü im header.
    [checkpoint #3 saved]
    moonshotai/kimi-k2-thinking
    [08:07:23.963] [INFO] [Agent c225a864-a711-4042-af64-25cf3f0d0dcf] base-max agent handleSteps invoked. model: {}
    [08:07:24.181] [INFO] [Agent f66d3863-9514-4973-9c2f-3679ac0067c4] context-pruner handleSteps invoked {
      "params": {}
    }
    
    Codebuff:
    
      The user wants me to add a Download link to the navigation/header after the playlist menu. Let me explore the codebase to find the header component and understand how the navigation is structured.
    
    First, I should spawn a file explorer agent to explore different parts of the codebase and locate the header component.
    
    Then I'll read the files to understand the structure and add the download link.
    
    Let me start by spawning a file explorer agent to locate the header component.
    
    3 credits used for this request.
    
    I'll help you add a Download link to the navigation right after the playlist menu. Let me explore the codebase first to find the
    header component. <|tool_calls_section_begin|> <|tool_call_begin|> functions.spawn_agents:0 <|tool_call_argument_begin|>
     {"agents": [{"agent_type": "file-explorer", "prompt": "Find the header/navigation component that contains the menu items for
     audio, Playlists, and Downloads. I need to understand the structure to add a new Download link."}],
    projekt7 >
    
  4. dazzafact7 commented on Nov 15, 2025

    @dazzafact7
    Author

    Okay, I finally figured out that the model “moonshotai/kimi-k2-thinking” was the problem. I replaced it, and now it works!
    Please test this, there seems to be a problem with the model!!! Is it because of the “thinking mod”?

  5. jahooma commented on Mar 21, 2026

    @jahooma
    Contributor

    Interesting, thanks for working on a PR!

    It seems the underlying problem that kimi-k2 is generating tool calls incorrectly? This is common for a lot of smaller models, but especially if the provider is not good. Open router is doing more now to automatically route you to providers that have lower rates of tool call errors.

    That said, your change could help in these cases, so I will reply on the PR.

  6. added
    area:cli
    bot:triaged
    needs-info
    type:bug
    on Aug 19, 2026
  7. codebuff-team commented on Aug 22, 2026

    @codebuff-team
    Contributor

    Marking this stale - there has been no activity here for 153 days. It will close in 7 days unless someone comments.

    This is backlog upkeep, not a verdict on the issue. A single comment keeps it open, and anything closed this way can be reopened.

  8. added
    stale
    on Aug 22, 2026
  9. added
    stale
    and removed
    stale
    on Aug 31, 2026
  10. codebuff-team commented on Sep 1, 2026

    @codebuff-team
    Contributor

    Marking this stale - there has been no activity here for 163 days. It will close in 7 days unless someone comments.

    This is backlog upkeep, not a verdict on the issue. A single comment keeps it open, and anything closed this way can be reopened.

  11. removed
    stale
    on Sep 10, 2026
  12. 11 remaining items

  13. added
    stale
    and removed
    stale
    on Oct 18, 2026
  14. codebuff-team commented on Oct 19, 2026

    @codebuff-team
    Contributor

    Marking this stale - there has been no activity here for 211 days. It will close in 7 days unless someone comments.

    This is backlog upkeep, not a verdict on the issue. A single comment keeps it open, and anything closed this way can be reopened.

  15. added
    stale
    and removed
    stale
    on Oct 28, 2026
  16. codebuff-team commented on Oct 29, 2026

    @codebuff-team
    Contributor

    Marking this stale - there has been no activity here for 221 days. It will close in 7 days unless someone comments.

    This is backlog upkeep, not a verdict on the issue. A single comment keeps it open, and anything closed this way can be reopened.

  17. added
    stale
    and removed
    stale
    on Nov 6, 2026
  18. codebuff-team commented on Nov 7, 2026

    @codebuff-team
    Contributor

    Marking this stale - there has been no activity here for 230 days. It will close in 7 days unless someone comments.

    This is backlog upkeep, not a verdict on the issue. A single comment keeps it open, and anything closed this way can be reopened.

  19. added
    stale
    and removed
    stale
    on Nov 16, 2026
  20. codebuff-team commented on Nov 17, 2026

    @codebuff-team
    Contributor

    Marking this stale - there has been no activity here for 240 days. It will close in 7 days unless someone comments.

    This is backlog upkeep, not a verdict on the issue. A single comment keeps it open, and anything closed this way can be reopened.

  21. added
    stale
    and removed
    stale
    on Nov 26, 2026
  22. codebuff-team commented on Nov 27, 2026

    @codebuff-team
    Contributor

    Marking this stale - there has been no activity here for 250 days. It will close in 7 days unless someone comments.

    This is backlog upkeep, not a verdict on the issue. A single comment keeps it open, and anything closed this way can be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clibot:triagedneeds-infostaletype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions