Result Glyph

Execution output display. Shows stdout, stderr, and errors from glyph execution.

Spawning

Result glyphs are not user-spawned. They are created automatically when a py, ts, or prompt glyph executes. The result auto-melds below its parent glyph via autoMeldResultBelow.

Structure

Close behavior

Closing a result that is inside a melded composition unmelds the entire composition first (via unmeldComposition), then removes the result element.

Meld position

Result receives bottom connections from py and prompt glyphs. It can also chain downward to other result glyphs (bottom → result).

Chaining

Result glyphs chain via bottom meld edges for conversational follow-ups. A hover-reveal input appears at the bottom edge of a result; typing a follow-up and pressing Enter sends the previous output plus the new prompt to the LLM, spawning a chained result below. Chains extend indefinitely through melded compositions.

Content persistence

The ExecutionResult object is JSON-serialized into the glyph's content field for persistence across page reloads. updateResultGlyphContent updates an existing result in-place when re-execution occurs.

Files

FileRole
web/ts/components/glyph/result-glyph.tsGlyph factory, createResultGlyph, updateResultGlyphContent
web/ts/components/glyph/meld/auto-meld-result.tsAuto-meld helper used by py/ts/prompt glyphs
web/ts/components/glyph/result-glyph.dom.test.tsDOM structure tests
web/ts/components/glyph/result-drag.test.tsDrag behavior tests