Summary
Claude Code 설정 페이지 (#claude)의 "Background helper model" 드롭다운에서 gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna 모델들이 [object Object]로 표시됩니다. 다른 모델들은 정상적으로 이름이 보입니다.
Reproduction
ocx start 로 프록시 실행
- 대시보드
http://localhost:10100/#claude 접속
- "Background helper model" 드롭다운 클릭
[object Object]라고 표시된 옵션 4개 확인
Version
2.7.42
Root cause
gui/src/pages/ClaudeCode.tsx:72:
const options = (state?.available ?? []).map(m => ({ value: m, label: String(modelLabel(m)) }));
modelLabel() (gui/src/model-display.ts:30)은 gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna에 대해 SVG 아이콘이 포함된 React element (createElement(...))를 반환합니다. String()으로 감싸면 React element가 [object Object]로 변환됩니다. 다른 모델들은 plain string을 반환하므로 문제없습니다.
Fix
String() 제거 (SelectOption.label 타입이 이미 React.ReactNode):
- .map(m => ({ value: m, label: String(modelLabel(m)) }));
+ .map(m => ({ value: m, label: modelLabel(m) }));
Translated Message
Original language: Korean
Summary
In the Claude Code settings page (#claude), the "Background helper model" dropdown displays the models gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna as [object Object]. Other models display their names correctly.
Reproduction
- Run the proxy with
ocx start
- Access the dashboard at
http://localhost:10100/#claude
- Click on the "Background helper model" dropdown
- Confirm the presence of 4 options displaying as
[object Object]
Version
2.7.42
Root cause
In gui/src/pages/ClaudeCode.tsx:72:
const options = (state?.available ?? []).map(m => ({ value: m, label: String(modelLabel(m)) }));
The function modelLabel() (found in gui/src/model-display.ts:30) returns a React element with an SVG icon for gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna. When wrapped with String(), the React element converts to [object Object]. Other models return a plain string, so there is no issue.
Fix
Remove String() (since SelectOption.label type is already React.ReactNode):
- .map(m => ({ value: m, label: String(modelLabel(m)) });
+ .map(m => ({ value: m, label: modelLabel(m) });
Summary
Claude Code 설정 페이지 (
#claude)의 "Background helper model" 드롭다운에서gpt-5.6-sol,gpt-5.6-terra,gpt-5.6-luna모델들이[object Object]로 표시됩니다. 다른 모델들은 정상적으로 이름이 보입니다.Reproduction
ocx start로 프록시 실행http://localhost:10100/#claude접속[object Object]라고 표시된 옵션 4개 확인Version
2.7.42Root cause
gui/src/pages/ClaudeCode.tsx:72:modelLabel()(gui/src/model-display.ts:30)은gpt-5.6-sol,gpt-5.6-terra,gpt-5.6-luna에 대해 SVG 아이콘이 포함된 React element (createElement(...))를 반환합니다.String()으로 감싸면 React element가[object Object]로 변환됩니다. 다른 모델들은 plain string을 반환하므로 문제없습니다.Fix
String()제거 (SelectOption.label타입이 이미React.ReactNode):Translated Message
Original language: Korean
Summary
In the Claude Code settings page (
#claude), the "Background helper model" dropdown displays the modelsgpt-5.6-sol,gpt-5.6-terra,gpt-5.6-lunaas[object Object]. Other models display their names correctly.Reproduction
ocx starthttp://localhost:10100/#claude[object Object]Version
2.7.42Root cause
In
gui/src/pages/ClaudeCode.tsx:72:The function
modelLabel()(found ingui/src/model-display.ts:30) returns a React element with an SVG icon forgpt-5.6-sol,gpt-5.6-terra,gpt-5.6-luna. When wrapped withString(), the React element converts to[object Object]. Other models return a plain string, so there is no issue.Fix
Remove
String()(sinceSelectOption.labeltype is alreadyReact.ReactNode):