Feat/pull to refresh connections - #78
Merged
Merged
Conversation
Surface permission requests (e.g. external directory access) that are not tied to a message tool part as a dedicated panel above the chat input, so users can accept/deny and unblock the stuck agent response. Also includes project directory display tweaks in the stats card. Co-authored-by: muse-spark-1.2 <muse-spark@users.noreply.github.com>
The mobile expected a permission shape (id/permission/patterns/tool) that does not match OpenCode's actual Permission.Request (requestID/action/ resources/source). This caused the SSE handler to drop requests (sessionID early-return) and the poller to filter out valid entries, so no in-chat prompt ever rendered and the agent hung. - Normalize incoming permissions (id/requestID, permission/action, patterns/resources, always/save, tool/source) in lib/permissions. - Relax sessionID gating in both the SSE handler and the poller so requests without a sessionID are still attributed to the active session. - Render unmatched (e.g. external directory access) permissions in a panel above the input, and make replyToPermission try both reply endpoint shapes. Co-authored-by: muse-spark-1.2 <muse-spark@users.noreply.github.com>
Temporary console logging in the SSE permission handler, the poller, and the session render to capture the real OpenCode permission shape and confirm the panel receives pending permissions. Co-authored-by: muse-spark-1.2 <muse-spark@users.noreply.github.com>
- Bypass 30s rate limit on manual refresh for immediate feedback - Re-check all connection health statuses in parallel - Re-fetch active connection project info on refresh
…connections # Conflicts: # apps/mobile/app/project/[projectId]/[sessionId]/index.tsx
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.
No description provided.