diff --git a/frontend/AGENTS.md b/frontend/AGENTS.md index d7c1441..f5ba827 100644 --- a/frontend/AGENTS.md +++ b/frontend/AGENTS.md @@ -236,6 +236,12 @@ When touching cross-layer contracts, also run backend tests from repo root: PYTHONPATH=. uv run pytest tests/ -v ``` +## Errata & Known Non-Issues + +### RawPacketList always scrolls to bottom + +`RawPacketList` unconditionally scrolls to the latest packet on every update. This is intentional — the packet feed is a live status display, not an interactive log meant for lingering or long-term analysis. Users watching it want to see the newest packet, not hold a scroll position. + ## Editing Checklist 1. If API/WS payloads change, update `types.ts`, handlers, and tests. diff --git a/frontend/src/components/NewMessageModal.tsx b/frontend/src/components/NewMessageModal.tsx index a997b73..70a1eb6 100644 --- a/frontend/src/components/NewMessageModal.tsx +++ b/frontend/src/components/NewMessageModal.tsx @@ -133,7 +133,15 @@ export function NewMessageModal({ - setTab(v as Tab)} className="w-full"> + { + setTab(v as Tab); + setName(''); + setError(''); + }} + className="w-full" + > Existing Contact