TeardownOptions
Interface: TeardownOptions
Defined in: src/core/toolSessions.ts:92
What a tool says about the cleanup it is registering.
Properties
key?
readonlyoptionalkey?:string
Defined in: src/core/toolSessions.ts:104
Dedup key within (tool, scope). Omitted → the tool gets one registration
per scope, which is right for a tool that holds exactly one thing.
Derive it with toolSessionKey rather than by hand: a key that is narrower than the identity it isolates is the cross-binding bug, and a key that is wider is a silent latency change.
label?
readonlyoptionallabel?:string
Defined in: src/core/toolSessions.ts:110
One free-form fact about what was opened (the language, the browser profile). Reported as-is; never a place for user data.
runnerId?
readonlyoptionalrunnerId?:string
Defined in: src/core/toolSessions.ts:107
The adapter holding the resource — CodeRunner.id, say. Reported so a
row names its backend instead of only its tool.
scope?
readonlyoptionalscope?:TeardownScope
Defined in: src/core/toolSessions.ts:95
Default 'run'. Refused by name when the door cannot honour it — see
ToolExecutionContext.teardownScopes.
