Release v2.9.4 — fix IA chrono/tokens (tool results) + remove Copilot#29
Merged
Conversation
=== Chrono / tokens (cause racine enfin trouvée) === Claude Code écrit les RÉPONSES D'OUTILS dans des messages `role=user`. Le code les traitait comme un nouveau prompt → `activityStartedAt = Date()` + `promptTokensTotal = 0` à CHAQUE outil exécuté. D'où "le temps qui se casse / repart à 0" et "les tokens qui ne marchent pas". Fix : helper `messageIsRealUserPrompt(_:)` qui distingue un vrai prompt (content texte) d'une continuation (content = uniquement tool_result). Le chrono et les tokens ne sont reset que sur un vrai prompt. Appliqué à parseMessage (session sélectionnée) ET parseMessageForSession (multi). === Idle-timer === `markAllSessionsIdle` appelait `captureCompletionIfNeeded` (qui nulle activityStartedAt) inconditionnellement → l'idle-timer tuait le chrono pendant un long outil (build) ou une longue réflexion sans écriture JSONL. Fix : ne fige le chrono que si la session n'est plus active (ni thinking, ni outil en cours). === Retrait complet de GitHub Copilot === Le provider Copilot ne servait à rien. Supprimé : - managers/CopilotManager.swift (fichier entier) + 4 entrées pbxproj - CodeAssistantProvider.copilot (enum + title) - CodeAssistantViews : CopilotStatsView, CopilotCompactIndicatorView, cases .copilot, provider button, observers - ContentView : copilotManager, switch tuple réécrit en 2-tuple, cases .copilot, compactCopilot* helpers Reste : Claude Code + Codex uniquement. Le Picker des Réglages s'adapte automatiquement. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Owner
Author
|
/release 2.9.4 |
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.
Root-cause fix: Claude Code writes tool results as role=user messages — they were resetting the chrono + tokens on every tool. Now distinguished from real prompts. Also: idle-timer no longer kills the chrono during long tools, and GitHub Copilot provider removed entirely (Claude + Codex only).