Skip to content

新布局UI下,无法对单个任务设置“自动接受权限”,导致任务无法长时间自动进行必须人工值守。 #40237

Closed as not planned

Description

@alexblair

Description

Image

当运用 新布局时,任务的 “自动接受权限” 功能 无法启用。存在交互设计的不合理。旧版布局没有这个问题。

Plugins

No response

OpenCode version

desktop 1.18.8 / opencode 1.18.9

Steps to reproduce

1、进入 web (/root/.opencode/bin/opencode serve --hostname 0.0.0.0)
2、在 设置界面 开启 新布局
3、开启任意新会话,该会话“”自动接受权限” 无法开启

Screenshot and/or share link

Image Image

Operating System

Ubuntu 24.04.4 LTS

Terminal

No response

Activity

  1. github-actions commented on Aug 3, 2026

    @github-actions
    Contributor

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

  2. alexblair commented on Aug 3, 2026

    @alexblair
    Author

    这个问题 被反复提及,在 #37617 中基本发现了问题根源,什么时候可以解决?

  3. linghengqian commented on Aug 3, 2026

    @linghengqian
    tee ~/.config/opencode/opencode.jsonc <<'EOF'
    {
      "$schema": "https://opencode.ai/config.json",
      "permission": {
        "external_directory": {"*": "allow"}
      }
    }
    EOF
    • Personally, I am not inclined to change the default values ​​for doom_loop and read.
    • However, I believe the opencode web interface should eventually support more fine-grained permission configurations, similar to how configuration files opencode.jsonc work.
  4. alexblair commented on Aug 5, 2026

    @alexblair
    Author

    tee ~/.config/opencode/opencode.jsonc <<'EOF'
    {
    "$schema": "https://opencode.ai/config.json",
    "permission": {
    "external_directory": {"*": "allow"}
    }
    }
    EOF

    • 就我个人而言,我不倾向于更改 和 的默认值。doom_loop``read
    • 不过,我认为该接口最终应该支持更细粒度的权限配置,类似于配置文件的工作原理。opencode web``opencode.jsonc

    非常感谢给出临时解决方案,我赞同你的观点! 应该需要基于会话颗粒度去解决权限问题。期待开发者能够尽快修复BUG。

  5. linghengqian commented on Sep 4, 2026

    @linghengqian
  6. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions