Deferred follow-ups from the 2026-11 fix run

Aberta
#603 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
10/100
Tipo de issue
Bug
Clareza
Precisa de esclarecimento
Status de atividade
Ativa
Stack de tecnologia
lua, vim
Domínio
devtools, tooling

Direção de pesquisa

This issue bundles many deferred follow-ups across diff handling, terminal placement, reloads, tests, and tooling; it does not define one task to pick up. Start by asking the maintainer which specific follow-up is in scope and whether it is still needed, since the body says most items are already on main and work is deferred until the next fix run. For an agreed item, follow its named files or tests and verify only that item.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

needs-triage

The maintainer stopped the 2026-11 fix run after its in-flight PRs. These follow-ups were found by reviews in that run and were not started. Each one below is deferred by that decision. Main already has every item listed here unless the item says otherwise.

Diff mode after close (found in #494 and #573 reviews)

The maintainer picked four small PRs, landed one at a time, for these:

  • A user handler sets diff state while the proposal buffer is deleted (after :b <proposal> and close_tab), and the cleanup resets it.
  • A user's :diffoff | diffthis in a :split copy, or a :tab split copy in another tab page: closing the diff ends the first and leaves the second.
  • Two diffs of one file: closing the first can end diff mode in the second or close its window.
  • Legacy diff.open_diff: a BufEnter handler that moves the focus leaves diff mode on in the user's other window.

Diff close path

  • After a reject (:q or deny) and close_tab, the cursor in the original window goes to line 1. After an accept it goes back to where the user was. (#573 post-merge check, M1)
  • After an accept with :w, typing in the original window before close_tab makes the reload skip the buffer silently. A later :w still gets Neovim's "file changed" prompt. Reproduce with timestamps first. (#573 post-merge check, M2)
  • From #485: tests/integration/diff_new_tab_tabclose_stops_spec.lua still passes when its own fnameescape is removed, because an unescaped :split under a % TMPDIR opens a wrong empty buffer without an error (#485 verifier, m1).
  • From #485: lua/claudecode/README.md says the split proposal window closes, but in a tab that stays open, after the user closed its file window, the proposal window keeps an empty buffer and stays (diff.lua cleanup). The corrected :tabclose sentence still says "as on main" (#485 verifier, m2 and m3).
  • From #485: lua/claudecode/README.md says no autocmd can enter the terminal while the release runs, but when the release keeps the terminal window, the final WinEnter and BufEnter run with it open (the diff's handler is already gone, so nothing breaks) (#485 advisor).
  • With the user in the diff tab, a split of the user's own in that tab closes with the tab. The buffer stays loaded and modified. Main does the same (#485 verifier, USERWIN-CLOSED).
  • From #511: lua/claudecode/README.md cites M._cleanup_diff_state for the refusal of a replacing openDiff while the old diff waits for the window gate, but M.open_diff_blocking raises it (#511 verifier, n1).
  • PROTOCOL.md says a replacing openDiff has "One exception". Since #511 it is also refused with -32000 while the user is in q: or under textlock (main already failed that call there). The header of journey-diff-replace-cmdwin.sh says Neovim refuses the new windows, but the replace loop refuses the call first, and the journey stops with vcn's until message instead of its own FAIL: line (#511 advisor).
  • close_tab from the command-line window: #511 holds the teardown behind the window gate, but the saved-diff reload still raises E11 in q: and E565 under textlock, and the file buffer stays unreloaded. Main is no better (#511 known limit).

Terminal placement (found while building #598)

  • Native ensure_visible raises Invalid window id when a BufLeave autocmd closes the window the show started in while the split survives.
  • A BufEnter or BufWinEnter autocmd of the terminal that closes Claude during a show raises Invalid window id.
  • A BufLeave autocmd that runs :ClaudeCodeOpen during a show shows the terminal in two windows (main leaves an extra split with the user's file instead).
  • show_hidden_terminal calls nvim_set_current_win(original_win) in its success path without a validity check.
  • The redirect on the Snacks provider's first start, and a WinNew autocmd that opens and enters its own window during the split.
  • From #598's last verifier: the unchanged-file placement tests run only with 'hidden' off, so a mutant (V11) that skips the hide when 'hidden' is on passes every test while real Neovim then unloads or wipes that file (6 of 24 pairs). Add the 'hidden' on cases (m7).
  • From #598's last verifier: the helper comment in utils.win_set_buf_in_split, lua/claudecode/terminal/README.md and AGENTS.md say buffer! unloads a changed buffer when 'hidden' is off. Real Neovim keeps it, and only a 'bufhidden' of unload, delete or wipe loses the text. An unload keeps the marks, only a wipe loses them (d2).
  • From #598's verifier on d3484a9c: no real-Neovim case covers a changed old buffer whose other window a BufLeave autocmd closed, with 'bufhidden' unload, delete or wipe. Its mutant dies only by one unit case (m4).
  • If #598 merges with its current design: a user autosave on BufHidden or BufWinLeave writes the buffer that a BufLeave autocmd put into the split, a raising autocmd on those events makes the placement raise, and a hidden-buffer cleanup removes that buffer. #598's body lists these as limits.

Diff replace loop and exit (found in #536 reviews)

  • In the accept_other order, a replaced diff refuses the earlier proposal with "Diff tab in use". No test catches that order (#536 verifier, m1).
  • verify-diff-lifecycle/SKILL.md line 138 says more than the model checks (#536 verifier, m2).
  • A user FileType handler that closes the proposal window during setup leaves two windows in diff mode. A single openDiff on main does the same (#536 verifier, F1).
  • A call that registers while Neovim exits gets no answer from cleanup_at_exit. #536 leaves about 1 such call per run. Main left 337 unanswered calls in 288 runs (#536 verifier, P2).
  • A WinClosed, BufWipeout or BufHidden handler that runs the event loop while a diff is cleaned up lets another call register, and the last step of _cleanup_diff_state can remove it without an answer. Main does the same (#536 "Not in this PR").

Reload proposal names (found in #512 reviews)

  • A plugin reload inside a diff's setup leaves the diff open in the old module (main's reload-during-setup behavior, F1). With a leftover buffer under the diff's name (#512, R1L), close-all also leaves an extra tab and windows. #536 was narrowed and dropped this step.
  • Neovim 0.8.0, unified layout: a FileType handler that runs the event loop during setup, with a leftover buffer, leaves a hidden proposal buffer loaded until the next openDiff renames it (#512, V3x).
  • An openDiff from a TextYankPost handler fails with E565, and in the split layout a later openDiff in the same tab gets E95, on main too (#512 a1 verifier, F2).

Terminal close wait (found in #602 reviews)

  • verify-terminal-lifecycle/check.sh: NativeCloseClearsMark does not check that the mark clear comes before the exec wait. A unit test catches that mutant, the model does not (#602 verifier, f1, on main since #544).
  • Comment and doc wording from #602: proof-pty-child-hangup.sh says luafile ends a name at a space (both builds load such a path, LD_PRELOAD is what splits), verify-terminal-lifecycle/SKILL.md says no fact reads the calls in M.close (SnacksCloseClearsMark does), and the JobEnded comment in TerminalLifecycle.tla still says jobstop already ran (#602 verifier, n1 to n3).
  • lua/claudecode/terminal/README.md: the snacks.close bullet says only that the close forgets the terminal. It does not say that the close also clears the start mark before the exec wait (#602 advisor).

Test and tooling

  • covered.lock hashes all of diff.lua, so unrelated diff PRs must land one at a time. Hash per block instead.
  • Integration runner under bash 3.2 (the macOS default): a Ctrl-C during the cleanup's $(mktemp ...) after an error exit makes the runner exit 130 instead of dying from SIGINT, so a calling loop goes on. Main has the same (#605 verifier, F2).
  • Integration runner (from #605): scripts/README.md and the runner comment say the grave cleanup "never" removes a folder it did not make, but storing the name before mkdir allows it in a forced race, and in that race a nested cleanup could also kill a process group whose id it reads from that folder (F1, #605 advisor). The kill-before-delete test checks nothing on a host without ps (F3).
  • Integration runner: if the work folder rename fails during cleanup, a launcher that runs while rm is half way can start a Neovim that outlives the runner (main has the same race, #592 review).
  • tests/integration/pty_child_exec_spec.lua: a read_proc that reads only the first byte is caught only by a timing-dependent case, and the spec header does not list the two cases #597 added.
  • tests/unit/workflow_cache_spec.lua reads the workflow as text. YAML aliases, escapes and expression paths are not read, by design (see #591 and #596). A false pass: when the with: entries sit at indent 9, a quoted value that continues on a deeper line holding cache: false is read as the cache input (#604 verifier, F2).
  • proof-static.sh doc-get-exact (from #576): the doc count counts loop passes, not what the scan reads, so a doc skipped after the count is not caught (#576 verifier, N1).
  • proof-static.sh doc-get-exact (from #576): any other .md file in the skill, a dot-named one included, fails the check. The script header and the skill do not say so, and the message does not print the count find got (#576 verifier, N2).
  • proof-static.sh doc-get-exact (from #576): every must-fail sample names only OUT, WORK or VCN_STATE, so a pass list that wrongly adds a path word (such as NVIM_SOCK) or drops its $ anchor stays green. Add a must-fail sample with another path word and one whose name starts with a pass word, such as PORT_FILE (#576 verifier, m4).
  • proof-static.sh doc-get-exact (from #576): read double-backtick spans and inline <code>, and treat get< as a word (#576 verifier, m2). Also a line that ends in an escaped backslash joins the next line, so a following bare get OUT reads as xget OUT and passes (#576 advisor).
  • proof-static.sh comments and the SKILL.md description of doc-get-exact still use the wider wording that the #576 body narrows (#576 verifier, m6).
  • vcn.sh and proof-launch-refusals.sh leftovers from the #545 reviews (TMPDIR outside /tmp, Neovim 0.8 leaving $TMPDIR/nvim.$USER). No longer blocked: #578 merged as 6ad8e0fd on 2026-11-16.

Other open work

  • #447 PR C.
  • The leftovers of #511 that its own PR does not cover.

Owner: ThomasK33. Trigger: the next fix run on this repository.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

Linguagem predominante
Lua
Estrelas
3.2k
Forks
223
Merge médio
7h 18min
PRs com merge (30d)
234

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

  • Sem Dockerfile nem arquivo Docker Compose
  • Sem modelo de pull request
  • Sem guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de coder/claudecode.nvim

Todas as issues de coder/claudecode.nvim

Issues semelhantes

Mais issues de Lua

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.