fix(app): resolve workspace reload crash and fix non-git status and UI changes - #39314
Open
DhruvNimavat78 wants to merge 12 commits into
Open
fix(app): resolve workspace reload crash and fix non-git status and UI changes#39314DhruvNimavat78 wants to merge 12 commits into
DhruvNimavat78 wants to merge 12 commits into
Conversation
…ssociated styling and configurations
# Conflicts: # packages/app/src/pages/home.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.
Issue for this PR
Closes #38672
Type of change
What does this PR do?
Fixes Workspace Reload Crash:
loadCommandsandloadProvidersQuerythrewTypeError: Cannot read properties of undefined (reading 'list')when reading singular API properties (command,provider,model) that were undefined on the generated client. This showed a runtime error toast: "Failed to reload ".api.command ?? api.commands,providerList ? providerList(...) : Promise.resolve(...)) inbootstrap.tsandserver-sync.tsx. Expandedserver-compat.tsto map both singular and plural endpoint aliases (command/commands,provider/providers,model/models,agent/agents,reference/references).UI Improvements & Non-Git Status Badge:
/ 🌿 master) from previously opened repositories or didn't indicate Git status.PromptGitStatusinprompt-workspace-selector.tsxto display/ 🌿 non git(with a tooltip reading "Not a git repository") for non-Git directories, and removed cross-worktree branch fallbacks innew-session.tsx.session-turn.tsx,session-review-file-preview-v2.tsx,session-new-design-view.tsx) for smoother file interaction and visual consistency.Type Definition Fixes:
CompatiblePermissionApireply signature inserver-compat.tsto support{ sessionID, requestID, permissionID, reply, response, location }.How did you verify your code works?
test,color,New folder (2)).bun typecheckinpackages/app.Screen Recording
UI & Non-Git Status Demo
Revert Changes & File Preview Demo
Checklist
demo.mp4