feinai 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/cli.ts +1 -1
- package/src/server.ts +9 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
5
5
|
|
|
6
|
+
## [0.8.2] - 2026-09-02
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
|
|
10
|
+
- **Flicker en el dashboard mientras una página de spec/task detail estaba abierta.** `logRequest` sólo suprimía un listado exacto de paths (`/api/status`, `/api/specs`, ...); los reads con id (`/api/tasks/:id`, `/api/tasks/:id/worktree-status`) se colaban al log de requests. Cada uno disparaba el evento SSE `refresh`, que hacía que el dashboard se re-renderizara y re-fetchara la misma página, generando un nuevo request logueado — un loop autoalimentado de ~1.5s mientras esa página quedaba abierta. Ahora se suprime cualquier GET del actor `dashboard` (las mutaciones POST/PATCH/DELETE se siguen registrando y disparando refresh para el resto).
|
|
11
|
+
|
|
6
12
|
## [0.8.1] - 2026-09-02
|
|
7
13
|
|
|
8
14
|
### Added
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
package/src/server.ts
CHANGED
|
@@ -163,10 +163,15 @@ function deriveSource(actor: string): "Dashboard" | "API" | "Terminal" {
|
|
|
163
163
|
function logRequest(method: string, path: string, actor: string): void {
|
|
164
164
|
if (path === "/" || path === "/api/events/stream") return;
|
|
165
165
|
|
|
166
|
-
// Suppress dashboard's own
|
|
167
|
-
//
|
|
168
|
-
|
|
169
|
-
|
|
166
|
+
// Suppress dashboard's own reads (list views, detail views, worktree-status
|
|
167
|
+
// polling). The exact-match list missed per-id paths like /api/tasks/:id and
|
|
168
|
+
// /api/tasks/:id/worktree-status — those got logged, which fed the SSE
|
|
169
|
+
// "refresh" broadcast, which made every open dashboard re-render and re-fetch,
|
|
170
|
+
// logging a new request that fed the next refresh: a self-sustaining loop that
|
|
171
|
+
// caused the whole page to flicker every ~1.5s while a task/spec detail page
|
|
172
|
+
// was open. Dashboard mutations (POST/PATCH/DELETE) are never GET, so they
|
|
173
|
+
// still get logged and still drive refresh for everyone else.
|
|
174
|
+
if (actor === "dashboard" && method === "GET") return;
|
|
170
175
|
|
|
171
176
|
const source = deriveSource(actor);
|
|
172
177
|
requestLog.push({
|