Repository navigation
Agent: a startup failure window that says the failure plainly - #1594
Merged
Merged
Conversation
The review round (tri-model advisors plus a clean-context reviewer) confirmed the fixture could fire in release builds, the palette never resolved outside the main window's render, and the guarded path never initialized the locale; a long diagnostic could push the actions out, the status growth re-checked its bounds every frame, and several states kept stale or contradictory text. - Gate the MAPLE_DEBUG_STARTUP_ERROR fixture behind debug assertions, matching the Quit prompt's debug loop. - Resolve the OS appearance palette in StartupError::render and observe appearance changes in both failure windows. - Initialize the locale in the guarded path; the standalone window falls back to the system locale, and the PR no longer claims otherwise. - Cap the failure passage at 120px with a scroll so long diagnostics cannot clip the action row; wrap the action row. - Replace the per-frame resize with a one-shot, width-preserving growth latch pinned by a unit test. - Clear the previous failure status when a new stop attempt starts.
AnthonyRonning
force-pushed
the
ux/startup-error-dialog
branch
from
November 13, 2026 23:24
3f81e38 to
099aa67
Compare
AnthonyRonning
approved these changes
Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Startup failures opened a bare text list — a small heading, the raw error, gray pill buttons, and a full-width Close bar. This gives the startup failure window the same language as the Quit prompt: the brand display headline, the failure as one plain passage, quiet evidence, and one accent recovery pill beside a quiet Close — and it now resolves the OS appearance and locale, registers Maple's bundled fonts, and grows once when a status adds a details pane.
Before and after
The same real failure in both captures: a second Maple start against a host this profile already owns (dark theme).
What changes
MAPLE_DEBUG_STARTUP_ERROR=incompatible|guarded|restart, optionally suffixed with a locale (guarded-de), opens the failure window in states a live start cannot reach on demand — the guarded stop and the restart-failure status — with long fixture diagnostics.Behaviour to be aware of
Rebased review
just cipassed, including formatting, all Clippy feature sets, workspace tests, all-target builds and headless tests. Fresh CI on the rebased head also passed Linux tests/lint and Windows/macOS Clippy. No additional VM smoke was performed for this revision.Verification
maple-agent-appsuite passes (1446 passed in the main binary, 0 failed, 3 ignored);cargo fmt --checkclean; no clippy diagnostics in the changed file. All startup/guarded state tests pass, plus a new unit test pinning the one-shot growth rule (fires only when a status exists, exactly once, preserving a user's width).