Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): show subagent models and running count in Lineage #12491

MergedBil0000(GitHub profile, opens in a new tab)merged 5 commits intot3code/codex-turn-mapping fromrefs/pull/12491/headmerged by shivamhwp(GitHub profile, opens in a new tab) View on GitHub

Showing 4 changed files with 61 additions and 10 deletions (loading 1).

x
0 of 4 viewed, 4 left
12 additions and 6 deletionsapps/web/src/components/chat/SubagentTooltipContent.tsxModified
View file
@@ -4,7 +4,7 @@
ServerProvider,
} from "@t3tools/contracts";
import { fileBasename } from "@t3tools/client-runtime/markdown-links";
-import { formatModelSlugName } from "@t3tools/shared/model";
+import { formatModelSlugName, resolveSelectableModel } from "@t3tools/shared/model";
import { getTriggerDisplayModelName } from "./providerIconUtils";
import { Fragment } from "react";
​
@@ -14,19 +14,25 @@
model: string | null;
provider?: ServerProvider | undefined;
parentThread?: Pick<OrchestrationV2ThreadShell, "projectId" | "worktreePath"> | undefined;
- childThread?: Pick<OrchestrationV2ThreadShell, "branch" | "worktreePath"> | undefined;
+ childThread?:
+ | Pick<OrchestrationV2ThreadShell, "branch" | "worktreePath" | "modelSelection">
+ | undefined;
parentProject?: Pick<OrchestrationProjectShell, "workspaceRoot"> | undefined;
childProject?: Pick<OrchestrationProjectShell, "id" | "title" | "workspaceRoot"> | undefined;
status: string;
result?: string | null | undefined;
progress?: string | null | undefined;
}) {
- const providerModel = props.provider?.models.find((candidate) => candidate.slug === props.model);
+ const model = props.model?.trim() || props.childThread?.modelSelection.model.trim();
+ const modelSlug = props.provider
+ ? resolveSelectableModel(props.provider.driver, model, props.provider.models)
+ : model;
+ const providerModel = props.provider?.models.find((candidate) => candidate.slug === modelSlug);