GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: reconcile main's round-19 features after the rebase · pingdotgg/t3code@8431bf4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps
    • mobile/src
      • features/threads
        • ThreadFeed.tsx
        • threadPresentation.ts
      • lib
        • projectThreadStartTurn.test.ts
        • projectThreadStartTurn.ts
        • threadActivity.test.ts
        • threadActivity.ts
    • server
      • scripts
        • acp-mock-agent.ts
      • src
        • httpCors.ts
        • orchestration-v2/Adapters
          • AcpAdapterV2.test.ts
          • ClaudeAdapterV2.test.ts
          • ClaudeAdapterV2.ts
          • OpenCodeAdapterV2.testkit.ts
        • orchestration/Layers
          • OrchestrationEngine.ts
        • provider
          • Drivers
            • AcpRegistryDriver.ts
            • CodexDriver.ts
            • CursorDriver.ts
            • OpenCodeDriver.ts
          • Layers
            • ProviderRegistry.test.ts
            • ProviderRegistry.ts
          • ProviderDriver.ts
          • acp
            • AcpSessionRuntime.ts
            • GrokAcpSupport.ts
            • XAiAcpExtension.ts
        • ws.ts
    • web/src
      • components
        • ChatView.logic.test.ts
        • ChatView.logic.ts
        • ChatView.tsx
        • DiffPanel.tsx
        • GitActionsControl.tsx
        • Sidebar.tsx
        • chat
          • ChatComposer.tsx
          • ComposerBannerStack.tsx
          • ComposerPrimaryActions.test.tsx
          • ComposerStashBadge.tsx
          • MessagesTimeline.logic.test.ts
          • MessagesTimeline.logic.ts
          • MessagesTimeline.test.tsx
          • MessagesTimeline.tsx
          • useAssistantCitationTarget.ts
        • pullRequest
          • pullRequestDetail.logic.ts
      • index.css
      • lib
        • contextWindow.ts
      • state
        • entities.ts
  • packages
    • client-runtime
      • package.json
      • src
        • connection
          • registry.test.ts
        • operations
          • threadTitle.ts
        • state
          • models.ts
        • work-log
          • commandLabel.ts
          • presentation.test.ts
          • presentation.ts
    • effect-acp/src
      • protocol.ts

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/mobile/src/features/threads/ThreadFeed.tsx‎

Copy file name to clipboardExpand all lines: apps/mobile/src/features/threads/ThreadFeed.tsx
+38-7Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ import Animated, {
9090
import { useUniwindTheme } from "../../lib/useUniwindTheme";
9191
import { IOS_NAV_BAR_HEIGHT } from "../../lib/layoutMetrics";
9292
import { useFontFamily } from "../../lib/useFontFamily";
93+
import { renderAssistantCitationsAsText } from "@t3tools/shared/assistantCitations";
9394
import { scopedThreadKey } from "../../lib/scopedEntities";
9495
import { copyTextWithHaptic } from "../../lib/copyTextWithHaptic";
9596
import { tryOpenExternalUrl } from "../../lib/openExternalUrl";
@@ -128,7 +129,11 @@ import {
128129
} from "../review/nativeReviewDiffAdapter";
129130
import { buildReviewParsedDiff } from "../review/reviewModel";
130131
import { cn } from "../../lib/cn";
131-
import { deriveCenteredContentHorizontalPadding, type LayoutVariant } from "../../lib/layout";
132+
import {
133+
deriveCenteredContentHorizontalPadding,
134+
deriveThreadWorkLogSizing,
135+
type LayoutVariant,
136+
} from "../../lib/layout";
132137
import { uuidv4 } from "../../lib/uuid";
133138
import {
134139
resolveMarkdownFontSizes,
@@ -152,6 +157,7 @@ import type { ThreadContentPresentation } from "./threadContentPresentation";
152157
import {
153158
resolveThreadFeedLiveFollow,
154159
type ThreadFeedLiveFollowEvent,
160+
type ThreadWorkGroupScrollPosition,
155161
} from "./thread-feed-live-follow";
156162
import {
157163
ThreadDisclosureChevron,
@@ -176,7 +182,12 @@ import { appAtomRegistry } from "../../state/atom-registry";
176182
import { environmentThreadShells, threadEnvironment } from "../../state/threads";
177183
import { useAtomCommand } from "../../state/use-atom-command";
178184
import { useV2ItemSupport } from "../../state/v2-item-support";
179-
import { resolveWorkspaceRelativeFilePath } from "../files/filePath";
185+
import {
186+
basename,
187+
fileRoutePathSegments,
188+
isAbsolutePath,
189+
resolveWorkspaceRelativeFilePath,
190+
} from "../files/filePath";
180191
import { waitForThreadShellReady } from "./threadForkNavigation";
181192
import { resolveUserMessageIntentBadge } from "./userMessageIntentBadge";
182193

@@ -1829,15 +1840,12 @@ function renderFeedEntry(
18291840
activities={entry.activities}
18301841
anchorKey={entry.id}
18311842
copiedRowId={props.copiedRowId}
1832-
currentThreadId={props.threadId}
1833-
environmentId={props.environmentId}
18341843
expandedRows={props.expandedWorkRows}
18351844
rowSizing={props.workRowSizing}
18361845
scrollPositions={props.workGroupScrollPositions}
18371846
iconSubtleColor={iconSubtleColor}
18381847
onCopyRow={props.onCopyWorkRow}
1839-
onToggleRow={(rowId) => props.onToggleWorkRow(rowId, entry.id)}
1840-
workspaceRoot={props.workspaceRoot}
1848+
onToggleRow={props.onToggleWorkRow}
18411849
renderImage={props.renderViewedImage}
18421850
/>
18431851
);
@@ -2156,7 +2164,22 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
21562164
const previousLatestTurnRef = useRef(props.latestRun);
21572165
const userScrollSettleTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
21582166
const headerMaterialVisibleRef = useRef(false);
2159-
const { width: windowWidth } = useWindowDimensions();
2167+
const { width: windowWidth, fontScale } = useWindowDimensions();
2168+
const { appearance } = useAppearancePreferences();
2169+
const workRowSizing = useMemo(
2170+
() => deriveThreadWorkLogSizing({ baseFontSize: appearance.baseFontSize, fontScale }),
2171+
[appearance.baseFontSize, fontScale],
2172+
);
2173+
const previousTextSize = useRef(workRowSizing.textSizeKey);
2174+
useLayoutEffect(() => {
2175+
if (previousTextSize.current === workRowSizing.textSizeKey) {
2176+
return;
2177+
}
2178+
previousTextSize.current = workRowSizing.textSizeKey;
2179+
// Text-size changes invalidate the outer list's fixed-height cache too.
2180+
// This never runs for scrolling, streamed output, or disclosure toggles.
2181+
props.listRef.current?.clearCaches({ mode: "sizes" });
2182+
}, [workRowSizing.textSizeKey, props.listRef]);
21602183
const [viewportWidth, setViewportWidth] = useState(() =>
21612184
props.layoutVariant === "split" ? 0 : windowWidth,
21622185
);
@@ -2527,6 +2550,12 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
25272550
// ThreadId, and keying resets (or the list mount) on the bare id would
25282551
// carry stale scroll/follow state across an environment switch.
25292552
const feedThreadKey = scopedThreadKey(props.environmentId, props.threadId);
2553+
// Virtualized groups can unmount without losing the reader's place. This cache
2554+
// belongs to this thread view only and never causes per-scroll React updates.
2555+
const workGroupScrollPositions = useMemo(
2556+
() => new Map<string, ThreadWorkGroupScrollPosition>(),
2557+
[feedThreadKey],
2558+
);
25302559
// A thread switch opens pinned to the end; a send explicitly returns to the
25312560
// live edge (ThreadDetailScreen scrolls the new message into place). Both
25322561
// re-arm follow regardless of where the user had scrolled before.
@@ -2840,6 +2869,8 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
28402869
threadId: props.threadId,
28412870
copiedRowId,
28422871
expandedWorkRows,
2872+
workRowSizing,
2873+
workGroupScrollPositions,
28432874
terminalAssistantMessageIds,
28442875
unsettledTurnId,
28452876
onCopyWorkRow,
Collapse file

‎apps/mobile/src/features/threads/threadPresentation.ts‎

Copy file name to clipboardExpand all lines: apps/mobile/src/features/threads/threadPresentation.ts
-11Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ import {
44
type EnvironmentThreadShell,
55
} from "@t3tools/client-runtime/state/shell";
66

7-
export function threadSortValue(thread: EnvironmentThreadShell): number {
8-
const candidate = Date.parse(thread.updatedAt ?? thread.createdAt);
9-
return Number.isNaN(candidate) ? 0 : candidate;
10-
}
11-
127
export type ThreadStatusKind =
138
| "pending-approval"
149
| "awaiting-input"
@@ -27,12 +22,6 @@ export interface ThreadStatusPresentation extends StatusTone {
2722
readonly pulse: boolean;
2823
}
2924

30-
/** Neutral icon colors for threads with no actionable status. */
31-
export const THREAD_STATUS_NEUTRAL_ICON = {
32-
iconColor: "#8e8e93",
33-
iconBackground: "rgba(142,142,147,0.22)",
34-
} as const;
35-
3625
function isLatestRunSettled(thread: EnvironmentThreadShell): boolean {
3726
if (!thread.latestRun?.startedAt) return false;
3827
if (!thread.latestRun.completedAt) return false;
Collapse file

‎apps/mobile/src/lib/projectThreadStartTurn.test.ts‎

Copy file name to clipboardExpand all lines: apps/mobile/src/lib/projectThreadStartTurn.test.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe("project thread title", () => {
2626
},
2727
{
2828
comment: 'Why "shared"?',
29-
title: 'Keep `cache[key]` & <parser> shared. Retry! Comment: Why "shared"?',
29+
title: "Keep `cache[key]` & <parser> shared. Retry! Commen...",
3030
},
3131
])("uses readable titles and intact links with comment $comment", ({ comment, title }) => {
3232
const quoteText = "Keep `cache[key]` & <parser> shared.\n Retry!";
Collapse file

‎apps/mobile/src/lib/projectThreadStartTurn.ts‎

Copy file name to clipboardExpand all lines: apps/mobile/src/lib/projectThreadStartTurn.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
type RuntimeMode,
1010
} from "@t3tools/contracts";
1111
import { deriveThreadTitleSeed } from "@t3tools/client-runtime/operations";
12+
import { assistantCitationsToPlainText } from "@t3tools/shared/assistantCitations";
1213

1314
import type { UploadedMobileAttachment } from "./attachmentUpload";
1415

@@ -85,7 +86,7 @@ export function buildProjectThreadStartTurnInput(spec: ProjectThreadStartTurnSpe
8586
}
8687

8788
export function deriveThreadTitleFromPrompt(value: string): string {
88-
const trimmed = value.trim();
89+
const trimmed = assistantCitationsToPlainText(value).trim();
8990
if (trimmed.length === 0) {
9091
return "New thread";
9192
}
Collapse file

‎apps/mobile/src/lib/threadActivity.test.ts‎

Copy file name to clipboardExpand all lines: apps/mobile/src/lib/threadActivity.test.ts
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -679,9 +679,7 @@ describe("buildThreadFeed", () => {
679679
);
680680
expect(expanded.map((entry) => entry.id)).toEqual([
681681
"work-toggle:work-group:activity-neutral",
682-
"activity-1",
683-
"activity-2",
684-
"activity-3",
682+
"work-details:work-group:activity-neutral",
685683
]);
686684
expect(expanded[0]).toMatchObject({
687685
type: "work-toggle",
Collapse file

‎apps/mobile/src/lib/threadActivity.ts‎

Copy file name to clipboardExpand all lines: apps/mobile/src/lib/threadActivity.ts
+42-23Lines changed: 42 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import type {
66
import { turnItemIsWorkspacePreparation } from "@t3tools/client-runtime/state/turn-item-presentation";
77
import { commandProgramName } from "@t3tools/client-runtime/work-log/command-label";
88
import {
9+
workEntryDisplayIndicatesToolFailure,
10+
resolveWorkEntryToolPresentation,
911
summarizeToolGroup,
1012
toolGroupSummaryKind,
1113
type ToolGroupSummaryKind,
@@ -870,7 +872,7 @@ function appendToolGroupRows(
870872
: (latestInProgressActivity ?? activities.at(-1)!);
871873
const groupSummary = summarizeToolGroup(activities.map((activity) => activity.workEntry));
872874
const summary = live
873-
? liveToolActivitySummary(latestActivity)
875+
? liveToolActivitySummary(latestActivity, latestInProgressActivity !== undefined)
874876
: activities.length === 1 && !activities[0]!.toolLike
875877
? activities[0]!.workEntry.label
876878
: groupSummary.summary;
@@ -886,40 +888,57 @@ function appendToolGroupRows(
886888
summaryKind: toolGroupSummaryKind(
887889
(live ? [latestActivity] : activities).map((activity) => activity.workEntry),
888890
),
889-
hasFailure: groupSummary.hasFailure,
891+
hasFailure: (() => {
892+
const lastToolLike = activities.findLast((activity) => activity.toolLike);
893+
return (
894+
lastToolLike !== undefined && workEntryDisplayIndicatesToolFailure(lastToolLike.workEntry)
895+
);
896+
})(),
890897
live,
891898
shimmer:
892899
isWorking &&
893900
latestActivity.lifecycleStatus === "inProgress" &&
894901
latestActivity.runId === activeRunId,
895902
});
896903
if (!expanded) return;
897-
for (const activity of activities) {
898-
result.push({
899-
type: "activity-group",
900-
id: activity.id,
901-
createdAt: activity.createdAt,
902-
runId: activity.runId,
903-
activities: [
904-
{
905-
...activity,
906-
groupedToolDetail: true,
907-
live:
908-
isWorking &&
909-
activity.id === latestActivity.id &&
910-
activity.lifecycleStatus === "inProgress" &&
911-
activity.runId === activeRunId,
912-
},
913-
],
914-
});
915-
}
904+
result.push({
905+
type: "activity-group",
906+
id: `work-details:${groupId}`,
907+
createdAt: activities[0]!.createdAt,
908+
runId: activities[0]!.runId,
909+
activities: activities.map((activity) => ({
910+
...activity,
911+
groupedToolDetail: true,
912+
live:
913+
isWorking &&
914+
activity.id === latestActivity.id &&
915+
activity.lifecycleStatus === "inProgress" &&
916+
activity.runId === activeRunId,
917+
})),
918+
});
916919
}
917920

918-
function liveToolActivitySummary(activity: ThreadFeedActivity): string {
921+
function liveToolActivitySummary(activity: ThreadFeedActivity, active: boolean): string {
922+
const presentation = resolveWorkEntryToolPresentation(
923+
activity.workEntry,
924+
active ? "inProgress" : "completed",
925+
);
926+
if (presentation) return presentation.displayName;
919927
const command = activity.workEntry.command?.trim();
920928
if (command) {
921929
const program = commandProgramName(command);
922-
return program ? `Running ${program}` : "Running command";
930+
const status = activity.lifecycleStatus ?? (active ? "inProgress" : "completed");
931+
const verb =
932+
status === "inProgress"
933+
? "Running"
934+
: status === "failed"
935+
? "Failed"
936+
: status === "declined"
937+
? "Declined"
938+
: status === "stopped"
939+
? "Stopped"
940+
: "Ran";
941+
return `${verb} ${program ?? "command"}`;
923942
}
924943
return activity.detail ?? activity.summary;
925944
}
Collapse file

‎apps/server/scripts/acp-mock-agent.ts‎

Copy file name to clipboardExpand all lines: apps/server/scripts/acp-mock-agent.ts
+15-5Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,18 @@ function modeState(): AcpSchema.SessionModeState {
303303
// "grok-build" product name, and it rejects unknown ids in session/set_model.
304304
const grokAcpModels: ReadonlyArray<AcpSchema.ModelInfo> = [
305305
{
306-
modelId: "grok-build",
307-
name: "Grok Build",
308-
...(initialGrokReasoningEffort
309-
? { _meta: { reasoningEffort: initialGrokReasoningEffort } }
310-
: {}),
306+
modelId: "grok-4.6",
307+
name: "Grok 4.6",
308+
_meta: {
309+
totalContextTokens: 500_000,
310+
supportsReasoningEffort: true,
311+
reasoningEffort: initialGrokReasoningEffort ?? "high",
312+
reasoningEfforts: [
313+
{ id: "xhigh", value: "xhigh", label: "Extra High Effort", default: false },
314+
{ id: "high", value: "high", label: "High Effort", default: true },
315+
{ id: "low", value: "low", label: "Low Effort", default: false },
316+
],
317+
},
311318
},
312319
{ modelId: "grok-mock-alt", name: "Grok Mock Alt" },
313320
];
@@ -331,6 +338,9 @@ const program = Effect.gen(function* () {
331338
request.clientCapabilities?._meta?.parameterizedModelPicker === true;
332339
return {
333340
protocolVersion: 1,
341+
// Grok advertises model state before any session exists; the provider
342+
// health check reads it from here without authenticating.
343+
_meta: { modelState: modelState() },
334344
agentCapabilities: {
335345
loadSession: true,
336346
...(supportsSessionLifecycle
Collapse file

‎apps/server/src/httpCors.ts‎

Copy file name to clipboard
+2-7Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { ORCHESTRATION_PROTOCOL_HEADER } from "@t3tools/contracts";
2+
13
export const browserApiCorsAllowedMethods = ["GET", "POST", "OPTIONS"] as const;
24
export const browserApiCorsAllowedHeaders = [
35
"authorization",
@@ -7,10 +9,3 @@ export const browserApiCorsAllowedHeaders = [
79
"dpop",
810
ORCHESTRATION_PROTOCOL_HEADER,
911
] as const;
10-
11-
export const browserApiCorsHeaders = {
12-
"access-control-allow-origin": "*",
13-
"access-control-allow-methods": browserApiCorsAllowedMethods.join(", "),
14-
"access-control-allow-headers": browserApiCorsAllowedHeaders.join(", "),
15-
} as const;
16-
import { ORCHESTRATION_PROTOCOL_HEADER } from "@t3tools/contracts";
Collapse file

‎apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ describe("AcpAdapterV2", () => {
14061406
instanceId,
14071407
model: "grok-mock-alt",
14081408
} satisfies ModelSelection;
1409-
const originalSelection = { instanceId, model: "grok-build" } satisfies ModelSelection;
1409+
const originalSelection = { instanceId, model: "grok-4.6" } satisfies ModelSelection;
14101410
const runtime = yield* adapter.openSession({
14111411
threadId: firstThreadId,
14121412
providerSessionId: ProviderSessionId.make("provider-session-acp-active-setup"),

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.