fix(orchestration-v2): show reported subagent models #14108
MergedBil0000(GitHub profile, opens in a new tab)merged 3 commits into
main fromrefs/pull/14108/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
Bil0000(GitHub profile, opens in a new tab) changed the title
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- apps/server/src/orchestration-v2/Adapters/CursorAdapterV2.ts line 1556Resolvedby Bil0000(GitHub profile, opens in a new tab)@@ -1577,7 +1577,7 @@15771577 },15781578 prompt: args.prompt,15791579 title: args.description,1580- model: args.model?.trim() || null,15811580 result: null,15821581 startedAt: now,15831582 }),1583+ model: args.model?.trim() || existing?.task.model || null,
juliusmarminge added labelsmacroscope-review
juliusmarminge closed this
juliusmarminge added labelstriage:keep-open
juliusmarminge reopened this
- apps/web/src/components/chat/ThreadDetailsControl.tsx line 57OutdatedResolvedby Bil0000(GitHub profile, opens in a new tab)@@ -0,0 +37,21 @@37+ multiline = false,38+ tone = "default",39+ className,40+ size = "default",41+ variant = "default",42+ render,43+ ...props44+}: ComponentProps<typeof Button> & {45+ panel?: boolean;46+ part?: keyof typeof parts;47+ multiline?: boolean;48+ tone?: "default" | "muted" | "destructive";49+}) {50+ const control = useRender({51+ defaultTagName: "button",52+ render,53+ props: mergeProps<"button">(54+ {55+ type: render ? undefined : "button",56+ className: cn(57+ "relative inline-flex shrink-0 cursor-pointer items-center whitespace-nowrap border outline-none transition-[box-shadow,scale] [&:active:not([aria-haspopup])]:scale-[0.97] focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 disabled:pointer-events-none disabled:opacity-64 aria-disabled:cursor-not-allowed aria-disabled:opacity-64 [&_svg]:shrink-0",
- packages/effect-codex-app-server/src/replay.ts line 440OutdatedResolvedby Bil0000(GitHub profile, opens in a new tab)@@ -0,0 +421,21 @@421+ return;422+ }423+424+ const entry = transcript.entries[current.cursor];425+ if (!entry) {426+ return;427+ }428+429+ if (entry.type === "emit_inbound") {430+ if (driver.beforeEmitInbound !== undefined) {431+ yield* driver.beforeEmitInbound(entry);432+ }433+ if (entry.afterMs !== undefined && entry.afterMs > 0) {434+ yield* Effect.sleep(Duration.millis(entry.afterMs));435+ }436+ yield* Queue.offer(input, encodeInboundFrame(entry.frame));437+ yield* Ref.update(state, (latest) => ({ ...latest, cursor: latest.cursor + 1 }));438+ continue;439+ }440+441+ if (entry.type === "runtime_exit") {apps/server/src/provider/acp/AcpRegistryProbe.ts lines 55 to 55OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +35,21 @@35+const MAX_ID_LENGTH = 128;36+const MAX_NAME_LENGTH = 160;37+const MAX_DESCRIPTION_LENGTH = 1_024;38+const MAX_COMMANDS = 128;39+const MAX_COMMAND_LINE_LENGTH = 2_048;40+// Covers a cold package command launch and ACP initialization after registry41+// preparation globally installs the exact package.42+const PROBE_TIMEOUT_SECONDS = 60;43+const PROBE_TIMEOUT = `${PROBE_TIMEOUT_SECONDS} seconds`;44+const COMMAND_ADVERTISEMENT_GRACE = "500 millis";45+46+const boundedText = (value: string, maximumLength: number): string =>47+ value.trim().slice(0, maximumLength);48+49+const boundedOpaqueValue = (value: string, maximumLength: number): string | undefined =>50+ value.length > 0 && value === value.trim() && value.length <= maximumLength ? value : undefined;51+52+export function normalizeAcpRegistryWebUrl(value: string): string | undefined {53+ if (value.length > 2_048 || !URL.canParse(value)) return undefined;54+ const url = new URL(value);55+ return url.protocol === "https:" || url.protocol === "http:" ? url.href : undefined;apps/server/src/orchestration-v2/Orchestrator.ts line 5928OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +5661,21 @@5661+ threadId: command.threadId,5662+ runId,5663+ nodeId: rootNodeId,5664+ providerThreadId: providerThread.id,5665+ providerTurnId: null,5666+ nativeItemRef: null,5667+ parentItemId: null,5668+ ordinal: ordinal * 100,5669+ status: "completed",5670+ title: null,5671+ startedAt: now,5672+ completedAt: now,5673+ updatedAt: now,5674+ type: "user_message",5675+ messageId: command.messageId,5676+ inputIntent: "turn_start",5677+ text: dispatchText,5678+ ...(command.context ? { context: command.context } : {}),5679+ attachments: command.attachments,5680+ };5681+ const activeHandoff = portableForkHandoff ?? mergeBackHandoff ?? providerSwitchHandoff;apps/server/src/project/http.ts line 55OutdatedResolvedby Bil0000(GitHub profile, opens in a new tab)@@ -0,0 +35,21 @@35+ Effect.fnUntraced(function* (handlers) {36+ const projects = yield* ProjectService;37+ const startup = yield* ServerRuntimeStartup.ServerRuntimeStartup;38+39+ return handlers40+ .handle(41+ "snapshot",42+ Effect.fn("environment.projects.snapshot")(function* (args) {43+ yield* annotateEnvironmentRequest(args.endpoint.name);44+ yield* requireEnvironmentScope(AuthOrchestrationReadScope);45+ return yield* projects.snapshot.pipe(46+ Effect.catch((cause) => failEnvironmentInternal("project_snapshot_failed", cause)),47+ );48+ }),49+ )50+ .handle(51+ "mutate",52+ Effect.fn("environment.projects.mutate")(function* (args) {53+ yield* annotateEnvironmentRequest(args.endpoint.name);54+ yield* requireEnvironmentScope(AuthOrchestrationOperateScope);55+ const operation = projectMutationOperation(projects, args.payload);apps/server/src/project/ProjectService.ts lines 385 to 387OutdatedResolvedby Bil0000(GitHub profile, opens in a new tab)@@ -0,0 +367,21 @@367+ const bootstrap: ProjectService["Service"]["bootstrap"] = Effect.fn("ProjectService.bootstrap")(368+ function* (input) {369+ const existing = yield* getByWorkspaceRoot(input.workspaceRoot);370+ if (Option.isSome(existing)) return { project: existing.value, created: false };371+ return { project: yield* create(input), created: true };372+ },373+ );374+375+ const deleteProject: ProjectService["Service"]["delete"] = Effect.fn("ProjectService.delete")(376+ function* (input) {377+ const { projectId } = input;378+ const existing = yield* projects379+ .getById({ projectId })380+ .pipe(381+ Effect.mapError(382+ (cause) => new ProjectOperationError({ operation: "read-project", projectId, cause }),383+ ),384+ );385+ if (Option.isNone(existing) || existing.value.deletedAt !== null) {386+ return yield* new ProjectNotFoundError({ projectId });387+ }
- apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.ts line 2676Resolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -2670,7 +2670,7 @@26702670 nativeTaskRef: nativeItemRef,26712671 prompt: update.prompt,26722672 title: update.title,2673- model: update.model,26742673 result: null,26752674 startedAt: now,26762675 }),2676+ model: update.model?.trim() || existing?.task.model || null,apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts lines 2673 to 2675Resolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -2661,6 +2670,6 @@26612670 }26622671 if (task.model === null) {26632672 yield* client.raw2664- .request("thread/resume", { threadId: input.nativeThreadId, excludeTurns: true })2673+ .request("thread/read", { threadId: input.nativeThreadId, includeTurns: false })26652674 .pipe(2666- Effect.flatMap(decodeCodexChildModel),2675+ Effect.flatMap(decodeCodexChildThread),
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
Yash-Singh1(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed