Skip to content

feat(#7): add error and retry notification handlers - #18

Merged
athal7 merged 5 commits into
mainfrom
issue-7
Jan 2, 2026
Merged

feat(#7): add error and retry notification handlers#18
athal7 merged 5 commits into
mainfrom
issue-7

Conversation

@athal7

@athal7 athal7 commented Jan 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add retry event handling for session.status: retry with configurable first/Nth notification
  • Add error event handling for session.error with debounce window
  • Reset retry counter on non-retry status changes
  • Log suppressed notifications for debugging
  • Add debug logging mode via NTFY_DEBUG env var
  • Fix config to use separate file (~/.config/opencode-ntfy/config.json) to avoid breaking OpenCode schema validation

Closes #7

athal7 added 5 commits January 1, 2026 21:47
- Add retry event handling with configurable first/Nth notification
- Add error event handling with debounce window
- Reset retry counter on non-retry status changes
- Log suppressed notifications for debugging
- Add debug logging mode via NTFY_DEBUG env var
OpenCode validates its config schema and rejects unknown keys like 'ntfy'.
Move config to ~/.config/opencode-ntfy/config.json instead of embedding
in opencode.json. Environment variables continue to work as before.
- Use repoName instead of undefined dir variable
- Change title format to "Retry (repoName)" / "Error (repoName)"
- Simplify message format for consistency
@athal7
athal7 merged commit 2e4a432 into main Jan 2, 2026
1 check passed
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.

Event handling: error and retry notifications

1 participant