refactor: remove dead execution paths and unify slide ingestion - #414
refactor: remove dead execution paths and unify slide ingestion#414steipete wants to merge 1 commit into
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 4, 2026, 11:28 PM ET / September 5, 2026, 03:28 UTC. ClawSweeper reviewWhat this changesRemoves unused daemon chat and browser media helpers, consolidates slide acquisition, and adds regression coverage for retained execution paths. Merge readiness✅ Ready for maintainer review Keep open: this remains useful cleanup absent from the reviewed main and latest release. The introduced diff preserves existing behavior, and no actionable correctness or security findings remain. Priority: P3 Review scores
Verification
How this fits togetherSummarize’s slide ingestion turns video URLs or local files into inputs for slide extraction. The cleanup also touches browser audio decoding and daemon-backed page Q&A, whose active execution paths remain intact. flowchart TD
A[Video URL or local file] --> B{Local or cached input}
B -->|Yes| E[Slide extraction]
B -->|No| C[HTTP or yt-dlp download]
C --> D[Shared cache and fallback handling]
D --> E
F[Page questions or audio] --> G[Agent endpoint or chunked decoder]
G --> H[Replies or transcripts]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Preserve downloader choice, cache identity, cleanup, and guarded fallback behavior while reducing the maintained execution surface. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes internal cleanup rather than a reported failing behavior; source comparison found no introduced defect. Is this the best way to solve the issue? Yes: consolidating the repeated acquisition workflow and removing unreferenced internal helpers is a bounded approach that preserves the supported execution paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6e20e4493ffa. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Landed through #415 in 8308778. The resulting main tree was verified byte-for-byte against the complete reviewed stack (33b957d), with green combined review, Node 24, Chromium E2E, Firefox smoke, and security checks. Closing this constituent PR as superseded; its changes and review history are preserved by the integration. |
What changed
Delete the unreachable daemon chat implementation and its private, implementation-only test suite. Production chat has already used the agent endpoint for both Q&A and automation; new complete/stream tests explicitly protect the chat-only prompt, page grounding, tool exclusion, and assistant delivery on that live path.
Delete unused whole-buffer browser audio adapters and an unused slide-cache getter. The bounded chunked decoder, media guards, and expiry-aware slide access remain unchanged.
Collapse three copied slide-download workflows into one cache/progress/cleanup path. Source policy still chooses direct HTTP or yt-dlp and preserves cookies, labels, local/cache short circuits, and the existing distinct fallback rules. Pure cache-key/format helpers no longer cross the injection boundary, downloader signatures come from their implementations, and unused cachedMedia return state is gone.
Net reduction: 391 production lines and 961 lines overall. The deleted daemon tests exercised only the unreachable implementation; all live-path scenarios remain, with eight new source/policy and agent regressions.
Proof
Stacked on #413. No live endpoint, user-visible UI, dependency, or release changes.