Skip to content

PaperCLI v1.1.0 - Interactive Chat Interface

Choose a tag to compare

@SXKDZ SXKDZ released this 14 Jul 02:54
· 66 commits to main since this release

This major update introduces a powerful interactive chat interface for discussing papers with AI, along with significant performance and usability improvements.

✨ New Features

πŸ€– Interactive Chat Interface

  • Local Chat Dialog: New /chat command opens a real-time chat interface with OpenAI GPT
  • Configurable Models: Support for any OpenAI model (GPT-4o, GPT-4, etc.) via OPENAI_MODEL env var
  • Automatic PDF Context: First 10 pages of PDFs are automatically included in chat context
  • Auto-Summarization: Papers without notes get automatic AI-generated summaries
  • Smart Navigation: Input history with up/down arrows, contextual scrolling

🎹 Enhanced Keyboard Shortcuts

  • Chat Interface:
    • Enter - Send message
    • Ctrl+J - Insert newline
    • Ctrl+S - Send message (alternative)
    • ↑/↓ - Navigate input history or scroll chat
    • PageUp/PageDown - Scroll chat by page
    • Esc - Close chat
  • Updated F-Keys: F4 now opens chat interface

🌐 Browser Chat Integration

  • Quick Access: /chat [provider] opens Claude, ChatGPT, or Gemini web interfaces
  • Provider Options: claude, chatgpt, gemini
  • Automatic PDF Opening: PDFs open alongside browser chat interfaces

πŸ”§ Technical Improvements

⚑ Performance Enhancements

  • Multithreaded Processing: All LLM operations run in background threads
  • Non-blocking UI: Interface remains responsive during AI processing
  • Real-time Status Updates: πŸ€– emoji indicates LLM operations in progress

πŸ› οΈ System Improvements

  • Thread-safe UI Updates: Proper async handling with call_soon_threadsafe
  • Enhanced Error Handling: More informative error messages
  • StatusMessage System: Centralized emoji management for consistent UI
  • Improved Window Sizing: Fixed chat dialog dimensions and scroll handling

πŸ“š Documentation Updates

  • Comprehensive Chat Guide: Detailed documentation of chat interface features
  • Updated Keyboard Shortcuts: Complete reference for all shortcuts
  • Simplified Configuration: Clear setup instructions for OpenAI integration
  • Enhanced Help Text: In-app help includes chat interface shortcuts

πŸ”„ Breaking Changes

  • F-Key Mapping: F4 now opens chat (previously F1 was help)
  • Chat Command: /chat now opens local interface (use /chat [provider] for browser)

πŸ› Bug Fixes

  • Fixed status bar updates during long-running operations
  • Improved PDF content extraction and error handling
  • Enhanced dialog focus management and keyboard navigation

πŸ“¦ Installation

# Install from GitHub
pip install git+https://github.com/SXKDZ/papercli.git

# Or using pipx (recommended)
pipx install git+https://github.com/SXKDZ/papercli.git

πŸ”§ Configuration

Add to your .env file for chat functionality:

# Required for local chat interface and summarization
OPENAI_API_KEY=your_openai_api_key_here

# Optional: specify OpenAI model (defaults to gpt-4o)
OPENAI_MODEL=gpt-4o

Full Changelog: v1.0.4...v1.1.0