feat(coding-agent): expose session metadata to bash tools (#6967)
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user