forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 4
Shuvcode dev #320
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
Merged
Merged
Shuvcode dev #320
+30
−24
Conversation
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
…yco#9593) Co-authored-by: noam-v <noam@bespo.ai>
…and encourage more autonomy
Co-authored-by: Claude <noreply@anthropic.com>
…nomalyco#9597) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
Preserve fork features while updating e2e seeding and locators for the refreshed UI.
Start the opencode dev server with Start-Process on Windows so the health check and Playwright run can reach it.
Restore the resizable sidebar by accepting a width override in the sidebar component.
Use the app e2e-local script on Windows and skip the standalone server/health check steps.
Allow more time in CI and detect early server exits when waiting for the opencode server.
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.
What does this PR do?
How did you verify your code works?
Greptile Summary
This PR implements a comprehensive settings system for the desktop application with persistent configuration, sound effects, custom keybinds, and improved state management. Major changes include:
SettingsProvidercontext with persisted state for appearance (fonts, themes), notifications, sounds, and keybindsSelectcomponent withonHighlightcallback for hover previews (e.g., theme/sound previews)global-syncwith deduplication logic to prevent duplicate bootstrap/session loading requestsThe changes introduce significant new functionality while maintaining backward compatibility. The code follows SolidJS patterns with proper use of stores and effects.
Confidence Score: 4/5
packages/app/src/context/global-sync.tsxfor the reload mechanism andpackages/opencode/src/config/config.tsfor the JSONC patching logicImportant Files Changed
Sequence Diagram
sequenceDiagram participant User participant Layout participant Settings participant GlobalSync participant Config participant Server participant Instance Note over User,Instance: Settings Update Flow User->>Layout: Open settings dialog Layout->>Settings: Render settings UI User->>Settings: Change config (theme/sound/keybind) Settings->>Settings: Update local persisted state Note over User,Instance: Global Config Update Flow User->>Settings: Update server config Settings->>GlobalSync: updateConfig(config) GlobalSync->>GlobalSync: Set reload = "pending" GlobalSync->>Config: updateGlobal(config) Config->>Config: Parse & patch JSONC Config->>Config: Validate with Zod schema Config->>Server: Write config file Config->>Instance: disposeAll() Config->>GlobalSync: Emit global.disposed event GlobalSync->>GlobalSync: Set reload = "complete" GlobalSync->>GlobalSync: Process bootstrap queue GlobalSync->>Instance: bootstrapInstance(directory) Instance-->>GlobalSync: Return new state Note over User,Instance: Session Loading with Deduplication User->>Layout: Navigate to project Layout->>GlobalSync: child(directory) GlobalSync->>GlobalSync: ensureChild(directory) GlobalSync->>GlobalSync: Check booting Map alt Not already bootstrapping GlobalSync->>Instance: bootstrapInstance(directory) GlobalSync->>GlobalSync: Store promise in booting Map Instance-->>GlobalSync: Complete bootstrap GlobalSync->>GlobalSync: Remove from booting Map else Already bootstrapping GlobalSync-->>Layout: Return pending promise end Note over User,Instance: Select Component Preview Flow User->>Settings: Hover over theme option Settings->>Select: onHighlight(theme) Select->>Select: Check if key changed Select->>Settings: Call theme.previewTheme(id) Settings->>Layout: Apply preview Select->>Select: Store cleanup function User->>Settings: Move to different option Select->>Select: Call cleanup() Settings->>Layout: Cancel preview Select->>Settings: Call new preview User->>Settings: Select option Select->>Select: Call stop() cleanup Select->>Settings: onSelect(option)