Execution output display. Shows stdout, stderr, and errors from glyph execution.
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.
{n}ms), expand-to-window button (not yet implemented, #440), close buttonpre-wrap container showing stdout (default color), stderr (error color), errors (bold error color)Closing a result that is inside a melded composition unmelds the entire composition first (via unmeldComposition), then removes the result element.
Result receives bottom connections from py and prompt glyphs. It can also chain downward to other result glyphs (bottom → result).
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.
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.
| File | Role |
|---|---|
web/ts/components/glyph/result-glyph.ts | Glyph factory, createResultGlyph, updateResultGlyphContent |
web/ts/components/glyph/meld/auto-meld-result.ts | Auto-meld helper used by py/ts/prompt glyphs |
web/ts/components/glyph/result-glyph.dom.test.ts | DOM structure tests |
web/ts/components/glyph/result-drag.test.ts | Drag behavior tests |