@devries-cameron20 / t3code Mirror · read-only / commits / 5815442128
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 22, 07:00 UTC

fix(server): turn diffs keep signed commits' files under log.showSignature (#29124)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Alex Southwell committed Nov 3, 2026 at 01:35 UTC 5815442128942acb9f63d8808e9a888b475c6fa7
2 files changed +38
apps/server/src/checkpointing/CheckpointStore.test.ts
+35
@@ -522,5 +522,40 @@ it.layer(layerTest)("CheckpointStore.layer", (it) => {
522 );
523 }),
524 );
525 +
526 + it.effect("keeps paths from signed commits under log.showSignature", () =>
527 + Effect.gen(function* () {
528 + const tmp = yield* makeTmpDir();
529 + yield* initRepoWithCommit(tmp);
530 + const signingKey = NodePath.join(yield* makeTmpDir("checkpoint-signing-key-"), "key");
531 + yield* (yield* VcsProcess.VcsProcess).run({
532 + operation: "CheckpointStore.test.sshKeygen",
533 + command: "ssh-keygen",
534 + cwd: tmp,
535 + args: ["-q", "-t", "ed25519", "-N", "", "-f", signingKey],
536 + timeoutMs: 10_000,
537 + });
538 + yield* git(tmp, ["config", "gpg.format", "ssh"]);
539 + yield* git(tmp, ["config", "user.signingkey", `${signingKey}.pub`]);
540 + yield* git(tmp, ["config", "log.showSignature", "true"]);
541 + const checkpointStore = yield* CheckpointStore.CheckpointStore;
542 + const threadId = ThreadId.make("checkpoint-authored-paths-signed");
543 + const refs = {
544 + cwd: tmp,
545 + fromCheckpointRef: checkpointRefForThreadTurn(threadId, 0),
546 + toCheckpointRef: checkpointRefForThreadTurn(threadId, 1),
547 + };
548 + yield* checkpointStore.captureCheckpoint({
549 + cwd: tmp,
550 + checkpointRef: refs.fromCheckpointRef,
551 + });
552 + yield* writeTextFile(NodePath.join(tmp, "kept.txt"), "kept\n");
553 + yield* git(tmp, ["add", "kept.txt"]);
554 + yield* git(tmp, ["commit", "-S", "-m", "kept"]);
555 + yield* checkpointStore.captureCheckpoint({ cwd: tmp, checkpointRef: refs.toCheckpointRef });
556 +
557 + expect(yield* checkpointStore.listAuthoredPaths(refs)).toEqual(new Set(["kept.txt"]));
558 + }),
559 + );
560 });
561 });
apps/server/src/vcs/GitVcsDriver.ts
+3
@@ -1436,6 +1436,9 @@ export const makeVcsDriverShape = Effect.fn("makeGitVcsDriverShape")(function* (
1436 args: [
1437 "-c",
1438 "diff.relative=false",
1439 + // log.showSignature prints verification text into the path list.
1440 + "-c",
1441 + "log.showSignature=false",
1442 ...args,
1443 "--name-only",
1444 "-z",