Skip to content

Commit 538cd05

Browse files
committed
fix(mobile): load checkout for blank thread branches
1 parent ca95f00 commit 538cd05

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/mobile/src/state/use-thread-display-branch.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { vcsEnvironment } from "./vcs";
66

77
/**
88
* Branch label for a thread list row. Stored `thread.branch` needs no fetch;
9-
* the live status stream is only subscribed for local null-branch threads,
9+
* the live status stream is only subscribed for local missing-branch threads,
1010
* where it is the same deduplicated per-(environmentId, cwd) stream the PR
1111
* badge and the new-task composer already share — so rows on one project
1212
* root share one subscription, and virtualization keeps it to visible rows.
@@ -16,7 +16,7 @@ export function useThreadDisplayBranch(
1616
projectCwd: string | null,
1717
): string | null {
1818
const cwd = thread.worktreePath ?? projectCwd;
19-
const needsLiveBranch = thread.branch === null && thread.worktreePath === null && cwd !== null;
19+
const needsLiveBranch = !thread.branch?.trim() && thread.worktreePath === null && cwd !== null;
2020
const liveStatus = useEnvironmentQuery(
2121
needsLiveBranch
2222
? vcsEnvironment.status({

0 commit comments

Comments
 (0)