tui: add consent dialog when sharing for the first time (#20525)

pull/14293/head^2
Aiden Cline 2026-04-01 20:58:57 -05:00 committed by GitHub
parent 789d86f7b0
commit df1c6c9e8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -360,6 +360,11 @@ export function Session() {
dialog.clear()
return
}
if (!kv.get("share_consent", false)) {
const ok = await DialogConfirm.show(dialog, "Share Session", "Are you sure you want to share it?")
if (ok !== true) return
kv.set("share_consent", true)
}
await sdk.client.session
.share({
sessionID: route.sessionID,