fix: expose bounded session send decisions

This commit is contained in:
Codex
2026-07-12 10:18:34 +02:00
parent d996782c52
commit 4a0184921a
7 changed files with 574 additions and 3 deletions
+2 -1
View File
@@ -38,6 +38,7 @@ import { agentRunDryRunPlan, readAgentRunClientConfig } from "./config";
import { status } from "./control-plane";
import { arrayRecords, displayValue, isRecord, nextPagedResourceCommand, parseTaskManifest, pickCompact, relativeAge, renderFailureLines, renderResourceNextLines, renderTable, resourceName, shortId, stringOrDash, truncateMultiline, truncateOneLine } from "./options";
import { activeAgentRunRestTarget, agentRunRestRequest, runAgentRunRestCommand } from "./rest-bridge";
import { renderSessionSendResult } from "./session-send-render";
import { record, stringOrNull } from "./utils";
export function resolveAgentRunCancelPolicyTarget(config: UniDeskConfig | null, options: AgentRunResourceOptions): { configPath: string; spec: AgentRunLaneSpec; source: "selected-lane" | "default-lane" } | null {
@@ -130,7 +131,7 @@ export async function resourceSessionPromptCommand(config: UniDeskConfig | null,
if (ref.kind !== "session") throw new Error("send requires session/<sessionId>");
const sessionArgs = ["send", ref.name, ...stripLeadingResource(args, ref.name)];
const result = await runAgentRunRestCommand(config, "sessions", sessionArgs);
return renderMutationSummary(command, result, options, options.dryRun ? "Session send plan" : "Session send submitted");
return renderSessionSendResult(command, result, options);
}
export function renderedCliResult(ok: boolean, command: string, renderedText: string, contentType: RenderedCliResult["contentType"] = "text/plain"): RenderedCliResult {