Skip to content

Harden workspace recovery and SCM organization#64

Merged
ZYKJShadow merged 4 commits into
masterfrom
hotfix/ui-storage
Apr 27, 2026
Merged

Harden workspace recovery and SCM organization#64
ZYKJShadow merged 4 commits into
masterfrom
hotfix/ui-storage

Conversation

@ZYKJShadow
Copy link
Copy Markdown
Owner

Overview

This PR hardens workspace startup recovery and improves the Agent-side Git/SCM experience. It makes corrupted workspace agent storage safer to read, adds an application-level fallback for startup failures, and keeps hidden or grouped workspace/file-list behavior consistent across sessions.

Changes

  • Validate and normalize workspace agent project data before merging it into runtime state.
  • Quarantine invalid .async/agent.json files instead of repeatedly failing on startup.
  • Add an IPC recovery path that backs up and resets the current workspace .async/ directory.
  • Add an application error boundary with reload and .async/ backup/reset recovery actions.
  • Add persisted folder grouping for Agent Git changed files, including collapsible directory groups and root-level handling.
  • Respect hidden workspace entries in the Agent sidebar workspace selector.
  • Refresh related styling and localization for the SCM grouping and recovery UI.
  • Add tests for workspace agent storage normalization/quarantine behavior and SCM path grouping.

Verification

  • npm test -- main-src/workspaceAgentStore.test.ts src/GitScmVirtualLists.test.ts src/app/agentSidebarWorkspaceList.test.ts
  • npm run typecheck

Filter hidden workspace paths when building the Agent sidebar workspace list, so removed entries do not reappear. Remove the current-workspace cleanup that cleared hidden state, and update the selector test to cover the new behavior.
Add a persisted toggle in the Agent Git panel to group changed files by folder. Introduce collapsible grouped change cards with root-level handling, plus i18n labels and styling for the grouped SCM view.
@ZYKJShadow ZYKJShadow merged commit 75c3247 into master Apr 27, 2026
1 check passed
@ZYKJShadow ZYKJShadow deleted the hotfix/ui-storage branch April 27, 2026 05:06
This was referenced Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant