TUI attention docs are missing details & are wrong placed
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 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.jsonexists or at least noattentionobject in the JSON file.
Procedure:
- Create
~/.config/opencode/cli.jsonfile - 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" } } } - Restart openclaude via shell
opencode - Send any prompt
- 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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anomalyco/opencode のほかの issue
-
reproduced
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
anomalyco/opencode#56038 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
anomalyco/opencode#56002 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
app: keybinds match the produced character, so Ctrl+F and other letter shortcuts fail on non-Latin layouts対応中かも @ZXLyyds100 が 1 日前に担当しました。 オープンreproduced
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
anomalyco/opencode#55676 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
tui: NumPad End/Home ignored under kitty keyboard protocol (Windows Terminal reports KP_END 57424)対応中かも @argszero が 1 日前に担当しました。 オープンreproduced
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anomalyco/opencode#55533 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
anomalyco/opencode#55383 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
anomalyco/opencode の issue をすべて見る
似ている issue
-
`cf complete zsh >> .zshrc` fails on vanilla zsh再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
cloudflare/cf#340 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
Rename Madson cameraオープン
難易度 2/5 1時間未満 初心者へのやさしさ 75/100
StoDevX/AAO-React-Native#8785 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
bnv-manager-v2: accept_invite creates the Mailcow domain admin before the commit対応中かも @myOmikron が今日担当しました。 オープンbug ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100