Skip to content

fix(ui): refresh active project metadata after rename - #1

Merged
devswha merged 1 commit into
mainfrom
fix/project-rename-selection-sync
Aug 16, 2026
Merged

fix(ui): refresh active project metadata after rename#1
devswha merged 1 commit into
mainfrom
fix/project-rename-selection-sync

Conversation

@devswha

@devswha devswha commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • reconcile the active project with freshly fetched project metadata
  • keep expanded session pages intact while applying a renamed display name
  • add regression coverage for rename synchronization and expanded-session preservation

CUA reproduction

  1. Select a project.
  2. Rename it from the sidebar.
  3. Before this fix, the sidebar changed immediately but the document title and active-project header retained the old name until the project was reselected.
  4. With this fix, the sidebar and document title update together (CUA Project Fixed - Gajae Code App).

Verification

  • node --import tsx --test src/hooks/useProjectsState.test.ts (7 passed)
  • npm run typecheck
  • npx eslint src/hooks/useProjectsState.ts src/hooks/useProjectsState.test.ts
  • CUA: renamed selected project and confirmed title updated without reselection

@devswha

devswha commented Aug 16, 2026

Copy link
Copy Markdown
Owner Author

CI reaches only the pre-existing npm audit gate and fails on 10 high-severity dependency findings before typecheck/tests. Tracked separately in #2. The focused regression test, full local typecheck, focused lint, and CUA rename scenario all pass.

@devswha
devswha force-pushed the fix/project-rename-selection-sync branch from 8d9e453 to 58d6b45 Compare August 16, 2026 19:15
@devswha
devswha merged commit 721d689 into main Aug 16, 2026
3 of 4 checks passed
@devswha
devswha deleted the fix/project-rename-selection-sync branch August 16, 2026 19:34
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