mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 22:40:22 +00:00
ignore: revert 3 commits that broke dev branch (#18260)
This commit is contained in:
parent
0d7e62a532
commit
aeece6166b
30 changed files with 232 additions and 1200 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue