Merged
Conversation
When connected via DevTunnel, mobile apps can now receive local notifications when sessions need attention: - Error: Session encountered an error - ReadyForMore: Session is idle, ready for next prompt Notifications are ONLY sent when the session is truly complete and waiting for user input (OnSessionComplete), not after every turn. This prevents spam during ongoing work. Features: - Opt-in toggle in Settings (Remote section) - Platform-native notifications (iOS UNUserNotificationCenter, Android NotificationChannel) - Tap notification to open app (with session ID for future deep linking)- Context-aware messages with emoji indicators ( - New 'attention_needed' bridge message type Also fixes: - iOS mobile nav bar overflow (buttons flowing off screen) - iOS bottom margin doubled (removed 100dvh, use 100vh) Files: - Services/INotificationManagerService.cs - Interface - Services/NotificationMessageBuilder.cs - Message formatting - Platforms/*/NotificationManagerService.cs - Platform implementations - Models/BridgeMessages.cs - AttentionNeeded type + payload - Services/WsBridgeServer.cs - Emit attention_needed events - Services/WsBridgeClient.cs - Handle attention_needed + trigger notifications - Components/Pages/Settings.razor - Toggle UI
- Ensure .polypilot directory exists before writing ui-state files - Remove debug logging that caused DirectoryNotFoundException - Add flex-shrink:0 to header-actions to keep settings icon visible - Wrap notification handler in Task.Run for safer async handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds opt-in local notifications on iOS and Android when sessions need attention while connected via DevTunnel remote mode.
Features
Bridge Protocol
New
attention_neededmessage type flows from desktop server to mobile client with:Bug Fixes
Testing