Lagrantis.Ux WORKBENCH
Theme · Light Notifications

Renderers

Markdown prose · IDE-grade code blocks · ANSI terminal with auto-follow.

Markdown prose (.lg-md)

Renders CommonMark + GitHub-flavored tables/tasks/autolinks through Markdig. HTML is sanitized by default; pass TrustHtml="true" only for trusted authors.

Agent response

The agent ran dotnet test against the candidate branch. Three of the five suites passed.

Heads up: the failing suite (Lagrantis.Ux.Tests > AccentSwitcherTests) depends on prefers-color-scheme, which isn't set by the test harness. Either inject a fake or pin the theme in the test fixture.

Findings

Suite Tests Failed
Lagrantis.Ooxml.Tests 142 0
Lagrantis.Ooxml.Render.Tests 88 0
Lagrantis.Ux.Tests 14 2

Next steps:

  • Pin theme in the test fixture
  • Add a regression test for the [data-theme] cascade
  • Re-run the Aspose comparison — deferred to phase 11

For more, see the test report.

Code block (.lg-code)

IDE-grade fenced block — language tag, optional file path, copy button, tabular line-number gutter. Syntax token classes (.tok-keyword, .tok-string, …) map to --syntax-* tokens. Wire any highlighter (Prism, Shiki, highlight.js) to emit them.

csharpsrc/Lagrantis.Ux/Services/AgentRunner.cs
public async Task<RunResult> RunAsync(AgentRequest req, CancellationToken ct)
{
    // Pre-flight: the worktree must be clean. We don't reset implicitly —
    // that's lost work the user didn't ask us to discard.
    if (await _git.HasUncommittedAsync(req.WorktreePath, ct))
        return RunResult.Refused("worktree is dirty");

    using var session = await _sessions.CreateAsync(req, ct);
    await foreach (var token in _provider.StreamAsync(req, ct))
    {
        await _hub.Clients
            .Group(session.Id)
            .OnAgentToken(token);
    }
    return RunResult.Completed(session.Id);
}

Terminal (.lg-terminal)

ANSI-colored stdout with the design-system scroll contract: auto-follow on, suspend on user scroll >48px, re-engage via the ↓ LIVE pill, and protection while a selection is active. Press End to jump to live.

[12:42:01] Agent starting session s-482 [12:42:01] provider=claude-opus-4-7 mode=Plan [12:42:02] worktree clean [12:42:03] clone shallow [12:42:05] running dotnet build Determining projects to restore... Restored 13 projects in 421 ms. Lagrantis.Ooxml -> bin/Debug/net10.0/Lagrantis.Ooxml.dll Lagrantis.Ux -> bin/Debug/net10.0/Lagrantis.Ux.dll [12:42:18] build succeeded [12:42:19] running dotnet test Passed! - Failed: 0, Passed: 142, Skipped: 0, Total: 142 Passed! - Failed: 0, Passed: 88, Skipped: 0, Total: 88 Failed! - Failed: 2, Passed: 12, Skipped: 0, Total: 14 [12:43:02] 2 test failures — see report for details

Design-system primitives — quick reference

CACHED TRANSFORM FORMAT LOOKUP META FAILED RUNNING
running queued waiting failed completed muted

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.