Repository navigation
refactor(media): remove duplicate spaced path fallback - #146933
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 7:55 AM ET / 11:55 UTC (Revision 3). ClawSweeper reviewWhat this changesRemoves a duplicate fallback for attachment filenames containing spaces while preserving accepted attachments, visible text, and attachment order. Merge readiness✅ Ready for maintainer review The cleanup remains useful and has no actionable correctness findings. The fallback is equivalent by source inspection, and the reviewed commit passed hosted CI; this member-authored PR remains eligible for normal maintainer handling. Priority: P3 Review scores
Verification
How this fits togetherThe media parser separates attachment references from model and tool output into visible text and ordered media segments. Reply processing consumes those results before channel delivery. flowchart TD
A[Model or tool output] --> B[Media directive parser]
B --> C[Validate candidate paths]
C --> D[General fallback when none accepted]
C --> E[Ordered media and visible text]
D --> E
E --> F[Reply processing and channel delivery]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -10. Total -10 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one general fallback for unsuccessful directive parsing and retain the existing attachment-order and validation contracts. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes redundant code rather than reporting a user-facing defect; source inspection establishes the equivalence. Is this the best way to solve the issue? Yes. Deleting the narrower duplicate leaves the existing general fallback as the single owner without changing accepted inputs or output ordering. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 59773963d180. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
* temp/pr-145950: (101 commits) refactor(memory-wiki): share freshness result construction (#146935) improve(gateway): use metadata projection for presence (#146817) test(agents): reuse complete Responses model fixtures (#147015) fix(sessions): align the reclamation-memory test with the archive session owner (#147028) refactor(terminal): simplify copy-sensitive token checks (#146934) refactor(media): remove duplicate spaced path fallback (#146933) refactor(cli): reuse command-group names (#146893) improve(plugins): reduce JavaScript generation capture work (#146993) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) test(models): cover quota recovery during catalog discovery (#146708) fix(macos): recover browser sign-in when no browser opens (#146787) fix(process): prevent one-shot agents exiting while polling (#144268) fix(status): label the session inventory as stored (#146979) fix: avoid repeated background reads while loading chat (#146953) refactor(ui): narrow Skill Workshop proposal context (#146977) ...
* commit '060e856e5f9df245d63c98990fcb47e18108c6b9': (97 commits) refactor(memory-wiki): share freshness result construction (#146935) improve(gateway): use metadata projection for presence (#146817) test(agents): reuse complete Responses model fixtures (#147015) fix(sessions): align the reclamation-memory test with the archive session owner (#147028) refactor(terminal): simplify copy-sensitive token checks (#146934) refactor(media): remove duplicate spaced path fallback (#146933) refactor(cli): reuse command-group names (#146893) improve(plugins): reduce JavaScript generation capture work (#146993) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) test(models): cover quota recovery during catalog discovery (#146708) fix(macos): recover browser sign-in when no browser opens (#146787) fix(process): prevent one-shot agents exiting while polling (#144268) fix(status): label the session inventory as stored (#146979) fix: avoid repeated background reads while loading chat (#146953) refactor(ui): narrow Skill Workshop proposal context (#146977) ...
* temp/pr-137049: (110 commits) improve: reduce GitHub OAuth maintenance work for large agent rosters (#147021) fix(test): avoid settings lock writer startup timeouts (#147029) fix(update): correct backup guidance and cover incident regressions (#147023) refactor(gateway): share connection lifecycle across transports (#145950) refactor(telegram): share HTML text escaping (#146936) perf(build): reduce disk use in UI performance checks (#146687) refactor(memory-wiki): share freshness result construction (#146935) improve(gateway): use metadata projection for presence (#146817) test(agents): reuse complete Responses model fixtures (#147015) fix(sessions): align the reclamation-memory test with the archive session owner (#147028) refactor(terminal): simplify copy-sensitive token checks (#146934) refactor(media): remove duplicate spaced path fallback (#146933) refactor(cli): reuse command-group names (#146893) improve(plugins): reduce JavaScript generation capture work (#146993) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) ...
What Problem This Solves
Media directive parsing repeats the same fallback for filenames containing spaces.
User Impact
No user-visible behavior changes. Accepted attachments, visible text, and attachment ordering are preserved.
Why This Change Was Made
The general fallback already performs the same normalization and validation. Its append is equivalent because no attachment has been added while the shared success flag is false. Production changes: −10 lines; tests unchanged.
Evidence
b7561dcad9e2eee7077fcaa2f65e3f3d72b2cc84(attempt1), including type/lint/format gates. Actual job103710914720 passed all127 parser cases covering attachment variants, invalid paths, remote validation, ordered segments and Markdown; no target skips or test-name filters. The borrowed dependencies remain incompatible, so package-backed proof is hosted.