fix(agents): enforce subagent envelope inheritance on ACP child sessions [AI-assisted] (#69383)

* fix: address issue

* fix: address review feedback

* fix: finalize issue changes

* fix: address PR review feedback

* address build faiure

* fix: address PR review feedback

* fix: address PR review feedback

* fix: address PR review feedback

* fix: address PR review feedback

* fix: address PR review feedback

* fix: address PR review feedback

* fix: address PR review feedback

* fix: address PR review feedback

* fix: address PR review feedback

* fix: address PR review feedback

* fix: address PR review feedback
This commit is contained in:
Pavan Kumar Gondhi
2026-04-21 17:25:25 +05:30
committed by GitHub
parent 89b6d02481
commit 31160dc069
18 changed files with 997 additions and 30 deletions

View File

@@ -16,6 +16,7 @@ import {
buildPluginSnapshotReport,
formatPluginCompatibilityNotice,
} from "../plugins/status.js";
import type { PluginLogger } from "../plugins/types.js";
import {
resolveUninstallChannelConfigKeys,
resolveUninstallDirectoryTarget,
@@ -66,6 +67,13 @@ export type PluginUninstallOptions = {
dryRun?: boolean;
};
const quietPluginJsonLogger: PluginLogger = {
debug: () => undefined,
info: () => undefined,
warn: () => undefined,
error: () => undefined,
};
function formatInspectSection(title: string, lines: string[]): string[] {
if (lines.length === 0) {
return [];
@@ -144,7 +152,9 @@ export function registerPluginsCli(program: Command) {
.option("--enabled", "Only show enabled plugins", false)
.option("--verbose", "Show detailed entries", false)
.action((opts: PluginsListOptions) => {
const report = buildPluginSnapshotReport();
const report = buildPluginSnapshotReport(
opts.json ? { logger: quietPluginJsonLogger } : undefined,
);
const list = opts.enabled
? report.plugins.filter((p) => p.status === "loaded")
: report.plugins;
@@ -246,7 +256,10 @@ export function registerPluginsCli(program: Command) {
.option("--json", "Print JSON")
.action((id: string | undefined, opts: PluginInspectOptions) => {
const cfg = loadConfig();
const report = buildPluginDiagnosticsReport({ config: cfg });
const report = buildPluginDiagnosticsReport({
config: cfg,
...(opts.json ? { logger: quietPluginJsonLogger } : {}),
});
if (opts.all) {
if (id) {
defaultRuntime.error("Pass either a plugin id or --all, not both.");
@@ -254,6 +267,7 @@ export function registerPluginsCli(program: Command) {
}
const inspectAll = buildAllPluginInspectReports({
config: cfg,
...(opts.json ? { logger: quietPluginJsonLogger } : {}),
report,
});
const inspectAllWithInstall = inspectAll.map((inspect) => ({
@@ -322,6 +336,7 @@ export function registerPluginsCli(program: Command) {
const inspect = buildPluginInspectReport({
id,
config: cfg,
...(opts.json ? { logger: quietPluginJsonLogger } : {}),
report,
});
if (!inspect) {