Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

TUI attention docs are missing details & are wrong placed

オープン 初心者向け
#50,902 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@andreivince がすでに取り組んでいます。

2026年10月2日 から。

  • #52799 @andreivince による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
json, typescript
領域
cli, documentation

調査の方向性

この issue は、ドキュメントページ https://opencode.ai/v2/docs/cli/config#alerts とスキーマリンクを指しています。リポジトリのドキュメントソース(おそらく docs/ ディレクトリ内)を調べて、誤った設定ファイルの参照を見つけてください。また、https://opencode.ai/tui.json にある TUI 設定スキーマと、packages/tui/src/attention.ts のコードを確認し、許可されているサウンドファイルの種類を理解してください。修正には、ドキュメントを更新して cli.json ではなく tui.json を参照するようにし、サポートされているオーディオ形式の詳細を追加することが含まれます。

索引モデルが issue の本文から書いたものです。

説明

Description

So the current docs (https://opencode.ai/v2/docs/cli/config#alerts) for alerts are showing wrong information because those never worked for me in a ~/.config/opencode/cli.json file (schema link).

It took me a few hours and help from frontier AI models to find out that there exists another config tui.json. I couldn't find any docs online about it except the schema link and this little section here without much further explanation there.

Proposed change

I would at least change the code snippets header label from cli.json to tui.json or create a whole subpage for TUI and move this there. There is also no information about the allowed file types (e.g. mp3, wav, etc.). I had to reverse engineer the code to find out that the default files are also mp3, see imports https://github.com/anomalyco/opencode/blob/dev/packages/tui/src/attention.ts#L17

Plugins

0

OpenCode version

1.18.32

Steps to reproduce

Prerequisite is that no ~/.config/opencode/tui.json exists or at least no attention object in the JSON file.

Procedure:

  1. Create ~/.config/opencode/cli.json file
  2. Paste the following from https://opencode.ai/v2/docs/cli/config#alerts:
    {
      "$schema": "https://opencode.ai/v2/cli.json",
      "attention": {
        "notifications": true,
        "sound": true,
        "volume": 0.4,
        "sound_pack": "opencode.default",
        "sounds": {
          "permission": "/home/me/sounds/permission.wav"
        }
      }
    }
    
  3. Restart openclaude via shell opencode
  4. Send any prompt
  5. No sound is played at all
Screenshot and/or share link

No response

Operating System

Linux RHEL 10.2

Terminal

Intellij Terminal & RHEL default terminal named "Konsole"

主要言語
TypeScript
スター
213k
フォーク
28.4k
平均マージ
8時間 58分
マージ済み PR(30日)
251

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。