feat: add local branch checks to PR picker and integrate refresh
Enable optimistic local-branch checks for PR heads to disable non-existent branches Show IntegrateCommitsSection only when upstream tracking is origin-based or applicable
This commit is contained in:
@@ -51,6 +51,7 @@ export const IntegrateCommitsSection: React.FC<{
|
||||
worktreeMetadata: WorktreeMetadata;
|
||||
localBranches: string[];
|
||||
defaultTargetBranch: string;
|
||||
refreshKey?: number;
|
||||
onRefresh?: () => void;
|
||||
}> = ({
|
||||
repoRoot,
|
||||
@@ -58,6 +59,7 @@ export const IntegrateCommitsSection: React.FC<{
|
||||
worktreeMetadata,
|
||||
localBranches,
|
||||
defaultTargetBranch,
|
||||
refreshKey,
|
||||
onRefresh,
|
||||
}) => {
|
||||
const currentSessionId = useSessionStore((s) => s.currentSessionId);
|
||||
@@ -156,7 +158,7 @@ export const IntegrateCommitsSection: React.FC<{
|
||||
return () => {
|
||||
cancelled = true;
|
||||
};
|
||||
}, [isEligible, repoRoot, sourceBranch, targetBranch]);
|
||||
}, [isEligible, repoRoot, sourceBranch, targetBranch, refreshKey]);
|
||||
|
||||
const persistTarget = React.useCallback(
|
||||
(branch: string) => {
|
||||
|
||||
Reference in New Issue
Block a user