Skip to content

Commit 7ffed19

Browse files
fix: restore Claude Code in provider picker, preserve turn error status, deduplicate summarizeToolOutput call
- Add Claude Code back to COMING_SOON_PROVIDER_OPTIONS so it renders with a 'Coming soon' badge instead of vanishing from the picker - Remove redundant session status/activeTurnId/updatedAt overwrite in sendTurn that was masking the error status set by completeTurn - Cache summarizeToolOutput result in a local variable to avoid calling the function twice on the same input Co-authored-by: Julius Marminge <juliusmarminge@users.noreply.github.com>
1 parent 05f4cb2 commit 7ffed19

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

apps/server/src/provider/Layers/CursorAdapter.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,7 @@ function makeCursorAdapter(options?: CursorAdapterLiveOptions) {
752752
const title = trackedTool?.title ?? titleForItemType(itemType);
753753
const stamp = yield* makeEventStamp();
754754
const eventType = update.status === "completed" ? "item.completed" : "item.updated";
755+
const toolSummary = summarizeToolOutput(update.rawOutput);
755756
yield* offerRuntimeEvent({
756757
...base,
757758
type: eventType,
@@ -763,9 +764,7 @@ function makeCursorAdapter(options?: CursorAdapterLiveOptions) {
763764
itemType,
764765
status,
765766
title,
766-
...(summarizeToolOutput(update.rawOutput)
767-
? { detail: summarizeToolOutput(update.rawOutput) }
768-
: {}),
767+
...(toolSummary ? { detail: toolSummary } : {}),
769768
...(update.rawOutput !== undefined ? { data: update.rawOutput } : {}),
770769
},
771770
});
@@ -1351,9 +1350,6 @@ function makeCursorAdapter(options?: CursorAdapterLiveOptions) {
13511350

13521351
context.session = {
13531352
...context.session,
1354-
status: "ready",
1355-
activeTurnId: undefined,
1356-
updatedAt: yield* nowIso,
13571353
resumeCursor: {
13581354
acpSessionId: context.acpSessionId,
13591355
},

apps/web/src/components/ChatView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5280,6 +5280,7 @@ const MessagesTimeline = memo(function MessagesTimeline({
52805280

52815281
const AVAILABLE_PROVIDER_OPTIONS = PROVIDER_OPTIONS.filter((option) => option.available);
52825282
const COMING_SOON_PROVIDER_OPTIONS = [
5283+
{ id: "claudeCode", label: "Claude Code", icon: ClaudeAI },
52835284
{ id: "opencode", label: "OpenCode", icon: OpenCodeIcon },
52845285
{ id: "gemini", label: "Gemini", icon: Gemini },
52855286
] as const;

0 commit comments

Comments
 (0)