Skip to content

Give every inline error Copy details and, where it helps, Retry - #269

Merged
BunsDev merged 1 commit into
mainfrom
error-actions
Oct 18, 2026
Merged

BunsDev merged 1 commit into
mainfrom
error-actions

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Why

The original request behind #104 asked that errors always carry research-level debug copy and a button to retry or fix, wherever possible. #104 did that for turn failures. About two dozen other error surfaces still showed bare text: no copy action, and in most cases no way to run the failed action again.

What

  • ui/ErrorNotice renders an inline error with the message, Retry when the failed action can safely run again, a fix when there is a better remedy, Dismiss where the surface had one, and Copy details.
  • shared/error-report.ts builds the copied report: where and when it happened, the message verbatim, and the surface's context (thread, cwd, path, page). clipboard:write gains an optional appInfo flag so main appends the app version, Electron version and platform. Other hosts ignore the flag.
  • Streamer Mode redacts the shown message and the whole copied report, context included.
  • Adopted in: terminal, Changes diff, Files list and read, Canvas, browser and browser extensions, Analytics, iPhone companion, Settings save and learning reset, approval-rule preview, composer attachment and model-list warnings, notes (Space, version history, comments, agent access, file preview), Knowledge, Routines, Plugins and the Images binding, Images, and both update screens.
  • Retry repeats exactly the action that failed. It is left out where repeating cannot help: a rejected browser address, a skill in the wrong scope, lists that already refresh every few seconds, the learning reset (its text says to reopen Settings first), and Images, whose errors come from many actions.

Verification

  • pnpm build, pnpm typecheck and pnpm test pass: 0 failures across all suites, including 3 new tests for the report builder.
  • e2e: 113 tests across every spec that covers a converted surface pass locally, including Settings, errors, attachments, Canvas, Space, notes, workspace, composer, Images and Plugins, updates, backend health, projects, terminal, Analytics, companion, review and Routines.
  • The Settings save-failure e2e now clicks Copy details, reads the clipboard (Modex error: Settings · save, the message, App: Modex x.y.z) and clicks Retry save, which re-runs the save with the draft intact.
  • Two e2e selectors follow the moved elements (models-error → its error-retry; the exact-text check on settings-save-error → its error-text). No assertion was loosened.

Coven-Harness: Claude Code / claude-opus-5-5

Turn failures got Retry, a fix and Copy details in #104, but about two
dozen other error surfaces still showed bare text. Copying it lost where
and when it happened, and most offered no way to run the action again.

A shared ErrorNotice now renders those errors: the message, Retry when the
failed action can safely run again, a fix when there is a better remedy,
Dismiss where the surface had one, and Copy details. The copied report
(shared/error-report.ts) names where and when it happened, quotes the
message, and lists the surface's context. Main appends the app version,
Electron version and platform through clipboard:write's new appInfo flag.
Streamer Mode redacts the shown message and the whole report.

Retry repeats exactly the action that failed: restart the terminal, reload
a diff, file or preview, re-run a companion, routine, plugin or browser
action, save Settings again, re-run an approval preview, reload history,
comments or agent access. It is left out where repeating cannot help: a
rejected browser address, a skill in the wrong scope, lists that already
refresh every few seconds, the learning reset (its text says to reopen
Settings first), and Images, whose errors have no single action.

e2e: the Settings save failure test now copies the report and retries the
save; two selectors follow the moved Retry and message elements.

Coven-Harness: Claude Code / claude-opus-5-5
@vercel

vercel Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 18, 2026 3:33am UTC

Request Review

@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

main 45491e9 error-actions 7774a60 +/-
62% 62% 0%
View coverage of the 3 most impacted files.
File main 45491e9 error-actions 7774a60 +/-
apps/desktop/sr...ErrorNotice.tsx 0% 0% 0%
apps/desktop/sr...shared/types.ts 100% 100% 0%
apps/desktop/sr...error-report.ts 0% 100% +100%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@BunsDev
BunsDev merged commit 741468c into main Oct 18, 2026
13 checks passed
@BunsDev
BunsDev deleted the error-actions branch October 18, 2026 03:57
BunsDev added a commit that referenced this pull request Oct 19, 2026
… and the routines spec (#310)

v0.2.0 was published on 2026-10-18 (23:14Z) from the signed tag on 01b1b8a. This
follows Val's status layout (#290):

- Shipped gains a v0.2.0 row linking its release and its review.
- The 13 "On main, unreleased" items move unchanged to a new "Status summary"
  at the end of the v0.2.0 review, along with the old In flight entry. Each one
  was introduced by a commit in the tag (#248, #253, #254, #257 to #261, #263,
  #264, #266, #267, #269). The CF slices and #283's Markdown parser came after
  the tag, so they stay.
- In flight keeps a short follow-ups entry for the gates no receipt records yet:
  the independent download checks, the banner upgrade on the release Mac, and
  the Companion 0.2.0 (7) TestFlight upload.
- The routines spec and the README now say Phase 1, and most of Phase 0, ship
  from v0.2.0.

Unchanged: the website's static fallback (apps/site/release.json) and the
release evidence, which stay with the release owner. Claimed on #290.

Coven-Harness: Claude Code / claude-opus-5-5

This branch was successfully deployed

1 active deployment
Preview — 7774a606 Deployed Oct 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant