feat: Graceful shutdown, 80% budget warnings, LiteLLM analytics, and interactive git diffs#8
Merged
Merged
Conversation
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.
Overview
This release delivers 6 major features to Agents Fleet: graceful shutdown for Claude/Codex CLIs, 80% budget warning notifications, LiteLLM spend analytics integration, an interactive git diff viewer, one-click session resume, and crash recovery.
What's New
🛑 Graceful Shutdown
claudeandcodexagents/exitinstead of force-killing processes🚨 Budget Warning Notifications
📊 LiteLLM Spend Analytics
/spend/logs,/user/daily/activity)🔍 Interactive Git Diff Viewer (NEW COMPONENT)
⏮️ One-Click Session Resume
claude --resume <uuid>andcodex resume <uuid>commands🔧 Crash Recovery
Files Changed (35 files, +1,331/-1,054 lines)
Core Changes
Server (6 files):
db.ts— Crash recovery logic for orphaned sessionsgitArtifacts.ts— Capture resume commands from PTYprocessManager.ts— Graceful shutdown and 80% budget warning logicroutes/dashboard.ts— Dashboard endpointsroutes/sessions.ts— Session lifecycle endpointsws.ts— Budget warning WebSocket broadcastsWeb UI (9 files):
App.tsx— App-wide refactoringClaudeSdkChat.tsx— Claude SDK improvementsDashboard.tsx— Spend analytics dashboard redesignLiteLLMChat.tsx— LiteLLM chat enhancementsGitDiffViewer.tsx(NEW) — Interactive diff viewer componentSessionArtifacts.tsx— Resume artifact UI and GitDiffViewer integrationTerminalPane.tsx,TerminalReplay.tsx— PTY improvementsapi.ts— LiteLLM spend API endpointsShared Types (2 files):
index.ts— WsServerMessage budget_warning typemodelPrices.ts— Model pricing dataDocumentation & Assets
README.md— Updated feature highlights and screenshotsROADMAP.md— Product roadmapTesting Notes
claudeorcodexCLIbudget_tokensorbudget_usd/spend/logsand/user/daily/activityendpoints configured[crash-recovery]messagesBackwards Compatibility
Related Issues
Screenshots Included