fix(ui): show real contents in optimistic image messages and widen settings chip

Use the user-visible contents (without injected image-mode settings) for the
optimistic agent messages so the settings blob is not echoed in the thread.
Widen the composer settings chip to 150px so longer labels are not clipped.
Also picks up regenerated next-env.d.ts and tsbuildinfo.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-09 01:10:17 +08:00
parent 9a07f863ea
commit 453de420fc
4 changed files with 5 additions and 4 deletions
@@ -241,7 +241,7 @@
}
.composer-settings-chip {
max-width: 112px;
max-width: 150px;
padding: 0 8px;
overflow: hidden;
white-space: nowrap;
@@ -2562,6 +2562,7 @@ export function CanvasWorkspace({ projectId }: { projectId: string }) {
activeMode === "image"
? withImageModeSettings(baseContents, composerImageSettings, t, selectedGeneratorNode?.id)
: baseContents;
const visibleContents = activeMode === "image" ? baseContents : contents;
if (!project || !hasUserText) return;
const selectedThreadId = selectedAgentThreadIdRef.current;
const reusableAgentThreadId =
@@ -2594,7 +2595,7 @@ export function CanvasWorkspace({ projectId }: { projectId: string }) {
if (source === "image-generator") {
imageGeneratorThreadIdsRef.current.add(threadId);
} else {
setMessages((current) => [...current, ...createOptimisticAgentMessages(threadId, contents)]);
setMessages((current) => [...current, ...createOptimisticAgentMessages(threadId, visibleContents)]);
}
try {
if (dirty) {