fix(prompts): remove stray tab before Tool Use Guidelines section - #1416
fix(prompts): remove stray tab before Tool Use Guidelines section#1416daewoongoh wants to merge 1 commit into
Conversation
Removes a leading tab character before getToolUseGuidelinesSection() in the system prompt that made it render indented, unlike every other section. Updates the affected snapshots and drops 5 orphaned snapshot files no longer referenced by any test. Signed-off-by: daewoongoh <dw.oh@samsung.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (11)
📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe system prompt template removes the leading tab before the ChangesPrompt formatting
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This localized change removes unintended indentation from a system-prompt section and updates its snapshots; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description includes the linked issue, implementation details, test procedures, checklist, and documentation impact. It provides sufficient review context, although the Issue Linked checklist item says "pending" despite linking issue Full details: Linked Issues checkExplanation The PR removes the leading tab before the Tool Use Guidelines subsection in src/core/prompts/system.ts, which directly satisfies issue Full details: Out of Scope Changes checkExplanation The prompt indentation fix and its affected snapshot updates are in scope for issue
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
src/core/prompts/system.tsESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Related GitHub Issue
Closes: #1415
Description
The
Tool Use Guidelinessub-section inside theTOOL USEsection of the system prompt had a leading tab character, so it was sent to the LLM indented, unlike every other section.src/core/prompts/system.ts: removed the leading tab before${getToolUseGuidelinesSection()}so it starts at the beginning of the line like the other sections.git log -p -Land found the tab was leftover from a refactor: a single leading space was introduced inchore: remove XML tool calling support (#10841), then turned into a tab byEnable parallel tool calls by default (#11031). Neither commit intended this indentation, so it's not a deliberate format.consistent-system-prompt.snap,with-mcp-hub-provided.snap,with-undefined-mcp-hub.snap(fromsystem-prompt.spec.ts).add-custom-instructions.spec.ts:architect-mode-prompt.snap,ask-mode-prompt.snap,no-mcp-servers.snap.with-computer-use-support.snap,with-different-viewport-size.snap,with-diff-enabled-{true,false,undefined}.snap.Test Procedure
pnpm test(turbo test) — 462 test files / 7754 tests passed, 39 skipped, no unrelated failures.git diff: the tab-to-no-indent change insystem.ts, and the corresponding\t# Tool Use Guidelines→# Tool Use Guidelineschange in the snapshot files.Pre-Submission Checklist
Documentation Updates
Get in Touch
hehegwk_23849
Summary by CodeRabbit