diff options
| author | Adam <[email protected]> | 2025-11-18 11:00:27 -0600 |
|---|---|---|
| committer | opencode <[email protected]> | 2025-11-18 17:07:34 +0000 |
| commit | fc5fc2c570e6ac5a6f9647080b80f7fec0c4b605 (patch) | |
| tree | a3971bfbe17308df9f2d3e1771c0ab544900c099 /packages/desktop/src/components | |
| parent | 4069999b782cc00d4e707f5eca32082bdfad45bc (diff) | |
| download | opencode-fc5fc2c570e6ac5a6f9647080b80f7fec0c4b605.tar.gz opencode-fc5fc2c570e6ac5a6f9647080b80f7fec0c4b605.zip | |
wip(desktop): new layout work
Diffstat (limited to 'packages/desktop/src/components')
| -rw-r--r-- | packages/desktop/src/components/prompt-input.tsx | 2 | ||||
| -rw-r--r-- | packages/desktop/src/components/session-review.tsx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/desktop/src/components/prompt-input.tsx b/packages/desktop/src/components/prompt-input.tsx index 2ae5f87fc..c2948a659 100644 --- a/packages/desktop/src/components/prompt-input.tsx +++ b/packages/desktop/src/components/prompt-input.tsx @@ -266,7 +266,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => { if (!existing) { const created = await sdk.client.session.create() existing = created.data ?? undefined - if (existing) navigate(`/session/${existing.id}`) + if (existing) navigate(`${local.slug()}/session/${existing.id}`) } if (!existing) return diff --git a/packages/desktop/src/components/session-review.tsx b/packages/desktop/src/components/session-review.tsx index 8aefbbd46..6022164c5 100644 --- a/packages/desktop/src/components/session-review.tsx +++ b/packages/desktop/src/components/session-review.tsx @@ -1,4 +1,3 @@ -import { useLocal } from "@/context/local" import { useSession } from "@/context/session" import { FileIcon } from "@/ui" import { getDirectory, getFilename } from "@/utils" @@ -6,9 +5,10 @@ import { Accordion, Button, Diff, DiffChanges, Icon, IconButton, Tooltip } from import { For, Match, Show, Switch } from "solid-js" import { StickyAccordionHeader } from "./sticky-accordion-header" import { createStore } from "solid-js/store" +import { useLayout } from "@/context/layout" export const SessionReview = (props: { split?: boolean; class?: string; hideExpand?: boolean }) => { - const local = useLocal() + const layout = useLayout() const session = useSession() const [store, setStore] = createStore({ open: session.diffs().map((d) => d.file), @@ -51,7 +51,7 @@ export const SessionReview = (props: { split?: boolean; class?: string; hideExpa icon="expand" variant="ghost" onClick={() => { - local.layout.review.tab() + layout.review.tab() session.layout.setActiveTab("review") }} /> |
