fix: preserve deletion-only AI ratio and remove preview badge#76
Merged
Conversation
📝 WalkthroughWalkthroughRemoves the "Preview" badge from the dashboard sidebar header and updates CLI attribution resolution: buildEntry now uses a file-aware resolveMethod fallback when added-line denominators are zero, plus updated/added tests for file-fallback and excluded-file none-case. ChangesSidebar Header Update
CLI attribution method and tests
Investigation & Test-Policy Docs
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Summary
Previewbadge now that Agent Note is public.Release Note Plan
Release note: Deletion-only AI commits now keep a file-level AI Ratio instead of appearing as 0%.
Type of Change
Checklist
Notes for Reviewers
The Dashboard change is a one-line UI cleanup. The attribution fix covers commits that only delete lines: line-level attribution cannot divide by added lines, so Agent Note now falls back to the existing file-level denominator when eligible files remain.
docs/knowledge/investigations.mdrecords the concrete regression and the broader test matrix policy. Localdocs/blog/drafts are intentionally not included.Verification:
npm run typecheck --prefix packages/clinpm run lint --prefix packages/clinpm run build --prefix packages/clinpm test --prefix packages/clinode --import tsx/esm --test packages/cli/src/core/entry.test.tsnode --import tsx/esm --test src/commands/pr.test.tsfrompackages/clinpm run build --prefix packages/pr-reportnpm test --prefix packages/pr-reportnpm test --prefix packages/dashboardnpm run build --prefix packages/dashboard🧑💬🤖 Agent Note
Total AI Ratio: ████████ 100%
Model:
gpt-5.40bc0e77fix(dashboard): remove preview badgef4c588ffix(cli): preserve AI ratio for deletion-only commits29dbdeadocs: record deletion-only ratio test policy💬 Prompts & Responses (7 shown / 9 total)
0bc0e77fix(dashboard): remove preview badgef4c588ffix(cli): preserve AI ratio for deletion-only commits29dbdeadocs: record deletion-only ratio test policySummary by CodeRabbit
Style
Bug Fixes
Tests
Documentation