Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function RepositoriesAccordion({
{hasBranches && (
<button
onClick={toggleExpanded}
className="h-4 w-4 text-muted-foreground flex-shrink-0 hover:text-foreground"
className="h-4 w-4 text-muted-foreground flex-shrink-0 hover:text-foreground cursor-pointer"
>
{isExpanded ? (
<ChevronDown className="h-4 w-4" />
Expand All @@ -135,7 +135,7 @@ export function RepositoriesAccordion({
)}
{!hasBranches && <div className="h-4 w-4 flex-shrink-0" />}
<GitBranch className="h-4 w-4 text-muted-foreground flex-shrink-0" />
<div className="flex-1 overflow-visible">
<div className="flex-1 min-w-0">
<div className="flex items-center gap-2 flex-wrap">
<div className="text-sm font-medium truncate">{repoName}</div>
{currentBranch && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ export function AddContextModal({
const handleSubmit = async () => {
if (!contextUrl.trim()) return;

// Trim URL and remove trailing slash
const sanitizedUrl = contextUrl.trim().replace(/\/+$/, '');

// Use autoBranch from backend (single source of truth), or empty to let runner auto-generate
const defaultBranch = autoBranch || '';
await onAddRepository(contextUrl.trim(), contextBranch.trim() || defaultBranch, autoPush);
await onAddRepository(sanitizedUrl, contextBranch.trim() || defaultBranch, autoPush);

// Reset form
setContextUrl("");
Expand Down
Loading