chore: generate

This commit is contained in:
opencode-agent[bot]
2026-06-05 06:31:37 +00:00
parent 7f33576f46
commit f6197cefe1
12 changed files with 136 additions and 39 deletions
+13 -3
View File
@@ -227,7 +227,9 @@ describe("layout workspace helpers", () => {
})
test("scopes home project selection by server", () => {
expect(toggleHomeProjectSelection(undefined, serverKey("https://debian.example"), "/home/luke/repos/amazon")).toEqual({
expect(
toggleHomeProjectSelection(undefined, serverKey("https://debian.example"), "/home/luke/repos/amazon"),
).toEqual({
server: serverKey("https://debian.example"),
directory: "/home/luke/repos/amazon",
})
@@ -270,11 +272,19 @@ describe("layout workspace helpers", () => {
})
test("defers home project navigation until its server is active", () => {
expect(homeProjectNavigation(serverKey("sidecar"), serverKey("https://debian.example"), "/YW1hem9u/session")).toEqual({
expect(
homeProjectNavigation(serverKey("sidecar"), serverKey("https://debian.example"), "/YW1hem9u/session"),
).toEqual({
server: serverKey("https://debian.example"),
href: "/YW1hem9u/session",
})
expect(homeProjectNavigation(serverKey("https://debian.example"), serverKey("https://debian.example"), "/YW1hem9u/session")).toEqual({
expect(
homeProjectNavigation(
serverKey("https://debian.example"),
serverKey("https://debian.example"),
"/YW1hem9u/session",
),
).toEqual({
href: "/YW1hem9u/session",
})
})
@@ -4,7 +4,11 @@ import { useNotification } from "@/context/notification"
import { usePermission } from "@/context/permission"
import { sessionPermissionRequest } from "@/pages/session/composer/session-request-tree"
export function useSessionTabAvatarState(directory: Accessor<string>, sessionId: Accessor<string>, active: Accessor<boolean> = () => true) {
export function useSessionTabAvatarState(
directory: Accessor<string>,
sessionId: Accessor<string>,
active: Accessor<boolean> = () => true,
) {
const globalSync = useServerSync()
const notification = useNotification()
const permission = usePermission()