Skip to content

fix: handle 5 silent-error bugs#70

Open
marcus wants to merge 1 commit intomainfrom
bug-finder/fix-verified-bugs
Open

fix: handle 5 silent-error bugs#70
marcus wants to merge 1 commit intomainfrom
bug-finder/fix-verified-bugs

Conversation

@marcus
Copy link
Copy Markdown
Owner

@marcus marcus commented Mar 23, 2026

Summary

  • Snapshot ID=0: Propagate LastInsertId() error instead of discarding it with _, which silently produces ID=0
  • Slack webhook hang: Replace default http.Post (no timeout) with http.Client{Timeout: 30s} to prevent indefinite hangs
  • Cross-platform path: Use filepath.Join instead of string concatenation for .git path in RepositoryExists
  • Broken exclude matching: Check filepath.Abs errors in glob expansion instead of silently using empty strings
  • Security bypass: Return error from ValidateProjectPath when os.UserHomeDir() fails, preventing home-directory block from being silently skipped

Test plan

  • go build ./... passes
  • go vet ./... passes
  • All tests pass for affected packages (snapshots, reporting, analysis, projects, security)

Nightshift-Task: bug-finder
Nightshift-Ref: https://github.com/marcus/nightshift

🤖 Generated with Claude Code


Automated by nightshift

- Propagate LastInsertId error in snapshot collector instead of silently
  producing ID=0
- Use http.Client with 30s timeout for Slack webhooks instead of
  default client that can hang indefinitely
- Use filepath.Join for .git path in RepositoryExists for correct
  cross-platform handling
- Check filepath.Abs errors in glob pattern expansion instead of
  silently using empty strings that break exclude-set matching
- Return error from ValidateProjectPath when os.UserHomeDir fails,
  preventing home-directory security check from being silently skipped

Nightshift-Task: bug-finder
Nightshift-Ref: https://github.com/marcus/nightshift

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant