mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
What changed: - Extracted client/push attention decision rules from websocket-server into a dedicated agent-attention-policy module. - Replaced websocket-server inline branch logic with calls to computeShouldNotifyClient and computeShouldSendPush. - Added deterministic unit tests that cover each notification branch and push suppression rule. Why: - The websocket server carried dense policy branching mixed with transport/session concerns. - Pulling policy into a focused module lowers logic density and makes future changes safer without altering behavior. - Direct unit tests provide confidence for future edits without requiring websocket wiring. Notes for next agent: - This commit intentionally preserves existing behavior and only restructures policy ownership. - If attention behavior needs product changes, update tests in agent-attention-policy.test.ts first. - websocket-server.relay-reconnect.test.ts still covers transport/session reconnection behavior separately.