GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — [Bug]: "Start from origin" aborts thread bootstrap when the base branch has no remote-tracking ref · Issue #8191 · pingdotgg/t3code Closed DescriptionBefore submitting
Areaapps/server Steps to reproduce
This is the same failure class as #5408, but #5556 only fixed the "repository has no
Reproduced deterministically on the affected repo — every send with that base branch fails, and switching the base back to Minimal shell repro of the failing step: git -C <repo> remote -v # origin exists git -C <repo> branch feature/local-only # never pushed git -C <repo> rev-parse --verify "refs/remotes/origin/feature/local-only^{commit}" # fatal: Needed a single revision (exit 128) Expected behaviorWhen the base branch has no remote-tracking ref, Creating a worktree thread on top of an unpushed branch is a completely ordinary thing to do — it is exactly what happens when you start a follow-up thread on the branch of an earlier T3 Code thread, since T3-generated Actual behaviorBootstrap aborts at The failing command is built here — the base ref is passed straight through with an
const remoteRefName = parsedRemoteRef?.remoteRef ?? `${input.fallbackRemoteName}/${input.refName}`; const commitSha = yield* runGitStdout("GitVcsDriver.resolveRemoteTrackingCommit", input.cwd, [ "rev-parse", "--verify", `refs/remotes/${remoteRefName}^{commit}`, ]).pipe(Effect.map((stdout) => stdout.trim())); and the caller, where the only guard is const startFromOrigin = bootstrap.prepareWorktree.startFromOrigin === true && (yield* gitWorkflow.remoteExists({ cwd: bootstrap.prepareWorktree.projectCwd, remoteName: "origin", })); if (startFromOrigin) { yield* gitWorkflow.fetchRemote({ /* … */ }); const resolvedRemoteBase = yield* gitWorkflow.resolveRemoteTrackingCommit({ cwd: bootstrap.prepareWorktree.projectCwd, refName: bootstrap.prepareWorktree.baseBranch, fallbackRemoteName: "origin", }); worktreeBaseRef = resolvedRemoteBase.commitSha; } The UI does not gate the option either — Compounding symptom. Because the rollback soft-deletes the provisional thread while the client keeps the same pre-allocated That is the #4647 / #5721 stale-draft-ID behavior, still observed on 0.0.33 — noting it only because it is what the user actually sees. The git stderr is never surfaced in the UI, so the visible error points nowhere near the real cause. Four consecutive drafts were burned this way in my
All four had ImpactBlocks work completely Version or commitT3 Code 0.0.33 (AUR EnvironmentArch Linux (kernel 7.1.8), Wayland/Hyprland, provider Logs or stack traces# ~/.t3/userdata/logs/server.trace.ndjson — root cause GitCommandError: Git command failed in GitVcsDriver.resolveRemoteTrackingCommit (<repo>): Git command exited with a non-zero status. at resolveRemoteTrackingCommit (…/apps/server/dist/bin.mjs:44202:145) at resolveRemoteTrackingCommit (definition) (…/apps/server/dist/bin.mjs:34228:45) at ws.rpc.orchestration.dispatchCommand (…/apps/server/dist/bin.mjs:35718:111) OrchestrationDispatchCommandError: Git command failed in GitVcsDriver.resolveRemoteTrackingCommit (<repo>): Git command exited with a non-zero status. at toBootstrapDispatchCommandCauseError (…/apps/server/dist/bin.mjs:48302:63) # then, on retry of the same draft — what the user actually sees OrchestrationCommandInvariantError: Orchestration command invariant failed (thread.create): Thread '20877f92-…' already exists and cannot be created twice. at invariantError (…/apps/server/dist/bin.mjs:22122:9) at requireThreadAbsent (…/apps/server/dist/bin.mjs:22164:21) at orchestration.command.thread.create (…/apps/server/dist/bin.mjs:23743:18) WorkaroundAny one of:
An already-wedged draft still needs the localStorage cleanup from #4647. Reacted by Nick Anisimov ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | |||||||||||||||
| You are visitor 01402775 — 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. |