Fix one-shot rate detection for all non-Claude providers#355
Merged
Conversation
This was referenced May 18, 2026
SwiftUI MenuBarExtra with litellm-snapshot pricing, Claude/Codex/Copilot parsers, session discovery, auto-refresh timer, and dashboard UI matching the real menubar design.
Private Mac App Store build, not for the public repo.
Gemini and Mistral Vibe now emit per-assistant-message calls grouped by user turn via turnId, so the classifier sees Edit->Bash->Edit as retries instead of independent one-shot turns. Kiro and Goose record per-message tool ordering via toolSequence for the same effect on aggregated sessions. Vibe now prefers meta.json.stats.session_cost over price-derived estimates. Session cache bumped to v2. Insight pill switcher scrolls horizontally instead of wrapping. Closes #351.
8f3594e to
1bfe4b8
Compare
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.
Summary
Combines the best of #352 and #353 to fix 100% one-shot rates across all non-Claude providers:
ParsedProviderCalls grouped byturnId, so the existing multi-call retry detector seesEdit -> Bash -> Editflows naturally (from Fix Gemini and Vibe one-shot rates #352)toolSequenceon aggregated calls, expanded in the classifier (from Fix 100% one-shot rate for Gemini/Mistral/Kiro/Goose #353)meta.json.stats.session_costover price-derived estimates when availableSupersedes #352 and #353. Closes #351.
Changed files
providers/types.ts,session-cache.ts,types.tsparser.ts(turnId grouping + toolSequence carry-through)classifier.ts(expand toolSequence in countRetries)gemini.ts,mistral-vibe.ts,kiro.ts,goose.tsdocs/providers/mistral-vibe.mdHeatmapSection.swift(ScrollView pills)classifier.test.ts,mistral-vibe.test.ts,provider-turn-grouping.test.tsTest plan
tsc --noEmitcleannpm test -- --run- 61 files, 868 tests passnpm run buildcleanswift buildcleangit diff --checkclean