Repository navigation
fix(web): keep error feedback at business boundaries - #45151
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is ❌ Your project check has failed because the head coverage (68.62%) is below the adjusted base coverage (88.83%). You can increase the head coverage or adjust the Removed Code Behavior. Additional details and impacted files@@ Coverage Diff @@
## main #45151 +/- ##
===========================================
- Coverage 89.82% 68.62% -21.21%
===========================================
Files 6244 6088 -156
Lines 397218 368484 -28734
Branches 80002 78184 -1818
===========================================
- Hits 356807 252875 -103932
- Misses 34116 112808 +78692
+ Partials 6295 2801 -3494
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
hyoban
force-pushed
the
fix/web-business-error-feedback
branch
from
October 30, 2026 09:36
77d48be to
bc48948
Compare
hyoban
force-pushed
the
fix/web-business-error-feedback
branch
from
October 30, 2026 09:47
bc48948 to
48b8828
Compare
hyoban
marked this pull request as ready for review
October 30, 2026 14:56
hyoban
requested review from
CodingOnStar,
WTW0313,
Yessenia-d,
iamjoel,
lyzno1,
zhsama and
zxhlyh
as code owners
October 30, 2026 14:56
lyzno1
approved these changes
Oct 30, 2026
1 task done
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.
Summary
Part of #43802.
Failed Web actions could display both request-layer and business-layer errors. Make requests silent where the business flow already owns a toast or inline error, and forward optional context through shared service helpers.
Keep actionable information at that business boundary: use localized messages for known domain errors (including workspace skill limits), preserve specific server reasons, and use generic failures as a fallback. This covers tag conflicts, remote upload failures, publishing, app/dataset operations and the other affected flows. Template selection also handles the query's returned error before continuing.
Plugin release/upload helpers propagate failures to their business callers. Snippet imports report request errors in the dialog; Agent V2 draft operations report once; trigger single-run errors are reported before Webhook cancellation.
Update toast ownership guidance and regression coverage. CI integration assertions now account for silent request context, and error assertions check the retained reason. The Build retry test waits for the asynchronously loaded Markdown answer.
Screenshots
Validation
48b882822b: all four Web unit shards, Web Browser Tests, TS Common, Web Static Checks, and Codecov project/patch passed.pnpm exec vp run -w check: passed (formatting and lint, zero errors). Subsequent test-only edits also passed targeted static checks.pnpm exec vp staged: passed; unrelated existing style autofixes were restored before validating the final changes.pnpm --dir web run type-checkreports only the existing generated.next/types/validator.ts:2368layout mismatch:MainNavLayoutPropsrequiresinitialDetailSidebarMode, which the generated layout props do not supply. That layout is unchanged.Checklist