You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
🤖 Generated with [Nori](https://noriagentic.com/)
- After a cancel, in-flight `session/update` events still hit the
reducer with no active request and currently produce one "Received
request-owned content update while no request is active" yellow warning
cell per event — flooding the history.
- The reducer now tracks an `orphan_update_warning_emitted` flag on
`SessionRuntime`. The warning fires only on the first orphan update in a
burst; subsequent orphans in the same idle window skip the warning. The
normalizer still runs on every update, so well-formed `session/update`
events continue to render as tool / message history cells.
- The flag resets when a new prompt or load begins (`start_prompt`,
`reduce_load_submit`), so a fresh burst on a future request will warn
again.
## Test Plan
- [x] `cargo test -p nori-acp` (494 tests pass)
- [x] New unit tests in
`nori-rs/acp/src/backend/session_reducer/tests.rs`:
- `orphan_warning_is_emitted_only_once_per_burst` — three orphan
`ToolCallUpdate`s produce exactly one warning and three `ToolSnapshot`s.
- `orphan_warning_resets_when_a_new_prompt_starts` — burst → new prompt
→ new burst produces two warnings total.
- [x] Existing
`test_out_of_phase_tool_call_update_still_emits_normalized_tool_snapshot`
still passes (single update still gets the warning + snapshot).
- [x] `just fmt` and `just fix -p nori-acp -p nori-protocol` clean.
Share Nori with your team: https://www.npmjs.com/package/nori-skillsets
Co-authored-by: Cliff <clifford@tilework.tech>
Co-authored-by: Nori <contact@tilework.tech>
0 commit comments