Skip to content

opencode -c 在新目录中导致黑屏无法退出 #23432

Closed as not planned
Closed as not planned

Description

@sharyuke

Bug 描述

在新打开的目录(从未使用过 opencode 的目录)中执行 opencode -c 命令时,出现黑屏,无法退出,也无法重新打开 opencode。

环境信息

  • opencode 版本:1.14.17
  • 安装路径:/home/sharyuke/.opencode/bin/opencode
  • 平台:Linux
  • Shell:bash

复现步骤

  1. 进入一个从未使用过 opencode 的目录
  2. 执行 opencode -c 命令
  3. 出现黑屏,无法操作
  4. 无法退出(Ctrl+C、Ctrl+D 均无响应)
  5. 无法重新打开 opencode

预期行为

即使在新的目录中,opencode -c 也应该正常启动或给出合理的错误提示,而不是导致黑屏无法退出。

补充

可能是配置目录或初始化文件不存在导致的崩溃问题。

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 19, 2026
  2. github-actions commented on Apr 19, 2026

    @github-actions
    Contributor

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

  3. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. github-actions commented on Jul 5, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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