Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f3e2b5d
fix(web): allow expanding duplicate tool call commands (#10981)
Yash-Singh1 Sep 9, 2026
11f7d51
feat(web): zoom and pan expanded images (#10869)
maria-rcks Sep 9, 2026
007a85c
fix(ui): use available space for composer model names (#11002)
juliusmarminge Sep 9, 2026
f2e906e
fix(web): show message copy buttons on touch devices (#11020)
maria-rcks Sep 10, 2026
24ba213
fix(web): middle-click pastes in the terminal on Linux (#11018)
maria-rcks Sep 10, 2026
6055943
feat: add blue and orange diff color palette (#10671)
maria-rcks Sep 10, 2026
49ff0dc
fix(web): prevent seams in the topbar scroll fade (#10914)
caezium Sep 10, 2026
35b0e68
fix(web): fit provider update text inside sidebar notices (#11034)
MatthewFeroz Sep 10, 2026
d3a11e7
fix(web): collapse a tool call by clicking its expanded label (#11017)
maria-rcks Sep 10, 2026
d43faae
feat(command-palette): show environments in search results (#10722)
Cyberlane Sep 10, 2026
8362b5b
fix(chat): fold question answers into tool activity (#11014)
maria-rcks Sep 11, 2026
0fd362a
fix(usage): flag unpriced model activity instead of showing $0.00 (#1…
maria-rcks Sep 11, 2026
cd1bc88
perf(web): format minimap previews only when opened (#11181)
juliusmarminge Sep 11, 2026
41b7ec4
perf(web): reuse completed Markdown prefixes while streaming (#11193)
juliusmarminge Sep 11, 2026
551c50a
perf(web): resume syntax highlighting from completed lines (#11196)
juliusmarminge Sep 11, 2026
a0bfbc9
perf(web): preserve completed code-line DOM while streaming (#11198)
juliusmarminge Sep 11, 2026
d5fae19
perf(web): huge-thread switch no longer blanks the chat pane (#11169)
juliusmarminge Sep 11, 2026
7f9dc0c
fix(web): show platform file manager icons in Open menu (#11228)
Bil0000 Sep 11, 2026
5812346
perf(web): avoid scanning chat history for sidebar backgrounds (#11206)
juliusmarminge Sep 11, 2026
1691412
perf(client): reduce remote request and message sync overhead (#11029)
Bil0000 Sep 11, 2026
6750ff3
fix(web): refresh usage limit countdowns without switching tabs (#11187)
t3-code[bot] Sep 11, 2026
5091a7a
perf(client-runtime): speed up message sync on desktop and mobile (#1…
Bil0000 Sep 11, 2026
c270806
fix(web): themed panel toggles show their disabled state (#11188)
flamboh Sep 11, 2026
f9ed452
fix(web): use branch wording in commit dialogs (#11281)
shivamhwp Sep 11, 2026
8737740
fix(test): drain worker broadcasts before restoring browser globals (…
maria-rcks Sep 12, 2026
ddadd45
fix(web): keep sidebar scroll position when pinning threads (#10757)
saphid Sep 12, 2026
aa29544
fix(upstream): preserve Pylon chat context and validate shared folding
rynfar Sep 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/mobile/src/components/ComposerToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function ComposerInlineControl(props: {
readonly icon?: ComponentProps<typeof SymbolView>["name"];
readonly iconNode?: ReactNode;
readonly label: string;
readonly maxWidth?: number;
readonly maxWidth?: ViewStyle["maxWidth"];
readonly onPress?: () => void;
readonly selected?: boolean;
readonly static?: boolean;
Expand Down
35 changes: 18 additions & 17 deletions apps/mobile/src/features/threads/NewTaskDraftScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import {
ComposerActionButton,
ComposerInlineControl,
ComposerToolbarRow,
ComposerToolbarScroller,
} from "../../components/ComposerToolbar";
import { AndroidScreenHeader } from "../../components/AndroidScreenHeader";
import { ComposerAttachmentButton } from "../../components/ComposerAttachmentButton";
Expand Down Expand Up @@ -1349,21 +1348,23 @@ export function NewTaskDraftScreen(props: {
onPickMedia={handlePickMedia}
onPickFiles={handlePickFiles}
/>
<ComposerToolbarScroller align="end" contentPaddingRight={0} fadeSurface="sheet">
<ComposerInlineControl
accessibilityLabel="Model and reasoning settings"
disabled={isComposerInteractionLocked}
emphasized
iconNode={
<ProviderIcon
provider={flow.selectedModelOption?.providerDriver}
size={16}
/>
}
label={flow.selectedModelOption?.label ?? "Choose model"}
maxWidth={152}
onPress={settingsSheetPresentation.open}
/>
<View className="min-w-0 flex-1 flex-row items-center justify-end gap-2">
<View className="min-w-0 shrink">
<ComposerInlineControl
accessibilityLabel="Model and reasoning settings"
disabled={isComposerInteractionLocked}
emphasized
iconNode={
<ProviderIcon
provider={flow.selectedModelOption?.providerDriver}
size={16}
/>
}
label={flow.selectedModelOption?.label ?? "Choose model"}
maxWidth="100%"
onPress={settingsSheetPresentation.open}
/>
</View>
{flow.planModeEnabled ? (
<ComposerInlineControl
accessibilityHint={`Switches to ${flow.interactionMode === "plan" ? "Build" : "Plan"} mode`}
Expand All @@ -1384,7 +1385,7 @@ export function NewTaskDraftScreen(props: {
showChevron={false}
/>
) : null}
</ComposerToolbarScroller>
</View>
</>
)}
<ComposerDictationPrimaryAction
Expand Down
13 changes: 7 additions & 6 deletions apps/mobile/src/features/threads/QuestionAnswerHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type {
UserInputAttachments,
} from "@t3tools/contracts";
import { Image, Linking, Pressable, View } from "react-native";
import { getQuestionAnswerText } from "@t3tools/client-runtime/work-log/user-input";
import { AppText as Text } from "../../components/AppText";
import { useAssetUrl } from "../../state/assets";

Expand Down Expand Up @@ -41,6 +42,7 @@ export function QuestionAnswerHistory(props: {
<View className="gap-2">
{[
...new Set([
...Object.keys(props.answer.questionTextById ?? {}),
...Object.keys(props.answer.answers),
...Object.keys(props.answer.attachmentsByQuestionId),
]),
Expand All @@ -51,12 +53,11 @@ export function QuestionAnswerHistory(props: {
{props.answer.questionTextById[questionId]}
</Text>
) : null}
<Text className="text-sm text-foreground">
{[props.answer.answers[questionId]]
.flat()
.filter((value): value is string => typeof value === "string")
.join(", ")}
</Text>
{getQuestionAnswerText(props.answer.answers[questionId]) ? (
<Text className="ml-3 text-sm text-foreground-muted">
{getQuestionAnswerText(props.answer.answers[questionId])}
</Text>
) : null}
{(props.answer.attachmentsByQuestionId[questionId] ?? []).map((attachment) => (
<AnswerFile
key={attachment.id}
Expand Down
34 changes: 18 additions & 16 deletions apps/mobile/src/features/threads/ThreadComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1863,22 +1863,24 @@ export const ThreadComposer = memo(function ThreadComposer(props: ThreadComposer
onPress={() => setQuickQuestionOpenScopeKey(quickQuestionScopeKey)}
/>
) : null}
<ComposerInlineControl
accessibilityLabel="Model and reasoning settings"
emphasized
iconNode={
<ProviderIcon provider={currentModelOption?.providerDriver} size={16} />
}
label={currentModelOption?.label ?? currentModelSelection.model}
maxWidth={152}
disabled={props.sessionInputBlocked}
accessibilityHint={
props.sessionInputBlocked
? "Provider changes are blocked while this thread has a pending safety operation"
: undefined
}
onPress={openSettings}
/>
<View className="min-w-0 shrink">
<ComposerInlineControl
accessibilityLabel="Model and reasoning settings"
emphasized
iconNode={
<ProviderIcon provider={currentModelOption?.providerDriver} size={16} />
}
label={currentModelOption?.label ?? currentModelSelection.model}
maxWidth="100%"
disabled={props.sessionInputBlocked}
accessibilityHint={
props.sessionInputBlocked
? "Provider changes are blocked while this thread has a pending safety operation"
: undefined
}
onPress={openSettings}
/>
</View>
{sessionHarnessRefinementActions.length > 0 ? (
<ControlPillMenu
title="Local harness"
Expand Down
21 changes: 20 additions & 1 deletion apps/mobile/src/features/threads/thread-work-log.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { QuestionAnswerHistory } from "./QuestionAnswerHistory";
import {
getQuestionAnswerPreview,
hasQuestionAnswer,
} from "@t3tools/client-runtime/work-log/user-input";
import * as Haptics from "expo-haptics";
import { Image } from "expo-image";
import { type AppSymbolName, SymbolView } from "../../components/AppSymbol";
Expand Down Expand Up @@ -741,6 +745,10 @@ const ThreadWorkLogRow = memo(function ThreadWorkLogRow(
const viewedImagePath = workEntryViewedImagePath(row.workEntry);
const toolPresentation = resolveWorkEntryToolPresentation(row.workEntry);
const previewText = workEntryRowLabel(row.workEntry);
const answerPreview = row.workEntry.questionAnswer
? getQuestionAnswerPreview(row.workEntry.questionAnswer)
: null;
const accessiblePreview = [previewText, answerPreview].filter(Boolean).join(": ");
const displayText = workEntryRowLabel(row.workEntry, expanded);
const failed = row.status === "failure";
const iconIsDestructive = row.icon === "alert" || failed;
Expand All @@ -756,7 +764,7 @@ const ThreadWorkLogRow = memo(function ThreadWorkLogRow(
>
<Pressable
accessibilityRole={canExpand ? "button" : undefined}
accessibilityLabel={failed ? `${previewText}, tool call failed` : previewText}
accessibilityLabel={failed ? `${accessiblePreview}, tool call failed` : accessiblePreview}
accessibilityHint={
canExpand
? `Double tap to ${expanded ? "hide" : "show"} full details. Long press to copy.`
Expand Down Expand Up @@ -822,6 +830,17 @@ const ThreadWorkLogRow = memo(function ThreadWorkLogRow(
numberOfLines={expanded ? undefined : 1}
>
{displayText}
{answerPreview ? (
<Text
className={
!expanded &&
row.workEntry.questionAnswer &&
hasQuestionAnswer(row.workEntry.questionAnswer)
? "text-foreground"
: "text-foreground-subtle"
}
>{` ${answerPreview}`}</Text>
) : null}
</Text>
</>
)}
Expand Down
9 changes: 7 additions & 2 deletions apps/mobile/src/features/usage/UsageRouteScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { EnvironmentId, USAGE_CONTRACT_VERSION } from "@t3tools/contracts";
import { useNavigation } from "@react-navigation/native";
import {
isCompatibleUsageContractVersion,
isModelCostUnknown,
type DailyTotals,
type MergedUsage,
} from "@t3tools/shared/usageMerge";
Expand Down Expand Up @@ -607,10 +608,14 @@ function ModelsSection(props: { readonly merged: MergedUsage }) {
{model.model}
</Text>
<Text className="text-sm text-foreground-muted">
{formatPercent(model.costShare)} of cost · {formatTokens(model.totalTokens)} tokens
{isModelCostUnknown(model)
? `no known rates · ${formatTokens(model.totalTokens)} tokens`
: `${formatPercent(model.costShare)} of cost · ${formatTokens(model.totalTokens)} tokens`}
</Text>
</View>
<Text className="text-base tabular-nums text-foreground">{formatUsd(model.costUsd)}</Text>
<Text className="text-base tabular-nums text-foreground">
{isModelCostUnknown(model) ? "Unpriced" : formatUsd(model.costUsd)}
</Text>
</View>
))}
</SettingsSection>
Expand Down
59 changes: 35 additions & 24 deletions apps/mobile/src/lib/threadActivity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as Option from "effect/Option";
import { foldUserInputActivities } from "@t3tools/client-runtime/work-log/user-input";
import * as Schema from "effect/Schema";
import {
requestKindFromRequestType,
Expand Down Expand Up @@ -414,7 +415,7 @@ function deriveWorkLogEntries(
): DerivedWorkLogEntry[] {
const ordered = Arr.sort(activities, activityOrder);
const entries: DerivedWorkLogEntry[] = [];
for (const activity of ordered) {
for (const activity of foldUserInputActivities(ordered)) {
if (activity.tone !== "error" && isWorktreeSetupActivity(activity.kind)) continue;
if (activity.kind === "tool.started") continue;
// Like web: an agent's task.started row anchors its batch. It has a fixed
Expand Down Expand Up @@ -959,6 +960,7 @@ function workEntryStatus(entry: WorkLogEntry): ThreadFeedActivity["status"] {
function workEntryIcon(entry: DerivedWorkLogEntry): ThreadFeedActivity["icon"] {
if (entry.agentSpawn) return "agent";
if (
entry.questionAnswer ||
entry.sourceActivityKind === "user-input.requested" ||
entry.sourceActivityKind === "user-input.resolved"
) {
Expand Down Expand Up @@ -2232,31 +2234,40 @@ export function buildThreadFeed(
const oldestLoadedMessageCreatedAt =
options?.loadedMessages !== undefined ? (loadedMessages[0]?.createdAt ?? null) : null;
const reportedTurnCosts = deriveReportedTurnCosts(thread.activities);
const activityEntries = getThreadFeedActivityEntries(thread.activities);
const activityEntries = getThreadFeedActivityEntries(thread.activities).filter(
(entry) =>
oldestLoadedMessageCreatedAt === null || entry.createdAt >= oldestLoadedMessageCreatedAt,
);
const foldedAnswerMessageIds = new Set(
activityEntries.flatMap((entry) =>
entry.activity.workEntry.questionAnswer
? [`async-answer:${entry.activity.workEntry.questionAnswer.requestId}`]
: [],
),
);
const entries = Arr.sortWith(
[
...messages.map((message) => {
const reportedCostLabel =
message.role === "assistant" && message.turnId !== null
? (formatReportedTurnCost(reportedTurnCosts.get(message.turnId) ?? -1) ?? undefined)
: undefined;
let entry = messageEntriesCache.get(message);
if (!entry || entry.reportedCostLabel !== reportedCostLabel) {
entry = {
type: "message",
id: message.id,
createdAt: message.createdAt,
message,
reportedCostLabel,
};
messageEntriesCache.set(message, entry);
}
return entry;
}),
...activityEntries.filter(
(entry) =>
oldestLoadedMessageCreatedAt === null || entry.createdAt >= oldestLoadedMessageCreatedAt,
),
...messages
.filter((message) => message.role !== "user" || !foldedAnswerMessageIds.has(message.id))
.map((message) => {
const reportedCostLabel =
message.role === "assistant" && message.turnId !== null
? (formatReportedTurnCost(reportedTurnCosts.get(message.turnId) ?? -1) ?? undefined)
: undefined;
let entry = messageEntriesCache.get(message);
if (!entry || entry.reportedCostLabel !== reportedCostLabel) {
entry = {
type: "message",
id: message.id,
createdAt: message.createdAt,
message,
reportedCostLabel,
};
messageEntriesCache.set(message, entry);
}
return entry;
}),
...activityEntries,
],
(s) => new Date(s.createdAt),
Order.Date,
Expand Down
31 changes: 31 additions & 0 deletions apps/server/src/orchestration/ActivityPayloadProjection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,37 @@ function activity(payload: Record<string, unknown>): OrchestrationThreadActivity
* assertions are the tripwire.
*/
describe("projectActivityPayload", () => {
it.each(["mcp_tool_call", "dynamic_tool_call"])(
"keeps question matching text through %s payload slimming without duplicating choices",
(itemType) => {
const projected = projectActivityPayload(
activity({
itemType,
title: "mcp__pylon__request_user_input_async",
data: {
input: {
questions: [
{
id: "target",
question: "Where should this run?",
options: [{ label: "Local", value: "local" }],
},
],
},
},
}),
);
expect(projected.payload).toMatchObject({
data: {
toolName: "mcp__pylon__request_user_input_async",
input: { questions: [{ question: "Where should this run?" }] },
},
});
expect(JSON.stringify(projected.payload)).not.toContain('"options"');
expect(projectActivityPayload(projected)).toEqual(projected);
},
);

it("preserves tool attribution (agentId/parentToolUseId) through data slimming", () => {
const projected = projectActivityPayload(
activity({
Expand Down
6 changes: 4 additions & 2 deletions apps/server/src/orchestration/ActivityPayloadProjection.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { projectQuestionToolInput } from "@t3tools/shared/toolActivity";
import type {
OrchestrationEvent,
OrchestrationThreadActivity,
Expand Down Expand Up @@ -370,18 +371,19 @@ export function projectActivityPayload(
payload.status === "completed" && (itemStatus === "failed" || itemStatus === "declined")
? { ...payload, status: itemStatus }
: payload;
const questionInput = projectQuestionToolInput(data, payload.title);

if (payload.itemType === "mcp_tool_call") {
return {
...activity,
payload: {
...projectedPayload,
data: projectMcpToolCallData(data),
data: { ...projectMcpToolCallData(data), ...questionInput },
},
};
}

const projectedData: Record<string, unknown> = {};
const projectedData: Record<string, unknown> = { ...questionInput };
const item = projectCommandData(data);
if (item) {
projectedData.item = item;
Expand Down
4 changes: 4 additions & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"class-variance-authority": "^0.7.1",
"culori": "^4.0.2",
"effect": "catalog:",
"hast-util-to-html": "^9.0.5",
"hast-util-to-jsx-runtime": "^2.3.6",
"heic-to": "^1.5.2",
"jose": "catalog:",
"jsonc-parser": "3.3.1",
Expand All @@ -61,6 +63,7 @@
"@types/babel__core": "^7.20.5",
"@types/compression": "^1.8.1",
"@types/culori": "^4.0.1",
"@types/mdast": "^4.0.4",
"@types/react": "~19.2.14",
"@types/react-dom": "~19.2.3",
"@types/react-test-renderer": "19.1.0",
Expand All @@ -70,6 +73,7 @@
"compression": "^1.8.1",
"react-test-renderer": "19.2.6",
"tailwindcss": "^4.0.0",
"unified": "^11.0.5",
"vite": "catalog:",
"vite-plus": "catalog:"
}
Expand Down
Loading
Loading