Repository navigation
fix(commands): emit WARN when bootstrap files are truncated - #68307
1aifanatic wants to merge 2 commits into
Conversation
resolveCommandsSystemPromptBundle was calling resolveBootstrapContextForRun without a warn callback, so bootstrap file truncation warnings were silently discarded in the commands / system-prompt path. Wire up makeBootstrapWarn backed by a subsystem logger so that truncation warnings surface in the log at WARN level, consistent with the compact and attempt runner paths.
Greptile SummaryThis PR wires up the missing Confidence Score: 5/5Safe to merge — small, additive fix with no behavioral changes to existing paths. The change strictly adds a previously missing warn callback using the same well-tested makeBootstrapWarn pattern found in compact.ts, attempt.ts, and prepare.ts. No logic is altered; only a silent discard is replaced with a log.warn call. No P1 or P0 findings. No files require special attention. Reviews (1): Last reviewed commit: "fix(commands): emit WARN when bootstrap ..." | Re-trigger Greptile |
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Keep open: current main still calls the bootstrap resolver from the commands system-prompt path without a warning callback, so the branch carries a useful narrow bug fix. It is not merge-ready because GitHub reports the branch as conflicting, the external PR lacks after-fix real behavior proof, and it edits release-owned changelog content. Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. Do we have a high-confidence way to reproduce the issue? Yes at source level: current main calls Is this the best way to solve the issue? Yes, the code direction is the narrowest maintainable fix: reuse Security review: Security review cleared: No concrete security or supply-chain concern was found; the diff only changes internal warning logging, a test mock, and release-note text. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 4e6933c84f18. |
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(commands): emit WARN when bootstrap files are truncated This is item 1/1 in the current shard. Shard 13/22. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Closing per ClawSweeper review verdict |
Summary
resolveCommandsSystemPromptBundlewas callingresolveBootstrapContextForRunwithout awarncallbackmakeBootstrapWarnbacked by acreateSubsystemLoggerso truncation warnings now surface at WARN level, consistent with the compact and attempt runner pathsTest plan
resolveCommandsSystemPromptBundleis called with a large bootstrap file exceedingbootstrapMaxCharsworkspace bootstrap file ... is N chars (limit M); truncating in injected context (sessionKey=...)appearsresolveCommandsSystemPromptBundlestill pass (the mock usesobjectContaining, so the newwarnfield is ignored)