refactor: remove old git-diff and file-explorer screens

- Delete standalone /git-diff and /file-explorer routes
- Update agent menu to open explorer sidebar instead of navigating
- Update file path clicks in chat to open sidebar
- Fix unnecessary re-renders in sidebar panes by using agents.has() instead of agents.get()

🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
Mohamed Boudra
2026-01-09 11:05:20 +07:00
parent 3ba778eea7
commit 6f278cb6a6
8 changed files with 21 additions and 2251 deletions
@@ -70,10 +70,10 @@ export function FileExplorerPane({
const { connectionStates } = useDaemonConnections();
const daemonProfile = connectionStates.get(serverId)?.daemon;
const agent = useSessionStore((state) =>
const agentExists = useSessionStore((state) =>
agentId && state.sessions[serverId]
? state.sessions[serverId]?.agents.get(agentId)
: undefined
? state.sessions[serverId]?.agents.has(agentId)
: false
);
const explorerState = useSessionStore((state) =>
@@ -763,7 +763,7 @@ export function FileExplorerPane({
setThumbnailLoadingMap({});
}, [activePath, viewMode]);
if (!agent) {
if (!agentExists) {
return (
<View style={styles.centerState}>
<Text style={styles.errorText}>Agent not found</Text>