feat(core): allow passing workspaceID into session create endpoint (#16798)

This commit is contained in:
James Long
2026-03-10 11:12:51 -04:00
committed by GitHub
parent 69ddc91c35
commit a4330a225d
8 changed files with 18 additions and 3 deletions
@@ -37,6 +37,7 @@ import { DialogSkill } from "../dialog-skill"
export type PromptProps = {
sessionID?: string
workspaceID?: string
visible?: boolean
disabled?: boolean
onSubmit?: () => void
@@ -542,7 +543,9 @@ export function Prompt(props: PromptProps) {
let sessionID = props.sessionID
if (sessionID == null) {
const res = await sdk.client.session.create({})
const res = await sdk.client.session.create({
workspaceID: props.workspaceID,
})
if (res.error) {
console.log("Creating a session failed:", res.error)