mirror of https://github.com/garrytan/gstack.git
Three narrow robustness fixes flagged during review: 1. CdpPipeTransport.readStream 'end' handler now sets this.closed = true before aborting pending. Without this, a send() after end would queue a promise forever (the 'closed' guard wouldn't trigger). 2. extractCookiesViaCdpPipe guards cookiesResp.cookies with ?? [] so a CDP response missing the cookies field returns an empty array instead of throwing TypeError. 3. extractCookiesViaCdpPipe validates attached.sessionId is a non-empty string. flatten:true should always return one, but defensive guards beat silent fallback to the browser-level session. Three new tests lock each fix: - send-after-end rejects with cdp_error/closed - empty getAllCookies response returns [] - attachToTarget without sessionId throws cdp_error Refs #1136. |
||
|---|---|---|
| .. | ||
| bin | ||
| scripts | ||
| src | ||
| test | ||
| PLAN-snapshot-dropdown-interactive.md | ||
| SKILL.md | ||
| SKILL.md.tmpl | ||