mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-10 03:27:59 +00:00
The root cause of four related issues: `repoRef.current` was never set during initial server connection — only `switchRepo()` set it. Every backend call (queries, search, grep, readFile) passed `undefined` as the repo parameter, so the server's `resolveRepo()` fell back to `repos[0]`. Changes: - Expose `setCurrentRepo` from useAppState and call it in `handleServerConnect` - Use `result.repoInfo.name` (canonical server name) instead of path parsing - Parse `?project=` URL param during auto-connect, pass it to `connectToServer` - Update URL with `?project=` on repo switch so F5/bookmarks work - Pass `projectName` as `repo` in CodeReferencesPanel's `readFile` calls Closes #139, closes #634, closes #635, closes #636 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app-state | ||
| useAppState.tsx | ||
| useBackend.ts | ||
| useSettings.ts | ||
| useSigma.ts | ||