mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 14:30:29 +00:00
feat: restore git-backed review modes (#20845)
This commit is contained in:
parent
263dcf75b5
commit
35350b1d25
23 changed files with 1104 additions and 249 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue