Skip to content

fix(app): keep storage failures scoped to the task that failed - #4623

Merged
reachjalil merged 2 commits into
devfrom
fix/storage-error-isolation
Sep 8, 2026
Merged

reachjalil merged 2 commits into
devfrom
fix/storage-error-isolation

Conversation

@reachjalil

@reachjalil reachjalil commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

Problem

A storage error reported by a connected service can be presented as a full disk on the task's device. Separately, a send that fails after navigation can write its error into another retained conversation and disable that conversation's composer. Failed first sends can also hide the recovery card behind a generic Error placeholder.

Changes

  • Scope transient errors and pending sends to endpoint, workspace, and session. Ignore stale surface updates while preserving the original task's activity error.
  • Use origin-neutral storage guidance instead of claiming that the user's computer or task device is full. Keep technical diagnostics behind Developer mode.
  • Show the first-send recovery card rather than an activity placeholder.
  • Extend the existing error journey with a delayed HTTP 507 response: A fails after switching to B, B submits exactly once and completes, and a subsequent failure on A still shows its own recovery guidance.

No cloud quota enforcement, runtime routing, automatic retry, or snapshot-readiness policy changes. Investigation found no general cloud-storage preflight gate on local submissions. This fixes confirmed presentation and conversation-isolation defects; it does not establish the cause of any particular storage incident.

Verification

Verdict: Passed — both exact-head journey tests passed with no skips, and their evidence is published.

Head: 78158623f7e5533c5e3d25e26fcfc29f61ea4da8

  • OPENWORK_EVAL_REF=$(git rev-parse HEAD) pnpm evals:e2e session-error-technical-details — exit 0, 2 passed / 0 failed / 0 skipped. Cold-booted resources; checkout confirmed the exact head. Placement: daytona (daytona CLI authenticated).
  • pnpm --dir apps/app exec bun test --isolate tests/session-error-resilience.test.tsx — exit 0, 24 passed / 0 failed, 101 assertions.
  • pnpm --filter @openwork/app typecheck — exit 0.
  • pnpm evals:check-browser — exit 0, 728 browser callbacks checked.
  • git diff --check origin/dev...HEAD — exit 0.

Earlier attempts included an unpinned checkout, a transport timeout, and a short-ref checkout rejection. These are not counted as proof. The first exact-head run exposed the hidden first-send recovery card; the follow-up commit fixes it and the final exact-head run passes both tests.

Deferred: cross-platform/v2 matrices and a production incident reproduction. No production storage or connected records were changed.

@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 8, 2026 5:36pm UTC
3 Skipped Deployments
Project Deployment Actions Updated
openwork-den Skipped Skipped Sep 8, 2026 5:36pm UTC
openwork-diagnostics Skipped Skipped Sep 8, 2026 5:36pm UTC
openwork-landing Skipped Skipped v0 Sep 8, 2026 5:36pm UTC

@reachjalil

Copy link
Copy Markdown
Member Author

Test evidence — a-delayed-submit-error-stays-with-its-owner-while-another-retained-task-remains- — ✅ passed

SHA 7815862 · engine v1

✅ passed · 0 expectations passed · 0 failed · 0 pending

screenshots not attached (gh < 2.99; run brew upgrade gh)

[world] desktop(daytona) · workspace(/tmp/openwork-session-error-details-1788888596945) · session("Session error proof") · [seed:raw] evalIn() · mock(mcp) · den(daytona) · desktop(as admin) · workspace(/tmp/openwork-session-submit-error-isolation-1788888865025) · [seed:raw] evalIn() ×4 · session("Independent task B") · session("Storage failure task A")
[user] type(composer, "Save the first task output.")
[probe] eventually(the selected task can send)
[user] label=Run task · click(label=Run task)
[probe] eventually(A's actual submit is intercepted before its response)
[user] text=Independent task B · click(text=Independent task B)
[probe] eventually(the selected task owns the visible surface)
[user] type(composer, "Summarize the second task independently.")
[probe] eventually(the selected task can send) · eventually(the held SDK error response finishes)
[user] notSee(testId=session-error-card) · notSee(text=Storage error reported) · see(composer, editable, text="Summarize the second task independently.") · label=Run task · click(label=Run task) · see(text=The second task completed independently., timeoutMs=60000) · notSee(testId=session-error-card) · text=Storage failure task A · click(text=Storage failure task A)
[probe] eventually(the selected task owns the visible surface)
[user] type(composer, "Save the first task output again.", replace)
[probe] eventually(the selected task can send)
[user] label=Run task · click(label=Run task)
[probe] eventually(A's own second submit reaches the same HTTP boundary) · eventually(the held SDK error response finishes)
[user] see(testId=session-error-card) · see(text=Storage error reported) · see(text=A storage limit was reported by the task runtime or a connected service. This does not necessarily mean your computer is full. Check the affected service or workspace before freeing local disk space.) · notSee(text=/EDQUOT/) · text=Independent task B · click(text=Independent task B)
[probe] eventually(the selected task owns the visible surface)
[user] see(text=The second task completed independently.) · notSee(testId=session-error-card)
steps 1 ✅ A's real submit stays pending while B is selected and editable (7.9s) · 2 ✅ A's late upstream storage failure neither shows a B banner nor blocks B's one send (14.0s) · 3 ✅ a failure delivered while A owns the surface remains visible with neutral storage guidance (14.5s)
verdict passed · 11 user observations (notSee ×5, see ×6) · 10 probes · steps 3/3


Test run created 2026-09-08T17:28:14.308Z · Source: evals/results/test-runs/2026-09-08T17-28-14-308Z-a-delayed-submit-error-stays-with-its-owner-while-another-retained-task-remains/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4623 --test-run 2026-09-08T17-28-14-308Z-a-delayed-submit-error-stays-with-its-owner-while-another-retained-task-remains

@reachjalil

Copy link
Copy Markdown
Member Author

Test evidence — session error cards expose provider diagnostics only in Developer mode — Passed

Head: 78158623f7e5533c5e3d25e26fcfc29f61ea4da8 · engine v1 · cold-booted Daytona resources.

The completed test observes that:

  • With Developer mode off, the plain error remains visible while provider status, request ID, stack trace, and diagnostic controls are absent.
  • Enabling Developer mode without a reload exposes the diagnostic disclosure; opening it shows the expected provider/status/code/retry fields and copy action.
  • Disabling Developer mode hides those details again without losing the error.
  • Storage errors in transcript cards and banners use origin-neutral guidance instead of claiming the computer is full.
  • Generic database failures do not acquire a storage-limit title; technical stack details stay hidden outside Developer mode.

All eight claim steps passed. No screenshots or vision judgments are claimed; proof consists of the recorded UI observations, storage probes, and passing assertions.

Source: evals/results/test-runs/2026-09-08T17-23-52-811Z-session-error-cards-expose-provider-diagnostics-only-in-developer-mode/test-run.json

Executable journey

Reproduce from this head: OPENWORK_EVAL_REF=$(git rev-parse HEAD) pnpm evals:e2e session-error-technical-details — final run: 2 passed, 0 failed, 0 skipped.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (78158623f7e5533c5e3d25e26fcfc29f61ea4da8). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@reachjalil
reachjalil merged commit 1fc9524 into dev Sep 8, 2026
28 checks passed

This branch was successfully deployed

1 active and 3 inactive deployments
Preview – openwork-app — 78158623 Deployed Sep 8, 2026 by vercel[bot]
Preview – openwork-landing — 78158623 Deployed Sep 8, 2026 by vercel[bot]
Preview – openwork-diagnostics — 78158623 Deployed Sep 8, 2026 by vercel[bot]
Preview – openwork-den — 78158623 Deployed Sep 8, 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