fix(inspector)!: retain context lifetimes across protocol ID reuse (#9471)

This commit is contained in:
morluto authored and GitHub committed 2026-11-08 22:04:35 +00:00
1 parent 00a6524b9a
commit 9e78606e2b
9 files changed
+316 -44

No files matched your search

@@ -121,7 +121,18 @@ const javascriptRuntimeScriptSchema = z.strictObject({
.describe(
"Exact Inspector URL for an authorized file script, retained separately from its verified filesystem path.",
),
execution_context_key: z.string().nullable(),
execution_context_key: z
.string()
.nullable()
.describe(
"Capture-local observed context lifetime associated with this script; null when no context creation was observed.",
),
execution_context_id: z
.int()
.nullable()
.describe(
"Numeric execution-context ID reported for the script, independent of whether its lifetime was observed.",
),
cdp_hash: z.string().nullable(),
length: z
.int()
@@ -138,7 +149,17 @@ const javascriptRuntimeScriptSchema = z.strictObject({
});
const javascriptRuntimeContextSchema = z.strictObject({
context_key: z.string().min(1),
context_key: z
.string()
.min(1)
.describe(
"Capture-local context lifetime key used to associate scripts with this observed context.",
),
execution_context_id: z
.int()
.describe(
"Numeric execution-context ID reported by the protocol; IDs can be reused across lifetimes.",
),
state: z.enum(["created", "destroyed", "cleared"]),
name: z.string().nullable(),
origin: z.string().nullable(),