Skip to content

fix: pass target to send_app_notification for correct deep link - #4748

Merged
mdmohsin7 merged 1 commit into
mainfrom
fix/notification-target-navigate-to
Feb 11, 2026
Merged

mdmohsin7 merged 1 commit into
mainfrom
fix/notification-target-navigate-to

Conversation

@mdmohsin7

Copy link
Copy Markdown
Member

Summary

  • Follow-up to fix: restore notification API backwards compatibility #4747 — send_app_notification was called without the target parameter, so apps with target: "main" in their manifest still got navigate_to='/chat/{app_id}' instead of '/chat/omi'
  • Determines target from manifest before sending the notification so the deep link matches where the message is stored

Test plan

  • App with target: "main" — notification click opens main chat
  • App with target: "app" or no manifest — notification click opens app chat (unchanged)

🤖 Generated with Claude Code

send_app_notification was called without target, so apps with
target: 'main' in their manifest still got navigate_to='/chat/{app_id}'
instead of '/chat/omi'. Determine target before sending notification.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly addresses a bug where the target parameter was not being passed to send_app_notification, causing incorrect deep links for app notifications. The change correctly determines the target from the app's manifest and passes it to the notification function. The logic is sound and the implementation is a clear improvement. I have no further comments.

@mdmohsin7
mdmohsin7 merged commit d12cc9d into main Feb 11, 2026
1 check passed
@mdmohsin7
mdmohsin7 deleted the fix/notification-target-navigate-to branch February 11, 2026 13:05
@beastoin beastoin mentioned this pull request Feb 12, 2026
ellaaicare pushed a commit to ellaaicare/omi that referenced this pull request Apr 12, 2026
…dHardware#4748)

## Summary
- Follow-up to BasedHardware#4747 — `send_app_notification` was called without the
`target` parameter, so apps with `target: "main"` in their manifest
still got `navigate_to='/chat/{app_id}'` instead of `'/chat/omi'`
- Determines `target` from manifest before sending the notification so
the deep link matches where the message is stored

## Test plan
- [ ] App with `target: "main"` — notification click opens main chat
- [ ] App with `target: "app"` or no manifest — notification click opens
app chat (unchanged)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 2026
…dHardware#4748)

## Summary
- Follow-up to BasedHardware#4747 — `send_app_notification` was called without the
`target` parameter, so apps with `target: "main"` in their manifest
still got `navigate_to='/chat/{app_id}'` instead of `'/chat/omi'`
- Determines `target` from manifest before sending the notification so
the deep link matches where the message is stored

## Test plan
- [ ] App with `target: "main"` — notification click opens main chat
- [ ] App with `target: "app"` or no manifest — notification click opens
app chat (unchanged)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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