feat(chat): integrate Claude Agent SDK 0.3.211#843
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
Warning Review limit reached
Next review available in: 23 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughChangesClaude chat protocol and client surfaces
Estimated code review effort: 5 (Critical) | ~120 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
@copilot review but do not make fixes |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/desktop/src/renderer/components/chat/usage/ContextUsageDial.tsx`:
- Around line 20-22: Update the ratio threshold in the color-selection logic
around the visible amber-tier condition so it uses the same rounded percentage
calculation as buildContent’s tooltip warning. Ensure values from 79.5% through
79.99% switch to amber consistently with the warning, while preserving the
existing color behavior for other ranges.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 0d14d10f-9524-4f79-ab93-55ed42e2f0ea
⛔ Files ignored due to path filters (7)
apps/ade-cli/package-lock.jsonis excluded by!**/package-lock.json,!**/package-lock.jsonapps/desktop/package-lock.jsonis excluded by!**/package-lock.json,!**/package-lock.jsondocs/features/agents/README.mdis excluded by!docs/**docs/features/chat/README.mdis excluded by!docs/**docs/features/chat/tool-system.mdis excluded by!docs/**docs/features/chat/transcript-and-turns.mdis excluded by!docs/**docs/logging.mdis excluded by!docs/**
📒 Files selected for processing (48)
apps/ade-cli/package.jsonapps/ade-cli/src/tuiClient/__tests__/ChatView.test.tsxapps/ade-cli/src/tuiClient/__tests__/adeApi.test.tsapps/ade-cli/src/tuiClient/__tests__/aggregate.test.tsapps/ade-cli/src/tuiClient/__tests__/appInput.test.tsapps/ade-cli/src/tuiClient/__tests__/format.test.tsapps/ade-cli/src/tuiClient/adeApi.tsapps/ade-cli/src/tuiClient/aggregate.tsapps/ade-cli/src/tuiClient/app.tsxapps/ade-cli/src/tuiClient/components/ChatView.tsxapps/ade-cli/src/tuiClient/format.tsapps/ade-cli/src/tuiClient/terminalReason.tsapps/desktop/package.jsonapps/desktop/src/main/services/chat/agentChatService.test.tsapps/desktop/src/main/services/chat/agentChatService.tsapps/desktop/src/main/services/chat/chatTextBatching.tsapps/desktop/src/main/services/chat/claudeAssistantTextDedup.test.tsapps/desktop/src/main/services/chat/contextCompactionEmitter.tsapps/desktop/src/renderer/components/chat/AgentChatMessageList.tsxapps/desktop/src/renderer/components/chat/AgentChatPane.test.tsxapps/desktop/src/renderer/components/chat/AgentChatPane.tsxapps/desktop/src/renderer/components/chat/ChatSubagentsPanel.tsxapps/desktop/src/renderer/components/chat/ContextCompactDivider.tsxapps/desktop/src/renderer/components/chat/GoalCard.test.tsxapps/desktop/src/renderer/components/chat/GoalCard.tsxapps/desktop/src/renderer/components/chat/SubagentActivityCards.tsxapps/desktop/src/renderer/components/chat/chatEventDisplay.test.tsapps/desktop/src/renderer/components/chat/chatEventDisplay.tsapps/desktop/src/renderer/components/chat/chatExecutionSummary.test.tsapps/desktop/src/renderer/components/chat/chatExecutionSummary.tsapps/desktop/src/renderer/components/chat/chatTranscriptRows.tsapps/desktop/src/renderer/components/chat/usage/ContextUsageDial.tsxapps/desktop/src/renderer/components/chat/usage/contextUsageModel.test.tsapps/desktop/src/shared/chatSubagents.test.tsapps/desktop/src/shared/chatSubagents.tsapps/desktop/src/shared/contextCompaction.tsapps/desktop/src/shared/types/chat.tsapps/ios/ADE/Models/RemoteModels.swiftapps/ios/ADE/Views/Work/WorkActivityIndicator.swiftapps/ios/ADE/Views/Work/WorkChatHeaderAndMessageViews.swiftapps/ios/ADE/Views/Work/WorkChatRichCardViews.swiftapps/ios/ADE/Views/Work/WorkChatSessionView.swiftapps/ios/ADE/Views/Work/WorkContextCompactDivider.swiftapps/ios/ADE/Views/Work/WorkErrorAndMessageHelpers.swiftapps/ios/ADE/Views/Work/WorkEventMapping.swiftapps/ios/ADE/Views/Work/WorkModels.swiftapps/ios/ADE/Views/Work/WorkTimelineHelpers.swiftapps/ios/ADETests/ADETests.swift
Summary
Validation
syncService.test.tsSummary by CodeRabbit
New Features
Bug Fixes
Greptile Summary
This PR integrates Claude Agent SDK 0.3.211 across desktop, ADE CLI, and iOS. The main changes are:
Confidence Score: 5/5
This PR appears safe to merge.
No review findings were identified. The highest-risk changes are in Claude service event normalization and compaction fallback, and they are guarded by state checks and covered by targeted tests.
No files require special attention.
What T-Rex did
Important Files Changed
Sequence Diagram
%%{init: {'theme': 'neutral'}}%% sequenceDiagram participant SDK as Claude Agent SDK 0.3.211 participant Service as agentChatService participant Store as Chat event log/session state participant Desktop as Desktop renderer participant CLI as ADE CLI TUI participant iOS as iOS Work timeline SDK->>Service: stream events (goal, context_usage, lifecycle, reset, result) Service->>Service: normalize terminal reasons, goals, compaction guardrail Service->>Store: emit shared AgentChatEvent envelopes Store-->>Desktop: transcript/session updates Store-->>CLI: transcript/session updates Store-->>iOS: remote event payloads Desktop->>Desktop: render goal cards, usage, resets, lifecycle notices CLI->>CLI: aggregate/render goal banner and lifecycle notices iOS->>iOS: decode/map work timeline rows Service->>SDK: issue /compact only at guarded turn boundary when fallback conditions hold%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% sequenceDiagram participant SDK as Claude Agent SDK 0.3.211 participant Service as agentChatService participant Store as Chat event log/session state participant Desktop as Desktop renderer participant CLI as ADE CLI TUI participant iOS as iOS Work timeline SDK->>Service: stream events (goal, context_usage, lifecycle, reset, result) Service->>Service: normalize terminal reasons, goals, compaction guardrail Service->>Store: emit shared AgentChatEvent envelopes Store-->>Desktop: transcript/session updates Store-->>CLI: transcript/session updates Store-->>iOS: remote event payloads Desktop->>Desktop: render goal cards, usage, resets, lifecycle notices CLI->>CLI: aggregate/render goal banner and lifecycle notices iOS->>iOS: decode/map work timeline rows Service->>SDK: issue /compact only at guarded turn boundary when fallback conditions holdReviews (1): Last reviewed commit: "fix(chat): align context dial warning th..." | Re-trigger Greptile