fix(ai): report every modifier removed with a pill - #519
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthrough
ChangesremoveModifier reporting
Merge Risk: ⚪ Minimal · up to This localized change makes modifier-removal results accurately report every row removed while preserving existing behavior and compatibility; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Linked Issues checkExplanation The implementation satisfies issue Full details: Docstring CoverageExplanation Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 3 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
removeModifieraligned with the editor's whole-pill deletion ruleremovedIdsfieldremovedfield for consumers that expect the requested IDRoot cause
Adjacent modifiers with identical styling render as one timeline pill. The shared
removeRegionmutator correctly deletes that whole pill, but the agent result echoed only the ID it was asked to remove. After deleting one of three touching zoom rows, the model was told one ID disappeared while the document contained none of the three.The executor now snapshots the resolved modifier collection before and after the shared mutation and reports the stable difference. Deletion granularity and the human editor remain unchanged.
Related issue
Fixes #457
Type of change
Release impact
Desktop impact
Screenshots / video
No visual change. This corrects the model-visible tool result for an existing editor mutation.
Testing
removedIdswas absentnpx vitest --run electron/ai-edition/agent-tools.test.ts electron/ai-edition/deep-agent/service.test.ts— 134 passednpx tsc --noEmitnpx tsc -p tsconfig.test.json --noEmitnpm run lint— no errors (14 pre-existing warnings)npm run test— 181 files, 2,164 passed, 2 skippedgit diff --checkSummary by CodeRabbit
Bug Fixes
Documentation