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-20 features after the rebase · pingdotgg/t3code@7bdbe79

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps
    • mobile/src/features/threads
      • ThreadComposer.tsx
    • server/src
      • cli
        • project.ts
      • environment
        • ServerEnvironment.test.ts
        • ServerEnvironment.ts
      • orchestration-v2
        • ThreadLaunchService.ts
        • ThreadSettlementService.ts
      • orchestration
        • decider.ts
      • persistence
        • Migrations.ts
        • Migrations
          • 045_046_OrchestrationV2.test.ts
          • 045_OrchestrationV2.ts
          • 046_OrchestrationV2Subagents.ts
          • 047_OrchestrationV2Foundation.test.ts
          • 047_OrchestrationV2Foundation.ts
          • 048_OrchestrationV2ProviderSessionBindings.ts
          • 049_OrchestrationV2ThreadLaunchWorkflows.ts
          • 050_ApplicationEventSource.test.ts
          • 050_ApplicationEventSource.ts
          • 051_OrchestrationV2EffectCancellation.test.ts
          • 051_OrchestrationV2EffectCancellation.ts
          • 052_ScheduledTasks.ts
          • 053_LegacyV1ImportState.ts
      • provider/Drivers
        • ClaudeDriver.ts
      • serverRuntimeStartup.test.ts
      • serverRuntimeStartup.ts
      • ws.ts
    • web/src
      • components
        • ChatView.tsx
        • chat
          • ChatComposer.tsx
        • settings
          • ProviderInstanceCard.tsx
      • index.css
  • packages
    • contracts/src
      • settings.ts
    • shared/src
      • model.test.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: apps/mobile/src/features/threads/ThreadComposer.tsx
+8-3Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ export const COMPOSER_LAYOUT_TRANSITION =
153153
? undefined
154154
: LinearTransition.duration(COMPOSER_TRANSITION_DURATION_MS).reduceMotion(ReduceMotion.System);
155155

156+
const COMPOSER_ATTACHMENT_ENTERING =
157+
Platform.OS === "android"
158+
? FadeIn.duration(160)
159+
: FadeIn.delay(COMPOSER_TRANSITION_DURATION_MS).duration(160).reduceMotion(ReduceMotion.System);
160+
156161
const AnimatedGlassSurface = Animated.createAnimatedComponent(GlassSurface);
157162

158163
export function ComposerSurface(props: {
@@ -622,10 +627,10 @@ export const ThreadComposer = memo(function ThreadComposer(props: ThreadComposer
622627
onPickFiles={props.onPickDraftFiles}
623628
/>
624629
) : null}
625-
{isExpanded ? (
630+
{isExpanded && props.draftAttachments.length > 0 ? (
626631
<Animated.View
627-
className={props.draftAttachments.length > 0 ? "px-[14px] pb-2.5" : undefined}
628-
entering={FadeIn.duration(160)}
632+
className="px-[14px] pb-2.5"
633+
entering={COMPOSER_ATTACHMENT_ENTERING}
629634
exiting={FadeOut.duration(120)}
630635
>
631636
<ComposerAttachmentStrip
Collapse file

‎apps/server/src/cli/project.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/cli/project.ts
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import * as ProjectFaviconResolver from "../project/ProjectFaviconResolver.ts";
3131
import * as RepositoryIdentityResolver from "../project/RepositoryIdentityResolver.ts";
3232
import * as ProjectService from "../project/ProjectService.ts";
3333
import * as T3ProjectFileLoader from "../project/T3ProjectFileLoader.ts";
34-
import * as ServerRuntimeStartup from "../serverRuntimeStartup.ts";
3534
import {
3635
clearPersistedServerRuntimeState,
3736
readPersistedServerRuntimeState,
@@ -513,7 +512,6 @@ const projectAddCommand = Command.make("add", {
513512
projectId,
514513
title,
515514
workspaceRoot,
516-
defaultModelSelection: ServerRuntimeStartup.getAutoBootstrapDefaultModelSelection(),
517515
});
518516
return `Added project ${projectId} (${title}) at ${workspaceRoot}.`;
519517
}),
Collapse file

‎apps/server/src/environment/ServerEnvironment.test.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/environment/ServerEnvironment.test.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ it.layer(NodeServices.layer)("ServerEnvironmentLive", (it) => {
255255
expect(withFd.capabilities.serverSelfUpdate).toBe("desktop-managed");
256256
expect(withFd.capabilities.desktopAppUpdate).toBe(true);
257257
expect(withFd.capabilities.serverSelfUpdateProgress).toBe(true);
258-
expect(withFd.capabilities.serverUpdateThreadContinuation).toBe(true);
258+
// v2 recovery terminalizes running runs on restart, so continuation
259+
// stays unadvertised until the v2 runtime carries the markers.
260+
expect(withFd.capabilities.serverUpdateThreadContinuation).toBeUndefined();
259261

260262
const withoutFd = yield* describeWith({ mode: "desktop" });
261263
expect(withoutFd.capabilities.serverSelfUpdate).toBe("desktop-managed");
Collapse file

‎apps/server/src/environment/ServerEnvironment.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/environment/ServerEnvironment.ts
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,12 @@ export const make = Effect.gen(function* () {
236236
threadVisitedTracking: true,
237237
threadPullRequestLinking: true,
238238
...(serverSelfUpdate === null ? {} : { serverSelfUpdate }),
239+
// Running-thread continuation across a self-update (#9167) marks v1
240+
// provider session bindings; the v2 recovery path terminalizes running
241+
// runs on restart instead, so the capability stays unadvertised until
242+
// ProviderRuntimeRecoveryService grows an equivalent.
239243
...(serverSelfUpdate === "boot-service" || desktopAppUpdate
240-
? {
241-
serverSelfUpdateProgress: true,
242-
serverUpdateThreadContinuation: true,
243-
}
244+
? { serverSelfUpdateProgress: true }
244245
: {}),
245246
...(desktopAppUpdate ? { desktopAppUpdate: true } : {}),
246247
},
Collapse file

‎apps/server/src/orchestration-v2/ThreadLaunchService.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/orchestration-v2/ThreadLaunchService.ts
+24-8Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -240,20 +240,36 @@ export const make = Effect.gen(function* () {
240240
.pipe(Effect.mapError(mapError(input, "update-thread", threadId)));
241241
}
242242
let startRef = input.workspaceStrategy.baseRef;
243-
if (input.workspaceStrategy.startFromOrigin === true) {
243+
// "Start from origin" is a stored default; repos without the requested
244+
// remote branch fall back to the local base branch.
245+
const startFromOrigin =
246+
input.workspaceStrategy.startFromOrigin === true &&
247+
(yield* git
248+
.remoteExists({ cwd: project.workspaceRoot, remoteName: "origin" })
249+
.pipe(Effect.mapError(mapError(input, "provision-worktree", threadId))));
250+
if (startFromOrigin) {
244251
yield* git
245252
.fetchRemote({ cwd: project.workspaceRoot, remoteName: "origin" })
246253
.pipe(Effect.mapError(mapError(input, "provision-worktree", threadId)));
247-
startRef = yield* git
248-
.resolveRemoteTrackingCommit({
254+
const remoteBaseExists = yield* git
255+
.remoteBranchExists({
249256
cwd: project.workspaceRoot,
250257
refName: input.workspaceStrategy.baseRef,
251-
fallbackRemoteName: "origin",
258+
remoteName: "origin",
252259
})
253-
.pipe(
254-
Effect.map((resolved) => resolved.commitSha),
255-
Effect.mapError(mapError(input, "provision-worktree", threadId)),
256-
);
260+
.pipe(Effect.mapError(mapError(input, "provision-worktree", threadId)));
261+
if (remoteBaseExists) {
262+
startRef = yield* git
263+
.resolveRemoteTrackingCommit({
264+
cwd: project.workspaceRoot,
265+
refName: input.workspaceStrategy.baseRef,
266+
fallbackRemoteName: "origin",
267+
})
268+
.pipe(
269+
Effect.map((resolved) => resolved.commitSha),
270+
Effect.mapError(mapError(input, "provision-worktree", threadId)),
271+
);
272+
}
257273
}
258274
const worktree = yield* git
259275
.createWorktree({
Collapse file

‎apps/server/src/orchestration-v2/ThreadSettlementService.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/orchestration-v2/ThreadSettlementService.ts
+12-6Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,18 @@ export const make = Effect.gen(function* () {
192192
thread: (typeof candidates)[number],
193193
) {
194194
if (thread.linkedPullRequest != null) {
195-
const detail = yield* pullRequests.detail({
196-
projectId: thread.linkedPullRequest.projectId,
197-
repository: thread.linkedPullRequest.repository,
198-
number: thread.linkedPullRequest.number,
199-
});
200-
return { state: detail.state, updatedAt: detail.updatedAt } satisfies SettlementPullRequest;
195+
const summary = yield* pullRequests.summary(
196+
{
197+
projectId: thread.linkedPullRequest.projectId,
198+
repository: thread.linkedPullRequest.repository,
199+
number: thread.linkedPullRequest.number,
200+
},
201+
{ recoverTransientFailure: false },
202+
);
203+
return {
204+
state: summary.state,
205+
updatedAt: summary.updatedAt,
206+
} satisfies SettlementPullRequest;
201207
}
202208
if (thread.branch === null) return null;
203209
const workspaceRoot = workspaceRootByProjectId.get(thread.projectId);
Collapse file

‎apps/server/src/orchestration/decider.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/orchestration/decider.ts
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,10 @@ export const decideOrchestrationCommand = Effect.fn("decideOrchestrationCommand"
219219
projectId: command.projectId,
220220
title: command.title,
221221
workspaceRoot: command.workspaceRoot,
222-
defaultModelSelection: command.defaultModelSelection ?? null,
222+
// Project creation has no user model choice. Older clients sent an
223+
// automatic seed here, but only a metadata update records an
224+
// explicit project default.
225+
defaultModelSelection: null,
223226
faviconPath: null,
224227
scripts: command.scripts ?? [],
225228
createdAt: command.createdAt,
Collapse file

‎apps/server/src/persistence/Migrations.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/persistence/Migrations.ts
+20-18Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,16 @@ import Migration0040 from "./Migrations/040_ProjectionProjectFaviconPath.ts";
5555
import Migration0041 from "./Migrations/041_AuthSessionClientConnection.ts";
5656
import Migration0042 from "./Migrations/042_ProjectionThreadLinkedPullRequest.ts";
5757
import Migration0043 from "./Migrations/043_ProjectionThreadsUnsettledAt.ts";
58-
import Migration0044 from "./Migrations/044_OrchestrationV2.ts";
59-
import Migration0045 from "./Migrations/045_OrchestrationV2Subagents.ts";
60-
import Migration0046 from "./Migrations/046_OrchestrationV2Foundation.ts";
61-
import Migration0047 from "./Migrations/047_OrchestrationV2ProviderSessionBindings.ts";
62-
import Migration0048 from "./Migrations/048_OrchestrationV2ThreadLaunchWorkflows.ts";
63-
import Migration0049 from "./Migrations/049_ApplicationEventSource.ts";
64-
import Migration0050 from "./Migrations/050_OrchestrationV2EffectCancellation.ts";
65-
import Migration0051 from "./Migrations/051_ScheduledTasks.ts";
66-
import Migration0052 from "./Migrations/052_LegacyV1ImportState.ts";
58+
import Migration0044 from "./Migrations/044_ClearAutomaticProjectModelDefaults.ts";
59+
import Migration0045 from "./Migrations/045_OrchestrationV2.ts";
60+
import Migration0046 from "./Migrations/046_OrchestrationV2Subagents.ts";
61+
import Migration0047 from "./Migrations/047_OrchestrationV2Foundation.ts";
62+
import Migration0048 from "./Migrations/048_OrchestrationV2ProviderSessionBindings.ts";
63+
import Migration0049 from "./Migrations/049_OrchestrationV2ThreadLaunchWorkflows.ts";
64+
import Migration0050 from "./Migrations/050_ApplicationEventSource.ts";
65+
import Migration0051 from "./Migrations/051_OrchestrationV2EffectCancellation.ts";
66+
import Migration0052 from "./Migrations/052_ScheduledTasks.ts";
67+
import Migration0053 from "./Migrations/053_LegacyV1ImportState.ts";
6768

6869
/**
6970
* Migration loader with all migrations defined inline.
@@ -119,15 +120,16 @@ const migrationEntries = [
119120
[41, "AuthSessionClientConnection", Migration0041],
120121
[42, "ProjectionThreadLinkedPullRequest", Migration0042],
121122
[43, "ProjectionThreadsUnsettledAt", Migration0043],
122-
[44, "OrchestrationV2", Migration0044],
123-
[45, "OrchestrationV2Subagents", Migration0045],
124-
[46, "OrchestrationV2Foundation", Migration0046],
125-
[47, "OrchestrationV2ProviderSessionBindings", Migration0047],
126-
[48, "OrchestrationV2ThreadLaunchWorkflows", Migration0048],
127-
[49, "ApplicationEventSource", Migration0049],
128-
[50, "OrchestrationV2EffectCancellation", Migration0050],
129-
[51, "ScheduledTasks", Migration0051],
130-
[52, "LegacyV1ImportState", Migration0052],
123+
[44, "ClearAutomaticProjectModelDefaults", Migration0044],
124+
[45, "OrchestrationV2", Migration0045],
125+
[46, "OrchestrationV2Subagents", Migration0046],
126+
[47, "OrchestrationV2Foundation", Migration0047],
127+
[48, "OrchestrationV2ProviderSessionBindings", Migration0048],
128+
[49, "OrchestrationV2ThreadLaunchWorkflows", Migration0049],
129+
[50, "ApplicationEventSource", Migration0050],
130+
[51, "OrchestrationV2EffectCancellation", Migration0051],
131+
[52, "ScheduledTasks", Migration0052],
132+
[53, "LegacyV1ImportState", Migration0053],
131133
] as const;
132134

133135
export const migrationManifest = migrationEntries.map(([id, name]) => [id, name] as const);
Collapse file

‎…grations/044_045_OrchestrationV2.test.ts‎ ‎…grations/045_046_OrchestrationV2.test.ts‎apps/server/src/persistence/Migrations/044_045_OrchestrationV2.test.ts renamed to apps/server/src/persistence/Migrations/045_046_OrchestrationV2.test.ts apps/server/src/persistence/Migrations/044_045_OrchestrationV2.test.ts renamed to apps/server/src/persistence/Migrations/045_046_OrchestrationV2.test.ts

Copy file name to clipboardExpand all lines: apps/server/src/persistence/Migrations/045_046_OrchestrationV2.test.ts
+27-26Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import * as NodeSqliteClient from "../NodeSqliteClient.ts";
88

99
const layer = it.layer(Layer.mergeAll(NodeSqliteClient.layerMemory()));
1010

11-
layer("038_039_OrchestrationV2", (it) => {
11+
layer("045_046_OrchestrationV2", (it) => {
1212
it.effect("keeps released and private migration ids contiguous", () =>
1313
Effect.sync(() => {
1414
assert.deepStrictEqual(
1515
migrationEntries.map(([id]) => id),
16-
Array.from({ length: 52 }, (_, index) => index + 1),
16+
Array.from({ length: 53 }, (_, index) => index + 1),
1717
);
1818
}),
1919
);
@@ -22,32 +22,32 @@ layer("038_039_OrchestrationV2", (it) => {
2222
Effect.gen(function* () {
2323
const sql = yield* SqlClient.SqlClient;
2424

25-
yield* runMigrations({ toMigrationInclusive: 45 });
25+
yield* runMigrations({ toMigrationInclusive: 46 });
2626

2727
const migrations = yield* sql<{
2828
readonly migration_id: number;
2929
readonly name: string;
3030
}>`
3131
SELECT migration_id, name
3232
FROM effect_sql_migrations
33-
WHERE migration_id IN (42, 43, 44, 45)
33+
WHERE migration_id IN (43, 44, 45, 46)
3434
ORDER BY migration_id
3535
`;
3636
assert.deepStrictEqual(migrations, [
37-
{
38-
migration_id: 42,
39-
name: "ProjectionThreadLinkedPullRequest",
40-
},
4137
{
4238
migration_id: 43,
4339
name: "ProjectionThreadsUnsettledAt",
4440
},
4541
{
4642
migration_id: 44,
47-
name: "OrchestrationV2",
43+
name: "ClearAutomaticProjectModelDefaults",
4844
},
4945
{
5046
migration_id: 45,
47+
name: "OrchestrationV2",
48+
},
49+
{
50+
migration_id: 46,
5151
name: "OrchestrationV2Subagents",
5252
},
5353
]);
@@ -64,10 +64,10 @@ layer("038_039_OrchestrationV2", (it) => {
6464
}),
6565
);
6666

67-
it.effect("backfills provider-session thread bindings in migration 047", () =>
67+
it.effect("backfills provider-session thread bindings in migration 048", () =>
6868
Effect.gen(function* () {
6969
const sql = yield* SqlClient.SqlClient;
70-
yield* runMigrations({ toMigrationInclusive: 46 });
70+
yield* runMigrations({ toMigrationInclusive: 47 });
7171
yield* sql`
7272
INSERT INTO orchestration_v2_projection_provider_sessions (
7373
provider_session_id,
@@ -92,7 +92,7 @@ layer("038_039_OrchestrationV2", (it) => {
9292
)
9393
`;
9494

95-
yield* runMigrations({ toMigrationInclusive: 47 });
95+
yield* runMigrations({ toMigrationInclusive: 48 });
9696

9797
const bindings = yield* sql<{
9898
readonly provider_session_id: string;
@@ -110,10 +110,10 @@ layer("038_039_OrchestrationV2", (it) => {
110110
}),
111111
);
112112

113-
it.effect("preserves turn items with colliding ordinals in migration 046", () =>
113+
it.effect("preserves turn items with colliding ordinals in migration 047", () =>
114114
Effect.gen(function* () {
115115
const sql = yield* SqlClient.SqlClient;
116-
yield* runMigrations({ toMigrationInclusive: 45 });
116+
yield* runMigrations({ toMigrationInclusive: 46 });
117117
yield* sql`
118118
INSERT INTO orchestration_v2_projection_runs (
119119
run_id,
@@ -150,7 +150,7 @@ layer("038_039_OrchestrationV2", (it) => {
150150
('turn-item:d', 'thread:two', NULL, 42, 'assistant_message', 'completed', '2026-01-01T00:00:00.000Z', '{}')
151151
`;
152152

153-
yield* runMigrations({ toMigrationInclusive: 46 });
153+
yield* runMigrations({ toMigrationInclusive: 47 });
154154

155155
const positions = yield* sql<{
156156
readonly thread_id: string;
@@ -182,15 +182,15 @@ it.effect("upgrades a database already at released main migration 043", () =>
182182
assert.ok(snoozeColumns.some((column) => column.name === "snoozed_until"));
183183
assert.ok(snoozeColumns.some((column) => column.name === "snoozed_at"));
184184

185-
yield* runMigrations({ toMigrationInclusive: 52 });
185+
yield* runMigrations({ toMigrationInclusive: 53 });
186186

187187
const migrations = yield* sql<{
188188
readonly migration_id: number;
189189
readonly name: string;
190190
}>`
191191
SELECT migration_id, name
192192
FROM effect_sql_migrations
193-
WHERE migration_id BETWEEN 39 AND 52
193+
WHERE migration_id BETWEEN 39 AND 53
194194
ORDER BY migration_id
195195
`;
196196
assert.deepStrictEqual(
@@ -201,15 +201,16 @@ it.effect("upgrades a database already at released main migration 043", () =>
201201
[41, "AuthSessionClientConnection"],
202202
[42, "ProjectionThreadLinkedPullRequest"],
203203
[43, "ProjectionThreadsUnsettledAt"],
204-
[44, "OrchestrationV2"],
205-
[45, "OrchestrationV2Subagents"],
206-
[46, "OrchestrationV2Foundation"],
207-
[47, "OrchestrationV2ProviderSessionBindings"],
208-
[48, "OrchestrationV2ThreadLaunchWorkflows"],
209-
[49, "ApplicationEventSource"],
210-
[50, "OrchestrationV2EffectCancellation"],
211-
[51, "ScheduledTasks"],
212-
[52, "LegacyV1ImportState"],
204+
[44, "ClearAutomaticProjectModelDefaults"],
205+
[45, "OrchestrationV2"],
206+
[46, "OrchestrationV2Subagents"],
207+
[47, "OrchestrationV2Foundation"],
208+
[48, "OrchestrationV2ProviderSessionBindings"],
209+
[49, "OrchestrationV2ThreadLaunchWorkflows"],
210+
[50, "ApplicationEventSource"],
211+
[51, "OrchestrationV2EffectCancellation"],
212+
[52, "ScheduledTasks"],
213+
[53, "LegacyV1ImportState"],
213214
],
214215
);
215216

Collapse file

‎…stence/Migrations/044_OrchestrationV2.ts‎ ‎…stence/Migrations/045_OrchestrationV2.ts‎apps/server/src/persistence/Migrations/044_OrchestrationV2.ts renamed to apps/server/src/persistence/Migrations/045_OrchestrationV2.ts apps/server/src/persistence/Migrations/044_OrchestrationV2.ts renamed to apps/server/src/persistence/Migrations/045_OrchestrationV2.ts

Copy file name to clipboard
File renamed without changes.

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.