Skip to content

Commit 0266ead

Browse files
davindicodeclaude
andcommitted
Freeze breadcrumb navigation and toolbar during file upload
Prevents accidental path changes mid-upload that would cause files to upload to wrong directory. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3247fba commit 0266ead

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/components/files/FilesPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,10 @@ function FileSessionView({ session }: { session: FileSession }) {
332332

333333
return (
334334
<>
335-
<Breadcrumbs path={cwd} onNavigate={handleNavigate} onGoUp={handleGoUp} canGoUp={cwd !== "/"} />
335+
<Breadcrumbs path={cwd} onNavigate={uploading ? () => {} : handleNavigate} onGoUp={uploading ? () => {} : handleGoUp} canGoUp={cwd !== "/" && !uploading} />
336336

337337
{/* Toolbar */}
338-
<div className="flex items-center justify-between px-3 py-1.5 bg-[#16162a] border-b border-gray-700 shrink-0">
338+
<div className={`flex items-center justify-between px-3 py-1.5 bg-[#16162a] border-b border-gray-700 shrink-0 ${uploading ? "pointer-events-none opacity-50" : ""}`}>
339339
<div className="flex items-center gap-0.5">
340340
<button onClick={() => loadDirectory(cwd)} className="p-1.5 text-gray-400 hover:text-white transition-colors" title="Refresh">
341341
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={2}>

0 commit comments

Comments
 (0)