fix(vscode): tighten session ID regex to alphanumeric chars only

This commit is contained in:
Igor Šćekić
2026-02-24 16:35:40 +01:00
parent 4a86bf8664
commit 6efd4b1d5e
+1 -1
View File
@@ -112,7 +112,7 @@ export function activate(context: vscode.ExtensionContext) {
context.subscriptions.push(
vscode.window.registerUriHandler({
async handleUri(uri: vscode.Uri) {
const match = uri.path.match(/^\/s\/(.+)$/)
const match = uri.path.match(/^\/s\/([a-zA-Z0-9_-]+)$/)
if (!match) return
const sessionId = match[1]
console.log("[Kilo New] URI handler: opening cloud session:", sessionId)