GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(app): use correct server sdk for titlebar session lookup (#33536) · sujee/opencode@2ba18b8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/app/src/components
    • titlebar.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/app/src/components/titlebar.tsx‎

Copy file name to clipboardExpand all lines: packages/app/src/components/titlebar.tsx
+10-4Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -524,10 +524,16 @@ export function Titlebar(props: { update?: TitlebarUpdate }) {
524524
}
525525

526526
const [session] = createResource(
527-
() => tab.sessionId,
528-
(sessionID) =>
529-
serverSdk()
530-
.client.session.get({ sessionID })
527+
() => {
528+
const id = tab.sessionId
529+
const conn = server.list.find((s) => ServerConnection.key(s) === tab.server)
530+
if (!conn) return null
531+
const { sdk } = global.createServerCtx(conn)
532+
return { id, sdk }
533+
},
534+
({ id, sdk }) =>
535+
sdk.client.session
536+
.get({ sessionID: id })
531537
.then((x) => x.data)
532538
.catch(() => undefined),
533539
)

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.