fix(types/openai): correct GPT-5 Pro description typos/grammar; perf(core/task): avoid full-state refresh on each background status chunk to reduce re-renders

This commit is contained in:
Hannes Rudolph 2025-10-24 20:46:15 -06:00
parent 50242b4ee9
commit 9803d434a6
2 changed files with 2 additions and 5 deletions

View file

@ -57,7 +57,7 @@ export const openAiNativeModels = {
inputPrice: 15.0,
outputPrice: 120.0,
description:
"GPT-5 Pro: A slow, reasoning-focused model for complex problems. Uses background mode with resilient streaming - requests may somte time and will automatically reconnect if they timeout.",
"GPT-5 Pro: A slow, reasoning-focused model for complex problems. Uses background mode with resilient streaming — requests may take some time and will automatically reconnect if they time out.",
supportsVerbosity: true,
supportsTemperature: false,
backgroundMode: true,

View file

@ -2625,11 +2625,8 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
if (chunk.responseId) {
;(apiReqMsg as any).metadata.responseId = chunk.responseId
}
// Temporary debug to confirm UI metadata updates
// Update the specific message; avoid full-state refresh on every status chunk to reduce re-renders
await this.updateClineMessage(apiReqMsg)
// Force state refresh to ensure UI recomputes derived labels/memos
const provider = this.providerRef.deref()
await provider?.postStateToWebview()
}
} catch {}
break