* Remove Messages tab from session view
The Messages tab was showing raw JSON data that is no longer functional
and not needed by users. This commit removes:
- Messages tab from the view switcher UI
- JsonMessageView component and its imports
- 'messages' from ViewMode type definition
- messages field from unreadActivity tracking
- Associated UI code for rendering the messages view
The underlying jsonMessages data structure is preserved as it's still
used by other features like the Rich Output view.
* Move Branch Actions button to ViewTabs for better visibility
The Branch Actions button was previously in the top-right corner of the
session header, making it less noticeable and partially blocked by the
window's draggable area. This commit moves it to the ViewTabs bar where:
- It's more visible as part of the main navigation flow
- It's away from the draggable title bar area
- It's easily accessible next to other session controls
- It maintains consistent styling with other action buttons
The button now appears after the view tabs but before the Display Settings
button (when visible), creating a logical grouping of session actions.
* Remove Dashboard tab from session view
The Dashboard tab has been removed from the session view interface while
keeping the dashboard functionality accessible through other navigation
paths. This simplifies the session view by removing a less frequently
used tab.
Changes made:
- Removed 'dashboard' from ViewMode type definition
- Removed Dashboard tab from ViewTabs component
- Removed dashboard rendering code from SessionView
- Updated unreadActivity tracking to exclude dashboard
- Cleaned up related imports and type definitions
The ProjectDashboard component itself remains untouched and can still
be accessed through other parts of the application.
* Add cancel functionality for running requests
Restored the ability to cancel in-progress requests with a visually prominent
cancel button that appears when a session is running. The implementation:
- Shows a red Cancel button in place of the action button when session is running
- Uses the existing stop session API endpoint (sessions:stop)
- Supports both button click and ESC key to cancel
- Styled with status-error color tokens for clear visual indication
- Includes keyboard shortcut hint in the button
- Maintains consistent design with other action buttons
The cancel button uses a gradient background, proper focus states, and hover
effects consistent with the design system, making it easy to spot and use
when needed to interrupt long-running operations.
* Fix cancel button to use proper design tokens
Updated the cancel button to properly integrate with the design system:
- Uses surface-secondary background with surface-hover on hover
- Text uses status-error color for clear indication
- Border uses semi-transparent status-error for subtle accent
- Keyboard shortcut badge uses surface-tertiary background
- Removed hardcoded colors and gradients
- Now properly supports both light and dark themes
The button maintains visual prominence while fitting seamlessly with
the rest of the UI design tokens.
* Fix duplicate close buttons in modals
The Modal component renders its own close button by default, and ModalHeader
also renders a close button when passed an onClose prop. This was causing
duplicate X buttons to appear overlaid on each other.
Fixed by setting showCloseButton={false} on Modal components that use
ModalHeader with onClose. This ensures only the ModalHeader's close button
is rendered, maintaining consistent positioning and avoiding duplicates.
Affected modals:
- Crystal Settings
- Prompt Detail Modal
- Main Branch Warning Dialog
- Update Dialog
- Permission Dialog
- Prompt History Modal
* Fix CollapsibleCard submitting forms on click
The CollapsibleCard button was missing a type="button" attribute, causing it
to default to type="submit" when used inside a form. This made clicking the
collapse/expand button submit the form instead of just toggling the section.
In Crystal Settings, this caused the modal to close when clicking collapsible
sections on the General tab (which uses a form), while the Notifications tab
worked correctly (no form wrapper).
Fixed by explicitly setting type="button" on the CollapsibleCard toggle button
to prevent form submission.
* Remove excessive console logging
Removed verbose console.log statements that were creating excessive output
in the developer console, particularly:
- RichOutputView: Removed detailed logging of every assistant message
that was outputting full message structures including tool calls
- SessionStore: Removed output processing logs that fired on every update
- useSessionView: Removed various session state and loading logs
- performSquashWithCommitMessage: Removed detailed operation logging
These logs were useful during development but create too much noise in
production use. Critical error logging remains intact.
* Fix project tree collapse/expand behavior and performance issues
- Add proper event propagation handling to all toggle buttons to prevent
parent click handlers from interfering with expand/collapse actions
- Add onMouseDown handlers to prevent drag operations when clicking toggles
- Add z-index layering to ensure toggle buttons are properly clickable
- Remove debug console.log statements that were causing re-renders
- Update toggle functions to consistently handle event objects
- Import React.memo for GitStatusIndicator optimization
This resolves issues where some projects refused to collapse, icons
would reload unexpectedly, and collapse/expand behavior was inconsistent
across the project tree.
* Fix lint and TypeScript errors
- Remove unused React Hook useId conditional call in SwitchSimple
- Clean up dead code from removed terminal output view
- Remove unused variables and type errors from useSessionView
- Remove unused import from GitStatusIndicator
All lint checks and type checks now pass.
* Implement autocommit display in RichOutputView
- Add CommitSummaryCard component with design tokens supporting compact/expanded/hidden modes
- Extend MessageSegment type to support commit_summary data
- Modify loadMessages to fetch execution data alongside conversation data
- Update transformMessages to inject commit summaries between user prompts and responses
- Add commitDisplay setting to RichOutputSettings with 'compact' as default
- Render commit summaries chronologically in the conversation flow
Users can now see autocommit activity with proper design tokens instead of
invisible ANSI colors. Supports user preferences for display verbosity.
* Fix autocommit display and auto-scroll issues
- Store actual git commit messages in execution_diffs table
- Display proper commit messages instead of truncated prompts
- Fix auto-scroll jumping by only scrolling when near bottom
- Add commit_message field to database models and migration
- Retrieve commit message from git log after autocommit
* Remove temporary test files
* Fix auto-scroll and autocommit display issues
- Improved auto-scroll to track if user was at bottom before new messages
- Fixed autocommit display by using actual execution_diffs from database
- Changed sessions:get-executions handler to return database records
- Added debug logging to help troubleshoot commit display
- Auto-scroll now properly follows new messages when user is at bottom
* Implement clean commits panel in sidebar
- Added dedicated Commits tab alongside Prompts in the session sidebar
- Removed inline commit summaries from conversation flow
- Created collapsible commit list with expandable details
- Preserved tab state in localStorage for better UX
- Shows commit message, file stats, hash, and timing
- Clean separation of concerns: conversation vs git activity
- Toggle button shows appropriate icon based on active tab
* Handle failed commits in Commits panel
- Show failed commits with red icon and 'Uncommitted changes' label
- Display warning message when expanded with guidance to check Terminal
- Skip executions with no changes and no commit (empty operations)
- Clear visual distinction between successful and failed commits
* fix: Update smoke test to match actual 'Crystal Settings' text
The settings dialog shows 'Crystal Settings' not just 'Settings', so the test was failing when looking for the wrong text.
* fix: Make commits panel scrollable
- Added h-full and overflow-y-auto to enable vertical scrolling
- Updated loading and empty states to center content within full height
- Ensures commit history remains accessible when there are many commits
---------
Co-authored-by: Erick Shaffer <erick.shaffer@meraki.net>