feat: restore git-backed review modes (#20845)

This commit is contained in:
Shoubhit Dash 2026-04-03 20:24:57 +05:30 committed by GitHub
parent 263dcf75b5
commit 35350b1d25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 1104 additions and 249 deletions

View file

@ -52,11 +52,7 @@ export const useSessionCommands = (actions: SessionCommandContext) => {
if (!id) return
return sync.session.get(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 hasReview = () => !!params.id
const normalizeTab = (tab: string) => {
if (!tab.startsWith("file://")) return tab
return file.tab(tab)