-
Notifications
You must be signed in to change notification settings - Fork 4
Sync upstream v1.0.221 and desktop improvements #232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
…nomalyco#6528)" This reverts commit 87f9ebd.
…r/model" This reverts commit eb81994.
…er/model" This reverts commit 9d32a0354f1db3ea4893f4ad00900c6420ab78c6.
Resolved conflicts: - bun.lock: accepted upstream - prompt-input.tsx: kept fork's larger mobile submit button (size-8 rounded-md) - global-sync.tsx: kept fork's defensive Array.isArray() checks with upstream's filter chaining - layout.tsx: adopted upstream's Mark logo link and TooltipKeybind component - session.tsx: kept fork's version (no upstream Header component - we use inline header in layout.tsx)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
44 files reviewed, 1 comment
| icon={working() ? "stop" : "arrow-up"} | ||
| variant="primary" | ||
| class="size-8 rounded-md" | ||
| class="size-8 rounded-md" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
syntax: indentation is missing on this line
| class="size-8 rounded-md" | |
| class="size-8 rounded-md" |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Prompt To Fix With AI
This is a comment left during a code review.
Path: packages/app/src/components/prompt-input.tsx
Line: 1498:1498
Comment:
**syntax:** indentation is missing on this line
```suggestion
class="size-8 rounded-md"
```
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise.Apply Greptile suggestion to fix missing indentation on class attribute.
Summary
Merge upstream opencode v1.0.221 changes into the shuvcode integration branch, including desktop app improvements, model selector enhancements, and LSP workspace file watching support.
Changes
Features
Fixes
Refactoring
Infrastructure
Breaking Changes
None
Testing
Production builds tested locally:
Greptile Summary
This PR successfully merges upstream opencode v1.0.221 changes into the shuvcode fork, bringing significant desktop app improvements, UI enhancements, and LSP workspace file watching support.
Key Changes:
.catch()blocks on all async operations, including storage operations that now fall back to in-memory storage when Tauri Store failsModelSelectorPopovercomponent for quick model selection without opening a full dialog, extracted reusableModelListcomponentworkspace/didChangeWatchedFilesnotification support for better file system monitoring in LSP serversTooltipKeybindcomponent for consistent display of keyboard shortcuts across the UI@ai-sdk/openai-compatiblewhen no provider package is specifiedTesting Notes:
The PR description confirms production builds were tested locally with CLI binary, app UI, and browser tests all passing.
Confidence Score: 4/5
prompt-input.tsxline 1498 that needs fixing. The defensive programming patterns added to the desktop app properly prevent crashes from Tauri API failures.packages/app/src/components/prompt-input.tsxneeds attention for the indentation fix on line 1498Important Files Changed
@ai-sdk/openai-compatiblewhen no package specifiedSequence Diagram
sequenceDiagram participant User participant App participant PermissionContext participant GlobalSDK participant LSPClient participant Desktop User->>App: Toggle auto-accept edits App->>PermissionContext: toggleAutoAccept(sessionID, directory) PermissionContext->>GlobalSDK: Listen to permission.updated events PermissionContext->>GlobalSDK: permission.list({directory}) GlobalSDK-->>PermissionContext: Return pending permissions PermissionContext->>PermissionContext: Check shouldAutoAccept(perm) PermissionContext->>GlobalSDK: permission.respond({once}) User->>App: Select model via popover App->>App: ModelSelectorPopover renders User->>App: Click model App->>App: local.model.set(modelID, providerID) App->>App: Close popover User->>App: Edit file in workspace App->>LSPClient: notify.open({path}) LSPClient->>LSPClient: Check if file version exists LSPClient->>LSPClient: Send workspace/didChangeWatchedFiles LSPClient->>LSPClient: Send textDocument/didChange or didOpen Desktop->>Desktop: Initialize storage Desktop->>Desktop: Try Store.load(name) alt Store fails Desktop->>Desktop: Fallback to memory storage end Desktop-->>App: Return storage API with error handling