summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src/pages
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-04-29 22:40:26 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-04-29 22:40:26 +0000
commit12cbfe5b640d41310cc62dc6aaa3e8bc112a7a1f (patch)
treee05971c25a187f6247b2a6c0f7a85e93c052f2ad /packages/app/src/pages
parentd7b7be1909d614a4022b345bdbeef0c1ec32e159 (diff)
downloadopencode-12cbfe5b640d41310cc62dc6aaa3e8bc112a7a1f.tar.gz
opencode-12cbfe5b640d41310cc62dc6aaa3e8bc112a7a1f.zip
chore: generate
Diffstat (limited to 'packages/app/src/pages')
-rw-r--r--packages/app/src/pages/layout.tsx22
1 files changed, 11 insertions, 11 deletions
diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsx
index 27eae67c0..7e9e2d32a 100644
--- a/packages/app/src/pages/layout.tsx
+++ b/packages/app/src/pages/layout.tsx
@@ -65,7 +65,13 @@ import { Titlebar } from "@/components/titlebar"
import { useServer } from "@/context/server"
import { useLanguage, type Locale } from "@/context/language"
import { pathKey } from "@/utils/path-key"
-import { displayName, effectiveWorkspaceOrder, errorMessage, latestRootSession, sortedRootSessions } from "./layout/helpers"
+import {
+ displayName,
+ effectiveWorkspaceOrder,
+ errorMessage,
+ latestRootSession,
+ sortedRootSessions,
+} from "./layout/helpers"
import {
collectNewSessionDeepLinks,
collectOpenProjectDeepLinks,
@@ -640,8 +646,7 @@ export default function Layout(props: ParentProps) {
if (!expanded) continue
const key = pathKey(directory)
const project = projects.find(
- (item) =>
- pathKey(item.worktree) === key || item.sandboxes?.some((sandbox) => pathKey(sandbox) === key),
+ (item) => pathKey(item.worktree) === key || item.sandboxes?.some((sandbox) => pathKey(sandbox) === key),
)
if (!project) continue
if (project.vcs === "git" && layout.sidebar.workspaces(project.worktree)()) continue
@@ -1218,10 +1223,7 @@ export default function Layout(props: ParentProps) {
const key = pathKey(directory)
const project = layout.projects
.list()
- .find(
- (item) =>
- pathKey(item.worktree) === key || item.sandboxes?.some((sandbox) => pathKey(sandbox) === key),
- )
+ .find((item) => pathKey(item.worktree) === key || item.sandboxes?.some((sandbox) => pathKey(sandbox) === key))
if (project) return project.worktree
const known = Object.entries(store.workspaceOrder).find(
@@ -1634,7 +1636,7 @@ export default function Layout(props: ParentProps) {
})
const handleDelete = () => {
- const leaveDeletedWorkspace = !!params.dir && pathKey(currentDir()) === pathKey(props.directory)
+ const leaveDeletedWorkspace = !!params.dir && pathKey(currentDir()) === pathKey(props.directory)
if (leaveDeletedWorkspace) {
navigateWithSidebarReset(`/${base64Encode(props.root)}/session`)
}
@@ -1863,9 +1865,7 @@ export default function Layout(props: ParentProps) {
const active = currentProject()
const directory = pathKey(active?.worktree ?? "") === pathKey(project.worktree) ? currentDir() : undefined
const extra =
- directory &&
- pathKey(directory) !== pathKey(local) &&
- !dirs.some((item) => pathKey(item) === pathKey(directory))
+ directory && pathKey(directory) !== pathKey(local) && !dirs.some((item) => pathKey(item) === pathKey(directory))
? directory
: undefined
const pending = extra ? WorktreeState.get(extra)?.status === "pending" : false