Feat/refine html attach#427
Conversation
The extension's own content script root and Command Hub root elements
were being included when capturing document.documentElement.outerHTML
for the {{PageHtml}} placeholder, polluting the HTML sent to AI
services. Add getPageHtml() to strip both containers before use.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #427 +/- ##
==========================================
+ Coverage 29.91% 29.93% +0.02%
==========================================
Files 322 322
Lines 33270 33274 +4
Branches 1942 1943 +1
==========================================
+ Hits 9954 9962 +8
+ Misses 23316 23312 -4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
PRレビュー: Feat/refine html attach (#427)HTML添付メニューのUI改善と、 バグ:
|
Review feedback noted the new getPageHtml() had no direct test, and aiPrompt.test.ts only checked pageHtml defined/undefined without verifying the injected containers were actually stripped. Add tests that inject #selection-command and #selection-command-hub elements and assert they're absent from the result. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
No description provided.