Skip to content

fix(ui): hide session button on pending timeline items#428

Merged
matt2e merged 1 commit intomainfrom
session-button-shows-too-early
Mar 20, 2026
Merged

fix(ui): hide session button on pending timeline items#428
matt2e merged 1 commit intomainfrom
session-button-shows-too-early

Conversation

@matt2e
Copy link
Contributor

@matt2e matt2e commented Mar 20, 2026

Summary

  • Remove sessionId prop from pending timeline items in BranchTimeline.svelte so the session button doesn't appear prematurely on items that haven't started yet.

Test plan

  • Verify session button no longer appears on pending timeline items
  • Verify session button still appears correctly on active/completed timeline items

🤖 Generated with Claude Code

The session button was showing on pending items before the session was
fully ready, resulting in a non-functional button. Stop passing sessionId
to TimelineRow for pending items so the button only appears once the item
transitions to a real timeline entry with proper click handlers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matt2e matt2e requested review from baxen and wesbillman as code owners March 20, 2026 06:16
@matt2e matt2e merged commit 1670698 into main Mar 20, 2026
4 checks passed
@matt2e matt2e deleted the session-button-shows-too-early branch March 20, 2026 06:19
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

<TimelineRow
type={item.type}
title={item.title}
secondaryMeta={item.sessionId
? (liveSessionHints[item.sessionId] ??

P2 Badge Keep pending placeholders wired to the live session modal

startBranchSessionWithPendingItem() writes the real sessionId onto these placeholder rows before the timeline has caught up (apps/staged/src/lib/features/branches/BranchCardSessionManager.svelte.ts:183-221). Pending rows are otherwise non-clickable in TimelineRow, so dropping the sessionId prop here removes the only control that can open the live SessionModal during that gap (apps/staged/src/lib/features/timeline/TimelineRow.svelte:73-95). In practice, right after starting a commit/note/review session, users can no longer inspect or stop it until getBranchTimeline() eventually returns the persisted item.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant