From 7831cba9f60307d8bc10c1454546e07f955349ab Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Tue, 20 Jan 2026 11:02:52 +0800 Subject: [PATCH] refactor(claude): remove redundant system instructions check in Claude executor --- internal/runtime/executor/claude_executor.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/runtime/executor/claude_executor.go b/internal/runtime/executor/claude_executor.go index 8e0d15a6..9d8ad260 100644 --- a/internal/runtime/executor/claude_executor.go +++ b/internal/runtime/executor/claude_executor.go @@ -110,10 +110,6 @@ func (e *ClaudeExecutor) Execute(ctx context.Context, auth *cliproxyauth.Auth, r return resp, err } - if !strings.HasPrefix(baseModel, "claude-3-5-haiku") { - body = checkSystemInstructions(body) - } - // Apply cloaking (system prompt injection, fake user ID, sensitive word obfuscation) // based on client type and configuration. body = applyCloaking(ctx, e.cfg, auth, body, baseModel) @@ -245,8 +241,6 @@ func (e *ClaudeExecutor) ExecuteStream(ctx context.Context, auth *cliproxyauth.A return nil, err } - body = checkSystemInstructions(body) - // Apply cloaking (system prompt injection, fake user ID, sensitive word obfuscation) // based on client type and configuration. body = applyCloaking(ctx, e.cfg, auth, body, baseModel)