Repository navigation
docs: correct stale code comments in hooks, list, picker, and output - #4782
Merged
Merged
Conversation
- work_items_for_worktree no longer enforces a missing-llm_command precondition; the column plan decides whether SummaryGenerate runs. - preview_cache backs four picker modes, counting Comments. - compute_worktree_path returns the repo root for the default branch only in a non-bare repo. - RemovalDisplayInfo::from_precomputed takes the planning-time verdict; no caller refreshes it after pre-remove. - DirectivePassthrough::default() has no background-hook caller. - The flush before running a command flushes stderr, not stdout. - post-remove's anchor is only its plan key; it runs and renders in the removal destination.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes seven code comments that no longer match the code. It changes comments only, so there is no behavior change and no test.
work_items_for_worktree(list/collect/execution.rs): the comment says the function enforces a "missing llm_command" precondition. It only clonesllm_commandinto the task context. The column plan decides whetherSummaryGenerateruns, andtest_required_tasks_for_rendercovers that, as the file's own test comment notes.preview_cachemodule doc: it says the cache is the on-disk tier for "three of the modes". The same doc goes on to describe Comments as a fourth cached mode.compute_worktree_path(worktree/resolve.rs): it says the default branch returns the repo root.expected_worktree_pathdoes that only for a non-bare repo. In a bare repo every branch gets a templated path.RemovalDisplayInfo::from_precomputed(output/handlers.rs): it says the caller refreshes the integration verdict afterpre-removehooks. Nothing does: the refresh helper added in fix: data-safety fixes across the worktree merge/remove/prune lifecycle #2870 was later removed. Its only caller passes the planning-time verdict, and the comment at that call site already says the deletion re-decides against fresh refs.DirectivePassthrough::default(): it says background hooks use it. Background pipelines spawn through their own runner, and the only callers are tests.execute_shell_command: the comment says "Flush stdout" abovestderr().flush().hooks.rsmodule spec: it says each hook runs and renders in its anchor. That doesn't hold forpost-remove, whose anchor (the removed worktree) is only its plan key.spawn_hooks_after_removeruns and renders it in the removal destination.Found by the nightly code survey.