This commit is contained in:
Enrico Ros
2026-03-27 06:48:36 -07:00
parent 5ebbe45a63
commit 51e23ad3a4
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -101,7 +101,7 @@ export class ContentReassembler {
if (this._terminationReason === 'done-dialect')
while (this.removeLastVoidPlaceholder()) {} // [PH-LIFECYCLE]
// - mark as completed or errorer
// - mark as completed or errored
for (const fragment of this.accumulator.fragments)
if (isVoidPlaceholderFragment(fragment) && fragment.part.opLog?.length)
for (const entry of fragment.part.opLog) {
@@ -613,7 +613,7 @@ export class ContentReassembler {
private onSetOperationState(os: Extract<AixWire_Particles.PartParticleOp, { p: 'vp' }>): void {
// This operation does not require removal of exisitng VoidPlaceholder fragments, as it recycles the last one if any
// This operation does not require removal of existing VoidPlaceholder fragments, as it recycles the last one if any
// destructure
const { text, mot, opId, state, parentOpId, iTexts, oTexts } = os;
+1 -1
View File
@@ -748,7 +748,7 @@ export namespace AixWire_Particles {
| { p: 'ii', mimeType: string, i_b64: string, label?: string, generator?: string, prompt?: string, hintSkipResize?: boolean } // inline image, complete
/**
* Model Operation - tracks instant model's operation(s) state, primarily for hosted tools.
* - state is 'ative' unless specified otherwise, 'error' is done too
* - state is 'active' unless specified otherwise, 'error' is done too
* - shall be called 'mos' but for legacy/compatibility it's still 'vp' (backwards comp to simple void placeholder particles)
*/
| { p: /*'mo'*/ 'vp', opId: string, text: string, mot: 'search-web' | 'gen-image' | 'code-exec', state?: 'done' | 'error', parentOpId?: string, iTexts?: string[], oTexts?: string[] }
@@ -12,7 +12,7 @@ export interface IParticleTransmitter {
/** Set the end reason - only use for 'done-dialect' to signal a dialect-close */
setDialectEnded(reason: ParticleCGDialectEndReason): void;
/** End the current part and flush it, which also calls `setDialectEnded('issue-dialct')` */
/** End the current part and flush it, which also calls `setDialectEnded('issue-dialect')` */
setDialectTerminatingIssue(dialectText: string, symbol: string | null, serverLog: ParticleServerLogLevel): void;
/** Communicates the finish reason to the client - Data only, this does not do Control, like the above */