[BUG] Issues with redraw and terminal hiding after a few interactions with Claude
まだ誰も着手していません。
評価
調査の方向性
まず、提供された LazyVim 設定、フローティングターミナルの設定、文書化された Claude のワークフローを使い、思考中にフォーカスを切り替えながら問題を再現します。次に、ターミナルの再描画とフォーカス処理の経路を追跡します。入力とカーソルが一貫して再描画され、Esc を必要とせず、Claude を中断することなく ToggleFocus がターミナルを復元できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Bug Description
I'm using claudecode.nvim with LazyVim with the following configuration:
local toggle_key = "<C-,>"
return {
{
"coder/claudecode.nvim",
dependencies = { "folke/snacks.nvim" },
keys = {
{ toggle_key, "<cmd>ClaudeCodeFocus<cr>", desc = "Claude Code", mode = { "n", "x" } },
},
opts = {
terminal = {
---@module "snacks"
---@type snacks.win.Config|{}
snacks_win_opts = {
position = "float",
width = 0.9,
height = 0.9,
border = "single",
keys = {
claude_hide = {
toggle_key,
function(self)
self:hide()
end,
mode = "t",
desc = "Hide",
},
},
},
},
},
},
}
I was not able to find the exactly moment in my workflow the issues happens, but they are:
- At some point the terminal input just stops to draw and the cursor is placed in some random position in the terminal window. A few things i do try to fix it:
- Esc+i (i noticed that it enters in normal mode sometimes) or Ctrl+l (or both)
- ToggleFocus
- Quit the entire session and start the terminal again
- When Claude starts to "think" (when understanding your prompt, working through requested changes or finishing your changes to present a summary) if I use my ToggleFocus shortcut
<ctrl>+,i can't bring the terminal back again. I need to press Esc twice which end up interrupting the session.
To Reproduce
Steps to reproduce the behavior:
Install neovim, LazyVim, enable claudecode.nvim from extras and use the configuration i mentioned above.
My workflow with Claude is:
- /model -> opus
- /plan
- Interact with Claude prompts or press Esc to add information.
- Esc
- /model -> sonnet
- Shift+Tab to change to
accept edits on - Proceed
Between the steps 1-6, try to toggle focus (always wait for Claude to pause and ask something or finish the current thinking)
During the step 7 try to ToggleFocus the window.
Again, it's a bit random the moment above issues start to happen.
Expected Behavior
- Consistent (re)draw of window where the input field is always visible and the cursos placed in it
- Being able to ToggleFocus even during Claude thinking.
Environment
- Neovim version: 0.12.3
- Claude Code CLI version: 2.1.198
- OS: macOS Tahoe 26.5.2
- Plugin version: 0.3.0
Error Messages
N/A
Additional Context
N/A
- 主要言語
- Lua
- スター
- 3.1k
- フォーク
- 217
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/claudecode.nvim のほかの issue
-
bug needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
coder/claudecode.nvim#314 ·
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
coder/claudecode.nvim#313 ·
-
needs-triage
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
coder/claudecode.nvim#319 · リアクション 1 件 ·
-
[BUG] 框选文本一直抱错误信息 オープンbug needs-triage
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
coder/claudecode.nvim#316 · コメント 1 件 ·
-
needs-triage
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
coder/claudecode.nvim#309 ·
coder/claudecode.nvim の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
openSUSE/python-rpm-macros#219 ·
-
bug mini.bracketed
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
accessibility bug typst
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
quarto-dev/quarto-cli#14947 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
HenrikBengtsson/CBI-software#134 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
secondlife/slua#96 ·