Skip to content

refactor(fix-sentry): migrate Sentry API logic from daemon to skill#1770

Merged
kaizhou-lab merged 2 commits intomainfrom
chore/fix-sentry-daemon-v2
Mar 27, 2026
Merged

refactor(fix-sentry): migrate Sentry API logic from daemon to skill#1770
kaizhou-lab merged 2 commits intomainfrom
chore/fix-sentry-daemon-v2

Conversation

@kaizhou-lab
Copy link
Copy Markdown
Collaborator

Summary

  • Daemon simplified to pure scheduler: removed all Sentry API logic (curl/jq/processed.json ~140 lines), daemon now only manages worktrees, process lifecycle, and logging
  • Continuous mode: replaces fixed 30min polling with cooldown-based scheduling (Claude finishes → 60s → next), with exponential backoff (30min→2h) when no fixable issues
  • Skill handles all Sentry interaction via MCP: adaptive threshold descent (100→80→60→40→20→10), deep analysis mode for stacktrace-less issues, limit parameter for single-issue daemon mode
  • SKILL.md split into references/: triage rules, CDP verification, and report templates moved to references/ for progressive disclosure (571→417 lines)

Test plan

  • Run /fix-sentry limit=1 project=electron manually to verify adaptive threshold descent
  • Start daemon script, verify continuous scheduling and session log output
  • Verify [NO_FIXABLE_ISSUES] marker triggers exponential backoff
  • Confirm session logs write to ~/.aionui-fix-sentry/tmp/ and are readable during execution

- Simplify daemon to pure scheduler: remove all curl/jq/Sentry API code
  (~140 lines deleted), keep only worktree management and process lifecycle
- Add continuous mode: Claude finishes → cooldown 60s → next process
  (replaces fixed 30min polling interval)
- Add exponential backoff when no fixable issues found (30min → 2h cap)
- Stream Claude output via --output-format stream-json for realtime logs
- Session logs written to tmp/ subdirectory, auto-cleaned after 7 days

- Add adaptive threshold descent in skill (100→80→60→40→20→10)
- Add deep analysis mode for issues without stack traces
- Add limit parameter for daemon mode (limit=1 = fix one issue per process)
- Add [NO_FIXABLE_ISSUES] machine-readable marker for daemon backoff
- Split SKILL.md into references/ for progressive disclosure (417 → <500 lines):
  triage-rules.md, cdp-verification.md, report-template.md
@kaizhou-lab kaizhou-lab merged commit e2b4178 into main Mar 27, 2026
14 of 17 checks passed
@kaizhou-lab kaizhou-lab deleted the chore/fix-sentry-daemon-v2 branch March 27, 2026 03:04
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