Skip to content

Commit c6ba054

Browse files
committed
fix(FR-2467): disable session commit button until session is Running (#6452)
Resolves #6443 (FR-2467) ## Summary - Disable commit button when session status is not RUNNING - Previously only checked isActive() which allowed non-running states like PREPARING, PENDING, PULLING to enable the button ## Test plan - [ ] Verify commit button is disabled when session is in PREPARING state - [ ] Verify commit button is disabled when session is in PENDING state - [ ] Verify commit button is enabled when session is in RUNNING state - [ ] Verify commit button remains disabled for non-owners regardless of session status 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent 0251a6d commit c6ba054

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

react/src/components/ComputeSessionNodeItems/SessionActionButtons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ const SessionActionButtons: React.FC<SessionActionButtonsProps> = ({
329329
>
330330
<Button
331331
size={size}
332-
disabled={!isActive(session) || !isOwner}
332+
disabled={session?.status !== 'RUNNING' || !isOwner}
333333
icon={<BAIContainerCommitIcon />}
334334
onClick={() => {
335335
onAction?.('containerCommit');

0 commit comments

Comments
 (0)