Elyra
Elyra The coding agent eTerm The terminal that knows where each command ends Huskarl AI colleagues on your own Mac Starf An activity monitor for Apple silicon that never invents a number etrans An SSH and SFTP client for macOS Elyra VM Virtual machines for macOS, Linux and Windows on your Mac Litr A small, native web browser for macOS Notr A notebook for macOS e The native code editor Elyra Grove Native local development environment Askr The real server for Laravel & PHP Elyra Framework Rust + Svelte 5 framework for desktop apps Elyra Conductor Local project conductor Refr Local-first PDF workspace for macOS Elyra Workspace A desktop workspace for coding agents eDock A container runtime for the Mac Elyra SQL Server MySQL-compatible SQL server in Rust Elyra Félagi Agents as teammates on one board Elyra SQL Client Native desktop SQL workbench Elyra SQL Anywhere Replication-ready SQL engine Elyra Sjá SEO & GEO workspace for macOS Elyra DataGrid Server-driven data grid for Laravel
Reference
Ratatosk CLI
Roadmap
RFC 0001: make:resource
RFC 0002: live queries
RFC 0003: MCP server
RFC 0004: MCP resource templates
RFC 0005: a Laravel backend
RFC 0006: Laravel broadcasting
RFC 0007: offline and sync
RFC 0008: Laravel notifications
RFC 0009: Files
RFC 0010: Laravel abilities
RFC 0011: an assistant in the app
RFC 0012: @elyra/ui
RFC 0013: the assistant sees the window
RFC 0014: Elyra Inspector
RFC 0015: presence
RFC 0016: capabilities per window
RFC 0017: record invalidation
RFC 0018: the assistant's answer, streamed
RFC 0019: a window from the tray
RFC 0020: an app that stays in the tray
RFC 0021: a server chosen at sign-in
RFC 0022: signed in to more than one server
RFC 0023: private channels a window listens to
RFC 0024: updates from the backend
RFC 0025: commands and configuration
RFC 0026: the running app, for coding agents
RFC 0027: the assistant's code mode
RFC 0028: the tray's icon, and the app's
RFC 0029: installers
RFC 0030: the app's identity on Windows
RFC 0031: a token per workspace
RFC 0032: the microphone
RFC 0033: diagnostics the user can send
RFC 0034: one screen in several states at once
RFC 0035: point at it, and hand it to the agent
RFC 0036: rata check, the app checked as a whole
RFC 0037: Theme Studio
RFC 0038: edit it in its own app
RFC 0039: a write shown at once in every window
RFC 0040: the two halves agree
RFC 0041: Quick Look
RFC 0042: follow a colleague
RFC 0043: every write seen
RFC 0044: composite keys
RFC 0045: bigint all the way
RFC 0046: pivot columns
RFC 0047: relations on any key
RFC 0048: more providers
RFC 0049: OpenAI web search
RFC 0050: integer-keyed arguments
RFC 0051: citations
RFC 0052: open documents
RFC 0053: exit hooks
RFC 0054: the gui feature
Release notes
Changelog
Elyra
RFC 0033 — Diagnostics the user can send

RFC 0033 — Diagnostics the user can send

Status: implemented (2026-11-19) · Target: 0.48.0 · builds on RFC 0014 and RFC 0026 · see Decisions

Summary

When something goes wrong in a shipped app, the developer asks the user "which version, which system, what did the log say?", and the user can't answer. This gives every Elyra app one file the user can save, read and attach to an email or a ticket: what the app is, where it runs, how it's connected, and what happened just before.

App::new()
    .diagnostics()                                  // Help → Save Diagnostics…
import { diagnostics } from "@elyra/runtime";

await diagnostics.save();      // the save dialog; the file's path, or null
const text = await diagnostics.text();   // the same, for a "Report a problem" form

The file is plain text the user can open and read before they send it. Nothing leaves the machine unless the user sends it.

Motivation

  • A released build is a black box. rata mcp dev (RFC 0026) and the inspector (RFC 0014) see a debug build on the developer's machine. On a user's machine there's a release build and, unless the app set up LogProvider::to_app_dir, which rata new doesn't, no log on disk.
  • What's asked for is the same every time: the app's version and Elyra's, the OS and its version, the webview's version, whether the app is online and signed in, which server, whether writes are waiting in the outbox, and the last errors.
  • What's sent must be safe to send. A log copied by hand carries tokens, URLs with signatures and the user's home folder. The bundle is built to leave those out, and the user can see that it did.

Current state (0.47)

  • elyra::log writes to stderr, and to a rotating file only with LogProvider::to_path / to_app_dir. A panic is logged at error level.
  • Secret<T> redacts its Debug. Nothing redacts a log line.
  • The about box (AboutInfo) has the app's name and version.
  • The outbox knows its counts (Outbox::counts()), the backend its servers and whether there's a token, and the connection whether it's online. Nothing puts them in one place.
  • The page's own errors (an exception in a component, a rejected promise) go to the webview's console, which a user of a release build can't open.

Design

What's in it

One UTF-8 text file, <app-slug>-diagnostics-<yyyy-mm-dd-hhmm>.txt, with sections in this order:

Elyra diagnostics — Acme Notes 2.3.1
Saved 2026-11-19 14:02 +01:00

## App
name: Acme Notes · version: 2.3.1 · identifier: com.acme.notes
elyra: 0.48.0 · build: release · features: backend, database, tray, updater

## System
os: macOS 16.1 (25B78) · arch: aarch64 · locale: nb-NO
webview: WKWebView 621.1 · screens: 2 (1.0x, 2.0x) · dark mode: on
uptime: 3 h 12 min · memory: 212 MB

## Connection
online: yes · server: https://api.acme.example (1 of 2) · signed in: yes
live channel: connected · last sync: 14:01:55

## Outbox
waiting: 3 (customers: 2, invoices: 1) · refused: 1
refused: invoices #881 update — 422 "The due date must be after the issue date."

## Updates
channel: stable · checked: 13:40 · newest: 2.3.1 (this one)

## Windows
main (shown, /customers/7) · settings (hidden)

## The page
14:01:58 Error  TypeError: Cannot read properties of undefined (reading 'id')
                at CustomerCard.svelte:41
14:01:58 Error  an answer from /api/customers/7 was not JSON

## Log (the last 300 lines)
14:00:02 INFO  elyra::backend  signed in
14:01:58 WARN  elyra::backend  GET /api/customers/7: 500
…

## From the app
(sections the app added)
  • The log is always there. The shell keeps the last 1,000 records in memory, whatever the sinks, so an app without a log file still has one to send. With a file sink, the bundle reads from the file and can reach back further (the last 300 lines by default).

  • The page's errors are there. @elyra/runtime sends each uncaught error and unhandled rejection (message, the first stack frame) to the shell as it happens, and the shell keeps the last 50. In a release build, that's the only place they can be seen. Each is also written to the log at error level, with the target page, so a log file and rata mcp dev's last_error have them too.

  • An app adds its own sections:

    App::new().diagnostics_with(|d| {
        d.section("Sync", format!("last full sync: {}", store.last_full_sync()));
    })
    

What's never in it

  • Tokens, keys and secrets. Nothing from the keychain, the bearer token or Secret<T>. The log lines are redacted on the way in: Bearer …, Authorization: …, token=, signature=, password=, and the query string of a signed URL become •••.
  • The user's data. No records, no outbox payloads (only the resource, the id, the operation and the server's message), no clipboard, no files, and no picture of the window.
  • The user's home folder. Paths under it start with ~.
  • Who the user is, unless the app adds it in its own section: the bundle says "signed in: yes", not as whom.

Where the user finds it

  • App::diagnostics() adds Help → Save Diagnostics… to the app menu (on macOS, and in the window menu on Windows and Linux). It opens the save dialog and, once saved, shows the file in Finder or Explorer.
  • diagnostics.save() and diagnostics.text() in @elyra/runtime, for an app's own "Report a problem" screen. text() returns what the file would hold, so a form can show it and send it to the app's server.
  • The tray menu, for an app that lives there: TrayConfig::diagnostics().

Without App::diagnostics(), the routes answer that diagnostics are off, and the runtime's calls throw. An app that doesn't want the feature, or has its own, doesn't get a menu item it didn't ask for.

Sending it

This RFC stops at a file the user sends themselves. A Route::elyraDiagnostics() in the Laravel package, which takes the text from a signed-in user and stores it for the team, is the obvious next step. It's listed under Not in this RFC so the format can settle first.

Security

  • Nothing is sent by the framework. The bundle is written where the user saves it, or handed to the page that asked. Sending it is the user's act, or the app's own code.
  • Only the app's own windows can ask. The routes are the shell's, behind the same origin and capability checks as every other one (diagnostics is a capability, granted by App::diagnostics()).
  • Redaction is tested against the log the framework writes, not only against made-up lines: a test signs in, uploads, gets a signed URL and a 422, then checks the bundle for the token, the signature and the password.
  • The user can read it. It's plain text, not an archive, so what's sent is what they saw.

Implementation plan

  1. elyra::log: an in-memory ring of the last 1,000 records, always on; the redaction, applied when a record is written to any sink.
  2. framework/src/diagnostics.rs: the sections, built from what the container has (Backend, Outbox, Updater, the windows), the system's facts (OS, arch, locale, the webview's version from wry), and the app's own sections.
  3. The routes /__diagnostics/text and /__diagnostics/save, the capability, App::diagnostics() / diagnostics_with(..), the menu item and TrayConfig::diagnostics().
  4. @elyra/runtime: window.onerror and unhandledrejection, each error sent to the shell as it happens (/__page-error), which keeps the last 50 and logs it; diagnostics.text() and diagnostics.save().
  5. Docs (docs/diagnostics.md, the security page), the elyra skill and guidelines for rata ai:install, and the example app.

Testing

  • Rust: each section from a container with and without the parts (no backend, offline, an outbox with refused writes); the ring keeps the last 1,000; the redaction on the patterns above and on the framework's own log lines; ~ for the home folder; the capability refused without App::diagnostics().
  • An end-to-end test against the fake backend: sign in, fail a write, make the bundle, and find the 422 in it and the token nowhere.
  • @elyra/runtime (Vitest): errors and rejections sent, with their first frame, at most 20 a minute; the calls' errors without the capability.
  • CI's three platforms: the unit tests make the file on each, and its System section names the OS.

As built (0.48.0)

Where the implementation differs from the design above:

  • The page's errors are kept by the shell, not the runtime: each is sent as it happens, so Help → Save Diagnostics… has them without asking a page. The runtime sends at most 20 a minute, and not the same one twice within two seconds.
  • No memory figure in the System section: it needs a platform call on each OS, and can follow.
  • The Updates section says where updates come from, when the last check this run was and what it found, and a version installed and waiting for a restart. There's no update channel to name.
  • The Connection section has no "last sync": nothing keeps one yet.
  • App::diagnostics() needs elyra's system feature, for the save dialog; without it the app doesn't start (a configuration problem).
  • elyra::diagnostics::text(&ctx) gives Rust the same text as diagnostics.text().
  • The CI check is the unit tests making the file on all three platforms, not the bundle inspect run, which ends before the app has a container.

Not in this RFC

  • Sending it to the app's server (Route::elyraDiagnostics() in the Laravel package) or to a service such as Sentry.
  • Crash reports: a native crash (not a panic) that ends the process before anything can be written.
  • A picture of the window, or the page's DOM.
  • Collecting it without the user (telemetry).

Alternatives considered

  • A zip with the log files, the config and a screenshot. More for the developer, but the user can't see what's in it, and a screenshot is the user's data. Plain text the user can read keeps the trust that makes them send it.
  • Telling users where the log file is. Only works when the app has a file sink, finds no page errors, and sends the tokens with it.
  • Built into every app, without App::diagnostics(). Simpler, but it adds a menu item and a capability an app didn't choose.

Decisions

  1. Opt-in, with App::diagnostics(). An app gets no menu item and no capability it didn't ask for; one with its own way of reporting keeps it.
  2. Plain text. The user can open the file and read what they're about to send, and that's what makes them willing to send it. A server that wants fields can parse the sections' key: value lines.
  3. The in-memory log is always on. The last 1,000 records, whatever the sinks and with or without App::diagnostics(): it costs a few hundred KB, and the log is there for whatever asks for it next.
  4. "Save Diagnostics…". It says what happens: a file is saved. "Report a Problem…" would promise that something is sent.
  5. Who the user is stays out, unless the app adds it in its own section. "Signed in: yes" is enough to tell most problems apart, and the user decides whether to say who they are.
  6. The page's errors are kept in a debug build too, in the same buffer, and rata mcp dev's last_error shows them with the log's: an agent working on the app sees the exception a component threw.