You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: graceful shutdown on ctrl-c and remove auto-open browser (#164)
## Summary
- Wire the signal context as `BaseContext` on `http.Server` so Ctrl-C
cancels all request contexts immediately, letting SSE handlers exit and
`Shutdown` complete promptly
- Thread `context.Context` through `SyncAll`/`ResyncAll` so
API-triggered syncs abort on cancellation instead of blocking shutdown
- Abort the resync DB swap when cancelled mid-run, preventing a partial
temp DB from replacing the original
- Skip post-cancel phases (OpenCode sync, skip-cache persist) in
`syncAllLocked` when aborted
- Remove auto-open browser feature; keep `-no-browser` flag registered
as a no-op for script compatibility
## Test plan
- [x] New regression test: cancel `ResyncAll` mid-run, verify original
DB preserved
- [x] `make test-short` passes
- [x] `make vet` passes
- [x] Manual: `./agentsview` responds to first Ctrl-C immediately
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments