Fix Copilot CLI shutdown metric segmentation#157
Fix Copilot CLI shutdown metric segmentation#157zhangzqs wants to merge 1 commit intoPiebald-AI:mainfrom
Conversation
Handle multiple session.shutdown blocks in a single Copilot CLI events.jsonl by applying modelMetrics to each completed segment instead of only the final shutdown snapshot. Also keep segments open across empty shutdown events and add regression coverage for both cases. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe Copilot CLI parser now tracks message indices across multiple ChangesMulti-Shutdown Segment Tracking
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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
modelMetricsto each completed segment in a singleevents.jsonlinstead of overwriting the whole file with the last shutdown snapshotsession.shutdownhas nomodelMetrics, so later valid shutdown totals still account for earlier turnsTest Plan
Summary by CodeRabbit
Release Notes
Bug Fixes
Tests