Skip to content

refactor(agents): type media completion delivery misses#88250

Merged
steipete merged 1 commit into
mainfrom
refactor/media-delivery-failure-reasons
May 30, 2026
Merged

refactor(agents): type media completion delivery misses#88250
steipete merged 1 commit into
mainfrom
refactor/media-delivery-failure-reasons

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

  • Follow-up to fix(agent): preserve media task success on delivery miss #88083: make media completion fallback key off typed subagent delivery failure reasons instead of exact error strings.
  • Preserve the existing human-readable delivery errors while carrying the stable reason through dispatch phase records.
  • Cover the media/image/music/video fallback mocks and direct-delivery failure tests with the new reason field.

Verification

Behavior addressed: media generation completion fallback no longer depends on matching subagent delivery error prose.
Real environment tested: local macOS checkout plus delegated Blacksmith Testbox changed-check run.
Exact steps or command run after this patch: pnpm test src/agents/subagent-announce-delivery.test.ts src/agents/tools/media-generate-background-shared.test.ts src/agents/tools/image-generate-background.test.ts src/agents/tools/music-generate-background.test.ts src/agents/tools/video-generate-background.test.ts src/agents/image-generation-task-status.test.ts; pnpm check:changed; .agents/skills/autoreview/scripts/autoreview --mode local; .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main.
Evidence after fix: focused Vitest passed 6 files / 133 tests; Testbox tbx_01ksvpvnns2sxbj8gjs0xx7n1f exited 0; both autoreview runs reported no accepted/actionable findings.
Observed result after fix: delivery fallback eligibility comes from SubagentAnnounceDeliveryFailureReason, with success paths and non-fallback failures unchanged.
What was not tested: live media provider generation round-trip.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS maintainer Maintainer-authored PR labels May 30, 2026
@clawsweeper

clawsweeper Bot commented May 30, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: refactor(agents): type media completion delivery misses This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete steipete merged commit beb42b1 into main May 30, 2026
127 of 130 checks passed
@steipete steipete deleted the refactor/media-delivery-failure-reasons branch May 30, 2026 06:04
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 31, 2026
SYU8384 pushed a commit to SYU8384/openclaw that referenced this pull request Jun 3, 2026
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant