Skip to content

Fix quote-block Shift+Enter caret at position 0; correct stale find_skills comments - #4303

Merged
mstomar125 merged 1 commit into
mainfrom
issue-4286-leftovers
Nov 19, 2026
Merged

mstomar125 merged 1 commit into
mainfrom
issue-4286-leftovers

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

Closes #4286

  • Quote block: insertQuoteLineBreak computed the line start with lastIndexOf('\n', start - 1), which for start === 0 finds a newline at index 0 and treats the caret as being on line 2. With a block that starts with an empty line and the caret at 0, the caret landed one line too far. Now start === 0 ? 0 : .... New vitest case fails without the fix and passes with it.
  • Comments only in packages/agent/src/local_agent/tools.rs (the doc on is_system_only_tool and the test comment in search_skills_stays_in_the_registry_for_external_agents): they referred to an MCP find_skills handler that no longer exists. They now say routing renders retrieved candidates into the prompt, search_skills is withheld from the model, and external agents use nodespace skill guidance. The user approved editing these two comments in packages/agent only; there is no code change there (the diff there is comment lines only).

Tests: vitest quote-block-shift-enter 12/12; reverting the fix makes the new test fail (mutation check). Pre-push gate passed.

🤖 Generated with Claude Code

@mstomar125
mstomar125 merged commit 6982b54 into main Nov 19, 2026
@mstomar125
mstomar125 deleted the issue-4286-leftovers branch November 19, 2026 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stale help text and comments about the harness plugins, quote prefix and MCP find_skills; skill install hides installer notices

1 participant