@devries-cameron20 / t3code-1 / commits / 1683ee7b11
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Fix post-rebase typecheck regressions

Co-authored-by: codex <codex@users.noreply.github.com>

Julius Marminge committed Mar 5, 2026 at 18:20 UTC 1683ee7b112dce0886b354a3fff7c8625bf95d7e
4 files changed +8 -24
apps/web/src/components/ChatView.browser.tsx
+4 -6
@@ -6,7 +6,6 @@ import {
6 type MessageId,
7 type OrchestrationReadModel,
8 type ProjectId,
9 - type ProviderSessionId,
9 type ServerConfig,
10 type ThreadId,
11 type WsWelcomePayload,
@@ -204,6 +203,8 @@ function createSnapshotForTargetUser(options: {
203 projectId: PROJECT_ID,
204 title: "Browser test thread",
205 model: "gpt-5",
206 + interactionMode: "default",
207 + runtimeMode: "full-access",
208 branch: "main",
209 worktreePath: null,
210 latestTurn: null,
@@ -212,15 +213,13 @@ function createSnapshotForTargetUser(options: {
213 deletedAt: null,
214 messages,
215 activities: [],
216 + proposedPlans: [],
217 checkpoints: [],
218 session: {
219 threadId: THREAD_ID,
220 status: "ready",
221 providerName: "codex",
220 - providerSessionId: "session-1" as ProviderSessionId,
221 - providerThreadId: null,
222 - approvalPolicy: "on-failure",
223 - sandboxMode: "workspace-write",
222 + runtimeMode: "full-access",
223 activeTurnId: null,
224 lastError: null,
225 updatedAt: NOW_ISO,
@@ -552,7 +551,6 @@ describe("ChatView timeline estimator parity (full app)", () => {
551 projects: [],
552 threads: [],
553 threadsHydrated: false,
555 - runtimeMode: "full-access",
554 });
555 });
556
apps/web/src/components/ChatView.tsx
-14
@@ -4716,20 +4716,6 @@ type TimelineRow =
4716 }
4717 | { kind: "working"; id: string; createdAt: string | null };
4718
4719 -function estimateTimelineMessageHeight(message: TimelineMessage): number {
4720 - const textLength = message.text.length;
4721 - if (message.role === "assistant") {
4722 - const estimatedLines = Math.max(1, Math.ceil(textLength / 72));
4723 - return 78 + Math.min(estimatedLines * 22, 820);
4724 - }
4725 -
4726 - const estimatedLines = Math.max(1, Math.ceil(textLength / 56));
4727 - const attachmentCount = message.attachments?.length ?? 0;
4728 - const attachmentRows = Math.ceil(attachmentCount / 2);
4729 - const attachmentHeight = attachmentRows * 124;
4730 - return 96 + Math.min(estimatedLines * 22, 620) + attachmentHeight;
4731 -}
4732 -
4719 function estimateTimelineProposedPlanHeight(proposedPlan: TimelineProposedPlan): number {
4720 const estimatedLines = Math.max(1, Math.ceil(proposedPlan.planMarkdown.length / 72));
4721 return 120 + Math.min(estimatedLines * 22, 880);
packages/contracts/src/orchestration.ts
+3 -3
@@ -263,7 +263,7 @@ export const OrchestrationReadModel = Schema.Struct({
263 });
264 export type OrchestrationReadModel = typeof OrchestrationReadModel.Type;
265
266 -const ProjectCreateCommand = Schema.Struct({
266 +export const ProjectCreateCommand = Schema.Struct({
267 type: Schema.Literal("project.create"),
268 commandId: CommandId,
269 projectId: ProjectId,
@@ -337,7 +337,7 @@ const ThreadInteractionModeSetCommand = Schema.Struct({
337 createdAt: IsoDateTime,
338 });
339
340 -const ThreadTurnStartCommand = Schema.Struct({
340 +export const ThreadTurnStartCommand = Schema.Struct({
341 type: Schema.Literal("thread.turn.start"),
342 commandId: CommandId,
343 threadId: ThreadId,
@@ -980,7 +980,7 @@ export const TurnCountRange = Schema.Struct({
980 ),
981 );
982
983 -const ThreadTurnDiff = TurnCountRange.mapFields(
983 +export const ThreadTurnDiff = TurnCountRange.mapFields(
984 Struct.assign({
985 threadId: ThreadId,
986 diff: Schema.String,
packages/contracts/src/terminal.ts
+1 -1
@@ -23,7 +23,7 @@ const TerminalIdWithDefaultSchema = TerminalIdSchema.pipe(
23 Schema.withDecodingDefault(() => DEFAULT_TERMINAL_ID),
24 );
25
26 -const TerminalThreadInput = Schema.Struct({
26 +export const TerminalThreadInput = Schema.Struct({
27 threadId: TrimmedNonEmptyStringSchema,
28 });
29 export type TerminalThreadInput = Schema.Codec.Encoded<typeof TerminalThreadInput>;