diff --git a/AGENTS.md b/AGENTS.md index c113bfa..44a7da6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -46,11 +46,15 @@ Useful direct commands: After implementing any feature or fix, verify correctness by running all of: +- `make build` — compile frontend and both Go binaries - `go test ./...` — backend unit tests - `golangci-lint run` — backend linting - `cd web && npm test` — frontend tests +- `cd web && npm run lint` — frontend linting +- `cd web && npm run typecheck` — frontend type checking +- `make test-e2e` — end-to-end tests (Dockerized Playwright; also recompiles inside Docker) -All three must pass before considering the work done. +All must pass before considering the work done. ## Agent Working Rules diff --git a/internal/server/jobs.go b/internal/server/jobs.go index 20821fb..836202e 100644 --- a/internal/server/jobs.go +++ b/internal/server/jobs.go @@ -149,10 +149,7 @@ func (s *server) recoverStuckTickets() { for _, repo := range repos { tickets := s.meta.ListTickets(repo.ID) for _, ticket := range tickets { - if ticket.Status == string(workflowstate.FlowStatusDone) || - ticket.Status == string(workflowstate.FlowStatusFailed) || - ticket.Status == string(workflowstate.FlowStatusCancelled) || - ticket.Status == "" { + if ticket.Status != string(workflowstate.FlowStatusRunning) { continue }