Skip to content

Commit d1b34c7

Browse files
committed
Fixed: Remove unnecessary variables
1 parent 9697f6f commit d1b34c7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/api/providers/human-relay.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ function getMessageContent(message: Anthropic.Messages.MessageParam): string {
113113

114114
// Elevate lastAIResponse variable to module level to maintain state between multiple calls
115115
let lastAIResponse: string | null = null
116-
let thispromptText: string | null = null
117116
// Add normalized cache to avoid repeatedly processing the same content
118117
let normalizedPrompt: string | null = null
119118
let normalizedLastResponse: string | null = null
@@ -150,7 +149,6 @@ function isTextEqual(str1: string | null, str2: string | null): boolean {
150149
async function showHumanRelayDialog(promptText: string, options?: ApiHandlerOptions): Promise<string | undefined> {
151150
// Save initial clipboard content for comparison
152151
const initialClipboardContent = await vscode.env.clipboard.readText()
153-
thispromptText = promptText
154152
// Pre-normalize prompt text to avoid repeated processing during polling
155153
normalizedPrompt = normalizeText(promptText)
156154

0 commit comments

Comments
 (0)