Skip to content

[BUG] WHY is OpenCode running pip3 with this configuration? #22100

@davidbernat

Description

@davidbernat

Description

OpenCode v1.4.3

pip installs are known vulnerabilities, and must be trusted at the same level as the system operating user!

This is a very permissive read-only configuration. What about this tells OpenCode TUI to install software?
And why does OpenCode feel entitled to modify filenames which were not previously stated as needing changes?
This is pure insanity.

  "permission": {
    "bash": {
      "*": "ask",
      "ls *": "allow",
      "find *": "allow",
      "cd *": "allow",
      "grep *": "allow",
      "stat *": "allow",
      "echo *": "allow",
      "cat *": "allow",
      "sed *": "allow",
      "hexdump *": "allow",
      "head *": "allow",
      "tail *": "allow",
      "which *": "allow",
      "date *": "allow",
      "git status *": "allow",
      "git add *": "allow",
      "git diff *": "allow",
      "pwd *": "allow",
      "pytest *": "allow",
      "mkdir *": "allow"
    },
    "edit": "ask",
    "write": "ask",
    "read": "allow",
    "question": "allow"
  },

Plugins

None

OpenCode version

v.1.4.3

Steps to reproduce

  1. prompt OpenCode
  2. close eyes
  3. daydream about living in Hawaii where computers actually do the work
  4. post another ticket issue to GitHub instead.
  5. expect the OpenCode investor team to enjoy the joke.

Screenshot and/or share link

Unnecessary

Operating System

MacOS

Terminal

Terminal via IntelliJ

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions