@kolbo/mcp 1.75.6 → 1.75.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -133,9 +133,18 @@ function boot(sc) {
|
|
|
133
133
|
makeExpandable(el('prompt'));
|
|
134
134
|
renderChips(sc);
|
|
135
135
|
el('credits').textContent = sc.credits_used != null ? fmtCredits(sc.credits_used) : '';
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
// Every legitimate completed payload sets phase:'completed' explicitly
|
|
137
|
+
// (uiCompleted, completedFromPlain, the visual_dna character-sheet path) —
|
|
138
|
+
// there is no real case where "no media yet" should render as a result.
|
|
139
|
+
// A host that sends some OTHER phase string here (e.g. a host-side
|
|
140
|
+
// pre-flight envelope built before the tool call even ran) used to fall
|
|
141
|
+
// through straight to renderResult with no urls/scenes, rendering as a
|
|
142
|
+
// broken/empty "completed" card — indistinguishable from a real failure —
|
|
143
|
+
// for however long that phase lingered. Default anything unrecognized to
|
|
144
|
+
// "still working" instead of assuming it's done.
|
|
145
|
+
if (sc.phase === 'failed') renderError(sc.error || 'Generation failed');
|
|
146
|
+
else if (sc.phase === 'completed') renderResult(sc);
|
|
147
|
+
else renderGenerating(sc);
|
|
139
148
|
window.kolbo.notifySize();
|
|
140
149
|
}
|
|
141
150
|
|