feat(coding-agent): expose session metadata to bash tools (#6967)

This commit is contained in:
Armin Ronacher
2026-07-22 20:15:02 +02:00
committed by GitHub
parent c55ae2faa5
commit bb3d7d399c
16 changed files with 278 additions and 27 deletions
@@ -694,6 +694,10 @@ export class ExtensionRunner {
runner.assertActive();
return getModel();
},
get thinkingLevel() {
runner.assertActive();
return runner.runtime.getThinkingLevel();
},
isIdle: () => {
runner.assertActive();
return runner.isIdleFn();
@@ -317,6 +317,8 @@ export interface ExtensionContext {
modelRegistry: ModelRegistry;
/** Current model (may be undefined) */
model: Model<any> | undefined;
/** Current thinking level, when provided by the session runtime. */
thinkingLevel?: ThinkingLevel;
/** Whether the agent is idle (not streaming) */
isIdle(): boolean;
/** Whether project-local trust is active for this context. */