Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Handle failed sessions and improve pending timeline item management#18

Merged
baxen merged 2 commits intomainfrom
baxen/no-commit
Feb 10, 2026
Merged

Handle failed sessions and improve pending timeline item management#18
baxen merged 2 commits intomainfrom
baxen/no-commit

Conversation

@baxen
Copy link
Collaborator

@baxen baxen commented Feb 10, 2026

Summary

Handle sessions that finish without producing a commit (failed/abandoned sessions) and allow users to clean up pending timeline items.

Changes

Backend (Rust)

  • Add delete_pending_commit command to remove pending/failed commits by DB id (safety-checks that the commit has no SHA)
  • Expose id field on CommitTimelineItem so the frontend can reference pending commits by their DB id

Frontend (Svelte)

  • Introduce failed-commit and failed-note timeline item types for sessions that finished without producing artifacts
  • Show failed items with muted styling (italic title, muted icon/colors, AlertTriangle icon)
  • Enable delete action on pending and failed timeline items (cancels session if running, then removes DB record)
  • Sort failed items alongside pending items at the bottom of the timeline

CI

  • Re-enable full just install and just check-all in CI workflow (removes Rust-only workaround)

Minor

  • Simplify NewSessionModal textarea focus logic

baxen added 2 commits February 9, 2026 20:48
When a session completes without producing the expected artifact (commit
or note), the timeline now shows a failed state with an AlertCircle icon
and descriptive text ('Session finished — no commit created') instead of
leaving the spinner running indefinitely.

Changes:
- Add 'failed-commit' and 'failed-note' timeline item types with danger-
  colored icon and muted italic title styling
- Show delete button on all pending/failed items (removes the !isPending
  guard) so users can immediately dismiss stuck or failed artifacts
- Delete for pending/failed commits cancels the session and removes the
  DB record without touching git (new delete_pending_commit backend cmd)
- Delete for generating/failed notes cancels the session before deleting
- Add id field to CommitTimelineItem so pending commits can be referenced
  by their DB id for deletion
Switch from AlertCircle to AlertTriangle for failed session items and
replace danger-colored styling with muted theme defaults:
- Icon: AlertCircle → AlertTriangle
- Icon color: var(--ui-danger) → var(--text-muted)
- Icon border: var(--ui-danger) → var(--border-muted)
- Secondary meta text: var(--ui-danger) → var(--text-muted)
@baxen baxen requested a review from wesbillman as a code owner February 10, 2026 05:45
@baxen baxen merged commit f394c9b into main Feb 10, 2026
1 of 2 checks passed
@baxen baxen deleted the baxen/no-commit branch February 10, 2026 06:02
loganj added a commit that referenced this pull request Feb 26, 2026
Add source-level selection and bulk actions
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