m-mahiro/claude-code-mods/tree/main/mods/btw-fix
btw-fix
A mod that replaces `/btw`'s blocking side panel with a custom implementation that responds as a normal, scrollable transcript row. It hooks `command.run` and responds without calling `next()`.
About this mod
The /btw side-question feature, which lets you ask something without interrupting the current work, prevents the main conversation from scrolling while it waits for an answer. Closing that panel cancels the answer.
This mod takes over /btw with its own implementation. It hooks command.run with { command: 'btw' } and answers without calling next(), bypassing the built-in implementation's blocking side panel altogether. The answer appears as a normal transcript row(it simply gets a one-off, tool-free response with the current conversation as context through $.model.fork, then returns it as the command's output text), so there is no panel to lock the conversation and nothing to cancel when it is closed.
Usage
/btw <question> works as before. If the question is empty, it returns the usage information.
Try it
claude plugin validate mods/btw-fix
claude plugin test mods/btw-fix
To enable hot reload in a session and try it on the real client, copy this folder as-is into the dev-mods folder(the location taught by the plugin-authoring skill).
Installation
Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.
claude plugin marketplace add m-mahiro/claude-code-mods claude plugin install btw-fix
Original text / README
btw-fix
/btw(現在の作業を中断せずに聞ける side question 機能)は、回答を待っている間メインの会話がスクロールできなくなり、その画面を閉じると回答がキャンセルされてしまう。
この mod は /btw を自前の実装で肩代わりする。command.run を { command: 'btw' } でフックし、next() を呼ばずに答えてしまうことで、ブロッキングなサイドパネルを使うビルトイン実装そのものを素通りさせる。回答は普通のトランスクリプトの行として出る($.model.fork で、現在の会話を文脈にしたツールなしの一回限りの応答を取り、それをコマンドの出力テキストとして返すだけ)ので、ロックするパネルも、閉じて中断するものも存在しない。
使い方
/btw <質問> は今まで通り。質問が空なら使い方を返す。
試す
claude plugin validate mods/btw-fix
claude plugin test mods/btw-fix
セッションでホットリロードを有効にして実機で試す場合は、このフォルダをそのまま dev-mods フォルダ(plugin-authoring スキルが教える場所)にコピーすればよい。
