Skip to content

Commit b6eac8b

Browse files
fix: prefer requested_model over SDK-resolved model in status bar
chat/page.tsx used statusData.model (the SDK's resolved wire ID like claude-opus-4-20250514) instead of statusData.requested_model (the alias the user selected). This caused the "Connected (...)" status to flash a stale/misleading model ID. useSSEStream.ts already had the correct priority — this aligns chat/page.tsx to match. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 790c553 commit b6eac8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/chat/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export default function NewChatPage() {
260260
try {
261261
const statusData = JSON.parse(event.data);
262262
if (statusData.session_id) {
263-
setStatusText(`Connected (${statusData.model || 'claude'})`);
263+
setStatusText(`Connected (${statusData.requested_model || statusData.model || 'claude'})`);
264264
setTimeout(() => setStatusText(undefined), 2000);
265265
} else if (statusData.notification) {
266266
setStatusText(statusData.message || statusData.title || undefined);

0 commit comments

Comments
 (0)