fix: resolve GUI TypeScript errors after dev data schema changes

- Update FeedbackButtons to transform modelTitle to modelName and add modelProvider
- Update streamNormalInput to use modelName instead of modelTitle
- Update editOutcomeLogger to use modelName throughout function signatures and return values

All dev data logs now consistently use modelName as required by CON-3401.
Resolves remaining CI failures from schema standardization changes.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Patrick Erichsen 2025-08-12 21:13:26 -07:00
parent b8e4e95487
commit ca3c8f288c
3 changed files with 9 additions and 6 deletions

View file

@ -21,10 +21,13 @@ export function FeedbackButtons({ item }: FeedbackButtonsProps) {
setFeedback(feedback);
if (item.promptLogs?.length) {
for (const promptLog of item.promptLogs) {
const { modelTitle, ...logData } = promptLog;
ideMessenger.post("devdata/log", {
name: "chatFeedback",
data: {
...promptLog,
...logData,
modelProvider: "unknown",
modelName: modelTitle,
feedback,
sessionId,
},

View file

@ -274,7 +274,7 @@ export const streamNormalInput = createAsyncThunk<
prompt: next.value.prompt,
completion: next.value.completion,
modelProvider: selectedChatModel.underlyingProviderName,
modelTitle: selectedChatModel.title,
modelName: selectedChatModel.title,
sessionId: state.session.id,
...(!!activeTools.length && {
tools: activeTools.map((tool) => tool.function.name),

View file

@ -7,7 +7,7 @@ import { store } from "../redux/store";
*/
function extractModelInfo(toolCallState: ToolCallState): {
modelProvider: string;
modelTitle: string;
modelName: string;
} {
// Get the conversation history to find the model info
const history = store.getState().session.history;
@ -28,7 +28,7 @@ function extractModelInfo(toolCallState: ToolCallState): {
const modelParts = String(assistantMessage.message.model).split("::");
return {
modelProvider: modelParts[0] || "unknown",
modelTitle: modelParts[1] || String(assistantMessage.message.model),
modelName: modelParts[1] || String(assistantMessage.message.model),
};
}
@ -38,7 +38,7 @@ function extractModelInfo(toolCallState: ToolCallState): {
return {
modelProvider: chatModel?.provider || "unknown",
modelTitle: chatModel?.model || "unknown",
modelName: chatModel?.model || "unknown",
};
}
@ -153,7 +153,7 @@ export function assembleEditOutcomeData(
streamId: applyState.streamId,
timestamp: new Date().toISOString(),
modelProvider: modelInfo.modelProvider,
modelTitle: modelInfo.modelTitle,
modelName: modelInfo.modelName,
prompt: promptAndCompletion.prompt,
completion: promptAndCompletion.completion,
previousCode: codeChanges.previousCode,