revert: roll back git-backed review modes (#19295)

This commit is contained in:
Shoubhit Dash
2026-03-26 10:14:57 -04:00
committed by GitHub
parent d500a8432a
commit 1b028d0632
23 changed files with 228 additions and 1103 deletions
@@ -56,7 +56,11 @@ export const useSessionCommands = (actions: SessionCommandContext) => {
if (!id) return
return sync.session.get(id)
}
const hasReview = () => !!params.id
const hasReview = () => {
const id = params.id
if (!id) return false
return Math.max(info()?.summary?.files ?? 0, (sync.data.session_diff[id] ?? []).length) > 0
}
const normalizeTab = (tab: string) => {
if (!tab.startsWith("file://")) return tab
return file.tab(tab)