feat: expand subagent status visibility

This commit is contained in:
Peter Steinberger
2026-01-18 04:44:52 +00:00
parent 1ae415e395
commit b105745299
11 changed files with 643 additions and 1 deletions

View File

@@ -284,7 +284,7 @@ export function createClawdbotCodingTools(options?: {
];
const pluginGroups = buildPluginToolGroups({
tools,
toolMeta: (tool) => getPluginToolMeta(tool),
toolMeta: (tool) => getPluginToolMeta(tool as AnyAgentTool),
});
const profilePolicyExpanded = expandPolicyWithPluginGroups(profilePolicy, pluginGroups);
const providerProfileExpanded = expandPolicyWithPluginGroups(providerProfilePolicy, pluginGroups);

View File

@@ -348,6 +348,11 @@ export function resetSubagentRegistryForTests() {
persistSubagentRuns();
}
export function addSubagentRunForTests(entry: SubagentRunRecord) {
subagentRuns.set(entry.runId, entry);
persistSubagentRuns();
}
export function releaseSubagentRun(runId: string) {
const didDelete = subagentRuns.delete(runId);
if (didDelete) persistSubagentRuns();