← Back to PRs

#9273: Add files via upload

by cyrilliu1974 open 2026-02-05 02:33 View on GitHub →
agents stale
<!-- greptile_comment --> <h2>Greptile Overview</h2> <h3>Greptile Summary</h3> This PR makes `buildSystemPromptReport` more defensive by coercing `systemPrompt` via `String(params.systemPrompt ?? "")` before trimming, and applies small formatting/import-order tweaks in `src/agents/system-prompt-report.ts`. The report builder still extracts project context, tool list text, skills blocks, and tool schema sizing to populate `SessionSystemPromptReport` for downstream session/config reporting. <h3>Confidence Score: 4/5</h3> - This PR is safe to merge after fixing a minor formatting issue. - Changes are localized and low-risk (import reordering, formatting, and a defensive string coercion). The only clear issue found is the missing trailing newline, which can fail strict formatting/lint checks. - src/agents/system-prompt-report.ts <!-- greptile_other_comments_section --> <sub>(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!</sub> <!-- /greptile_comment -->

Most Similar PRs