A small panel shows the banner text for the selected session and allows the banner to be hidden with the Escape key. After a recent PR, the behavior became unstable: sometimes the wrong text remains on screen, and the hotkey fires even when the panel is already closed.
sessionId, an open flag, and an onClose callback.sessionId changes quickly, the screen must show data only for the latest requested session.Escape key must close the panel only while open === true.alpha.sessionId to beta.alpha response arrives later than the beta one.Escape several times.onClose continues to be called even though the panel is already closed.Escape handler must exist only while the panel is shown and must be removed correctly on close and unmount.19.0.05.8.xStrictMode in developmentStrictModewindow.addEventListener('keydown', ...)loadBanner(sessionId: string): Promise<{ message: string }>; for alpha, the response is slower than for betaUse line comments to explain the problem, its impact, the fix and how to test it.