Skip to content

fix(daemon): pass structured referencedBy in 409 conflict details#30236

Merged
noanflaherty merged 1 commit into
mainfrom
credence/conflict-error-details
May 11, 2026
Merged

fix(daemon): pass structured referencedBy in 409 conflict details#30236
noanflaherty merged 1 commit into
mainfrom
credence/conflict-error-details

Conversation

@noanflaherty
Copy link
Copy Markdown
Contributor

@noanflaherty noanflaherty commented May 11, 2026

Summary

  • ConflictError now accepts optional details — aligns with the base RouteError constructor that already supports it
  • HTTP adapter forwards err.details — previously httpError() was called without err.details, so any structured payload on a RouteError was silently dropped from the wire response
  • Delete provider-connection handler includes { referencedBy: [...] } in conflict details — the Swift client's parseConflictRefs (merged in feat(macos): inference providers UI (Phase 2 PR-E) #30231) already checks error.details.referencedBy first, but the daemon wasn't sending it

Follow-up to #30231 — these changes were pushed to the PR branch but the PR was merged before they landed.

Test plan

  • bun test src/runtime/routes/__tests__/inference-provider-connection-routes.test.ts — 28/28 pass (tests assert on message and instanceof, unaffected by the additive details field)
  • Existing ConflictError callers unaffected (details parameter is optional)

🤖 Generated with Claude Code


Open in Devin Review

The HTTP adapter was dropping RouteError.details when building error
responses. Now passes err.details through to the standard error
envelope, and the delete handler includes { referencedBy: [...] } in
ConflictError details so the Swift conflict sheet can display them
without fragile message-string parsing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@noanflaherty noanflaherty merged commit b3b8a25 into main May 11, 2026
13 checks passed
@noanflaherty noanflaherty deleted the credence/conflict-error-details branch May 11, 2026 01:39
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