Skip to content

fix: the stream push keeps payload.task for task-input (0.34.7) - #175

Open
log0u7 wants to merge 4 commits into
mainfrom
fix/0347-stream-strip
Open

log0u7 wants to merge 4 commits into
mainfrom
fix/0347-stream-strip

Conversation

@log0u7

@log0u7 log0u7 commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Summary

0.34.7 - the hotfix for the mr-reviewer BLOCK verdict on #174: the stream push spread stripped payload.task for task-input. The receiver dispatch gate (d.task?.id) failed, the event fell into the MAIL branch (the input became a plain DM), the ack marked the outbox row SENT, and the POST fallback (the only path applying handleTaskInput to the mirror) never ran - the mirror stayed input_required to the 24h cap. The prod primary path (the stream open most of the time).

The fix = one line: the spread keeps payload.task for task-input (outbox.ts:353).

Tests (mandatory)

Red-green: (a+b) the stream push carries data.task for task-input (the spread assertion) AND dispatching the captured event through the receiver resumes the mirror - STREAM ONLY, no plain DM, no POST fallback; (c) the task-input on an asker_node mismatch = refused (the gate fails, no ack, no apply). The (c) dead-letter at max attempts = the same machinery as task-reply spoof (documented, coherent).

Coverage

pnpm verify exit=0: 661 tests (49 files), build + smoke-dist.

Linked Issue

The mr-reviewer BLOCK verdict on #174 (the 0.34.6 live suite follow-up) - this PR waits the re-review verdict OK before any merge (the BLOCK rule).

OpenCode Validation

  • Current production released OpenCode version tested: v2.4.2.
  • Why this version is relevant: the stream dispatch runs inside the host process.

Quality Checklist

  • I wrote the failing test first (red), then made it pass (green)
  • I ran pnpm run typecheck
  • I ran pnpm run build
  • I ran pnpm test
  • I updated CHANGELOG.md under [Unreleased]
  • This change is focused and avoids unrelated behavior changes
  • I updated docs when user-facing workflow, tool, or config behavior changed

…eceiver dispatch gate failed on the primary path (the event fell into the mail branch, the ack marked the row sent, the mirror stayed paused) (0.34.7)
…tbox.ts, the tests run the actual gate+apply+ack (the reviewer's lookalike verdict fixed)
…l return + the row unchanged) - the last lookalike dead
…l-through hardening) + the silent-drop warns + addressedNotifyWake moves to mail.ts (the import cycle out)
@log0u7 log0u7 mentioned this pull request Nov 28, 2026
7 tasks done
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