Skip to content

backend-agents E20: shared event-apply consumer (applyTurnEvent) #814

Description

@btipling

Parent: #794
Umbrella: #794
Label: backend-agents
Status: DRAFT
Blocked on: #813 (E19)

Implements one row of the restart umbrella. One issue → one PR → one adversarial review → one merge → close. Do not expand scope.

Slice

Refactor runHarnessTurn's embedded onStreamEvent table into a single applyTurnEvent used by both legacy /api/agent and durable stream attach paths.

Behavior parity. Existing harnessChat / wasm-int locks stay green.

DoD

  • One apply function, two producers
  • typecheck + full vitest + wasm-int green
  • No Wasm/protocol change

Refs

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend-agentsClient-independent agent turns — backend-run, survive tab close / refreshenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions