Skip to content

Commit f67df67

Browse files
OBennerclaude
andcommitted
fix: rename release identifier from auto-claude to auto-code in Sentry
Also update test_model_resolution.py to use glm-5 as custom model fixture (avoids overlap with any future glm-4.x model ID in auto-detection). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c793ca3 commit f67df67

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

apps/backend/core/sentry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def init_sentry(
262262
sentry_sdk.init(
263263
dsn=dsn,
264264
environment=environment,
265-
release=f"auto-claude@{version}",
265+
release=f"auto-code@{version}",
266266
traces_sample_rate=traces_sample_rate,
267267
before_send=_before_send,
268268
integrations=[logging_integration],
@@ -285,7 +285,7 @@ def init_sentry(
285285

286286
_sentry_enabled = True
287287
logger.info(
288-
f"[Sentry] Backend initialized (component: {component}, release: auto-claude@{version}, traces: {traces_sample_rate})"
288+
f"[Sentry] Backend initialized (component: {component}, release: auto-code@{version}, traces: {traces_sample_rate})"
289289
)
290290

291291
return True

apps/frontend/src/main/sentry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function initSentryMain(): void {
123123
Sentry.init({
124124
dsn: cachedDsn,
125125
environment: app.isPackaged ? 'production' : 'development',
126-
release: `auto-claude@${app.getVersion()}`,
126+
release: `auto-code@${app.getVersion()}`,
127127

128128
beforeSend(event: Sentry.ErrorEvent) {
129129
if (!sentryEnabledState) {

tests/test_model_resolution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def test_resolves_haiku_shorthand_to_full_id(self, clean_env):
114114

115115
def test_passes_through_full_model_id(self):
116116
"""Full model IDs are passed through unchanged."""
117-
custom_model = "glm-4.7"
117+
custom_model = "glm-5"
118118
result = resolve_model_id(custom_model)
119119
assert result == custom_model
120120

@@ -126,7 +126,7 @@ def test_passes_through_unknown_shorthand(self):
126126

127127
def test_environment_variable_override_sonnet(self):
128128
"""ANTHROPIC_DEFAULT_SONNET_MODEL overrides sonnet shorthand."""
129-
custom_model = "glm-4.7"
129+
custom_model = "glm-5"
130130
with patch.dict(os.environ, {"ANTHROPIC_DEFAULT_SONNET_MODEL": custom_model}):
131131
result = resolve_model_id("sonnet")
132132
assert result == custom_model

0 commit comments

Comments
 (0)