Skip to content

bug: DecimalError #6161

Closed
Closed

Description

@Locbac

Description

No matter which model or message I type I end up getting this error:
Error: [DecimalError] Invalid argument: [object Object].
I originally thought it was cause my locale is french, and in french numbers are formatted as 35,33, but in english they're 35.33. However changing my locale to english and rebooting didn't fix it, neither did running LC_ALL=en_US.UTF-8 opencode in the terminal fix it.

OpenCode version

0.3.58

Steps to reproduce

  1. Launch opencode: opencode
  2. Type any message with any model test
  3. See the error:
test
amon (10:31 AM)

I see you've entered "test". Are you looking to run existing tests, or do you have a specific task you'd like me to test or implement?

If you want to run tests, I need to know the command, which I can try to infer from the project structure (e.g., nix-build, pytest, npm test).

If you have a task, please describe it. If you'd like to see my current task list, I can use the todoread tool.
gemini-flash-lite-latest (10:31 AM)

Error: [DecimalError] Invalid argument: [object Object]

For small outputs it lets the model output everything. For any work to be done, like asking it to edit a file, it cuts off the output.

refactor the inspiron host to make things more clear
amon (10:32 AM)

I will start by listing the files in the hosts/inspiron directory to understand the current structure and identify what needs refactoring for clarity.

[tool_call:list for path '/hosts/inspiron']
gemini-flash-lite-latest (10:32 AM)

Error: [DecimalError] Invalid argument: [object Object]

See that it cut off the model.

Screenshot and/or share link

https://opencode.ai/s/C1aqyaC6

Operating System

MacOS 15.6.1 (24G90)

Terminal

Wave

Activity

  1. github-actions commented on Dec 25, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Dec 25, 2025

    @rekram1-node
    Collaborator

    If you are on version 0.3 can you upgrade? This is an extremely old version

  3. Locbac commented on Dec 26, 2025

    @Locbac
    Author

    Ok I updated and it works, for some odd reason, I had it set to unstable with nix-darwin but it didn't work until I did nix flake update?

      environment.systemPackages = with pkgs; [
         ...
        (nixpkgs-unstable.legacyPackages.${pkgs.system}.opencode)
        ...
      ];

    Likely an issue on my side with how my packages were managed

  4. jakob1379 commented on Jan 13, 2026

    @jakob1379

    issue still exists in

    ❯ opencode --version
    0.15.14

    I got it from nixos-unstable

  5. rekram1-node commented on Jan 13, 2026

    @rekram1-node
    Collaborator

    @jakob1379 You are on a very old version, please consider updating to latest

  6. jakob1379 commented on Jan 14, 2026

    @jakob1379

    @jakob1379 You are on a very old version, please consider updating to latest

    jeez - thought I was past forgetting to do "nix flake update".... lol. Still, thanks you for taking the time to answer, much appreciated.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions