Skip to content

feat: support toast notifications via pruneNotificationType#340

Merged
Tarquinen merged 3 commits intoOpencode-DCP:devfrom
essinghigh:notification-toast-dev
Feb 1, 2026
Merged

feat: support toast notifications via pruneNotificationType#340
Tarquinen merged 3 commits intoOpencode-DCP:devfrom
essinghigh:notification-toast-dev

Conversation

@essinghigh
Copy link
Contributor

@essinghigh essinghigh commented Feb 1, 2026

Closes #319

This PR introduces pruneNotificationType as a new configuration option, allowing users to choose between chat and toast for prune notifications.

Changes
dcp.schema.json / lib/config,ts

  • Added pruneNotificationType config option with "chat" (default) or "toast"

lib/ui/notifications.ts

  • Added helper functions to handle truncation (showDistillation, showCompression summary & line length)
  • Updated sendUnifiedNotification and sendCompressNotification to display toasts when configured to do so

Reopened from #321. Reimplementing this from dev gave me enough headache (my own fault!) to realize I'd over-engineered this the first time around. This is a much simpler approach and provides the same functionality. Also renamed the config option to fit with the others, thought it was a little out of place as just notificationType.

Let me know what you think.


Screenshots

Detailed:
image

Minimal:
image

Truncating:
image

@Tarquinen
Copy link
Collaborator

Hell yea this looks awesome! Sorry again about the git mess I made earlier. Let me know if you have any more cool ideas like this. Think you just need to run a format and we're good to go

@essinghigh
Copy link
Contributor Author

essinghigh commented Feb 1, 2026

Forgot to run prettier before pushing this, should be good now.
All good r.e. the git changes, it gave me a good opportunity to look over what I'd done and reimplement it much cleaner.

@Tarquinen Tarquinen merged commit e96796d into Opencode-DCP:dev Feb 1, 2026
1 check passed
@Tarquinen
Copy link
Collaborator

Might be a few days before dev is merged into master and released, there's a lot of other changes that i'm still testing and that are still being worked on. I'll probably push a beta version tonight though that will have this in it. Thanks for your help!

@essinghigh essinghigh deleted the notification-toast-dev branch February 1, 2026 02:26
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.

2 participants

Comments