Repository navigation
fix(file-transfer): remove false channel-attachment promise from dir_fetch summary - #138557
synthalorian wants to merge 1 commit into
Conversation
|
Thanks for the context here. I did a careful shell check against current The requested correction is already released. Current main no longer makes the false attachment promise, and the merged repair for the linked issue also delivers permitted attachments. I found the merged PR that appears to have closed this: #138542: fix(file-transfer): directory tools hide filenames from direct model calls. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Keep the released bounded saved-file listing and trusted attachment delivery as the canonical directory-fetch behavior. Do we have a high-confidence way to reproduce the issue? No current-main reproduction remains: the old promise is absent from the tool result, and current tests cover large-directory output. The pinned branch base establishes the former wording. Is this the best way to solve the issue? No. Current main gives the agent bounded usable file records and delivers permitted attachments; the branch’s proposed wording also mistakes the capped media list for the complete details.files array. Security review: Security review cleared: The introduced diff changes result wording and a test, without adding a credential, execution, dependency, or authority path. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning medium; reviewed against 429b4211de79; fix evidence: merged PR #138542, release v2026.9.6, commit 137698c76560. |
sylvesterkaczmarek
left a comment
There was a problem hiding this comment.
Removing the attachment promise at the summary owner is the correct fix; the tool still exposes a bounded details.files list without implying that the channel adapter delivered anything. The >25-file regression distinguishes the user-visible contract from the internal cap well. Minor cleanup only: MEDIA_URL_CAP is now a stale name for a details-file limit, so renaming it later would make the ownership clearer.
Runtime ProofWhat This ProvesThe fix removes the false claim "channel attaches first 25" from Test MethodCreated a focused integration test that:
Captured OutputSummary Text (PROOF): Test Result: Proof Points Verified
Before vs AfterBefore (false claim): After (accurate): |
|
@clawsweeper re-review — runtime proof posted above showing 30-file fetch with corrected summary text (no false 'channel attaches' claim) |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Live behavior proof — dir_fetch summary no longer promises channel attachmentVerified on PR branch 1. Source change (old vs new)Old summary suffix (origin/main, const mediaNote = droppedFromMedia
? ` (channel attaches first ${MEDIA_URL_CAP}; ${droppedFromMedia} more in details.files)`
: "";New summary suffix (this PR): const listedCount = Math.min(allOrdered.length, MEDIA_URL_CAP);
const fileNote = droppedFromMedia
? ` (${listedCount} of ${allOrdered.length} paths listed in details.files; ask me to send them to share them)`
: "";Grep verification on the PR branch: 2. Live tool execution (regression test exercises the real
|
|
@clawsweeper re-review — live behavior proof posted above, CI green. Requesting proof-label re-evaluation. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Closing as superseded — the issue is closed upstream and the text this PR removed no longer exists on main. What happened: issue #138383 was closed COMPLETED via #138427 ( Nothing left to rebase onto. 🦞 |
What Problem This Solves
dir_fetchtells the model "channel attaches first 25" but always attaches 0. The tool is not inTRUSTED_TOOL_RESULT_MEDIA(sofilterToolResultMediaUrlsstrips all local paths) and never callstoolContext.delivery.send(). The false promise has been in the string since at least May 2025 and causes the model to report files as delivered when nothing arrived.Fix
Option (i) from the issue — "say only what is true":
mediaNotethat claimed "channel attaches first N"fileNote: "N of M paths listed in details.files; ask me to send them to share them"MEDIA_URL_CAPslicing stays (it bounds the details.files list) but the false promise is goneEvidence
Closes #138383