Commit Graph

25 Commits

Author SHA1 Message Date
leach ad01f651a3 Fix session manager formatting issue with Unicode emojis
- Added calculate_display_width() method to properly handle emoji widths
- Fixed overlapping text in session manager UI by accounting for double-width emojis
- Handles compound emojis with variation selectors (like 🗂️)
- Uses saturating_sub() to prevent underflow in padding calculations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-01 01:40:44 -04:00
leach 49b68ba0f8 Improve Anthropic streaming reliability and hide debug output
- Add proper handling for "ping" events to prevent unknown event warnings
- Implement robust JSON parsing for large web search results with encrypted content
- Add partial line buffering to handle incomplete streaming chunks correctly
- Gracefully handle EOF errors and large data blocks that fail to parse
- Add automatic fallback from streaming to non-streaming on failure with user notification
- Hide debug output from users to provide cleaner experience
- Process remaining partial lines at stream end to avoid losing content
- Improve error messages to be more informative without being alarming

Fixes streaming failures caused by web search results with large encrypted content blocks.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-31 00:03:23 -04:00
leach 1a1df93521 Fix TUI display formatting issues for better terminal compatibility
- Simplified header design from complex Unicode borders to fixed-width lines
- Streamlined status bar from multi-line bordered display to clean single-line format
- Fixed terminal width calculation dependencies that caused layout breaks
- Enhanced status display: "🤖 Model Provider • 💾 Session" format
- Improved features display with color-coded indicators (✓/✗)
- Removed problematic border calculations causing wrapping issues
- All display tests pass, maintains functionality while fixing visual problems

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 23:55:13 -04:00
Christopher 11ae676101
Merge pull request #6 from leachy14/codex/add-capability-helpers-and-refactor-provider-match
Centralize provider capability handling
2025-08-25 01:27:36 -04:00
Christopher 4618f273f3 Centralize provider capabilities 2025-08-25 01:27:09 -04:00
Christopher 1ac7914646
Merge pull request #3 from leachy14/codex/refactor-handle_user_message-to-pass-references
Avoid cloning session data for chat completions
2025-08-25 00:56:23 -04:00
Christopher 222c1c2182
Merge branch 'master' into codex/refactor-handle_user_message-to-pass-references 2025-08-25 00:56:15 -04:00
Christopher 05e0fa88b3 Use session refs for completions 2025-08-25 00:54:59 -04:00
Christopher 3f1b88ece0
Merge pull request #2 from leachy14/codex/introduce-cached-config-in-session.rs
Cache session configuration
2025-08-25 00:54:42 -04:00
Christopher 7f04128ed5
Merge branch 'master' into codex/introduce-cached-config-in-session.rs 2025-08-25 00:54:37 -04:00
Christopher 78d47f474c Cache config for session paths 2025-08-25 00:53:23 -04:00
Christopher a5e225bf60
Merge pull request #1 from leachy14/codex/refactor-signal-handling-in-main.rs
refactor: handle SIGINT with tokio signal
2025-08-25 00:53:01 -04:00
Christopher b2c1857edd refactor: handle SIGINT with tokio signal 2025-08-25 00:52:47 -04:00
leach fc99a7843d Fix system sleep prevention and add comprehensive test suite
- Fixed terminal control preventing system sleep by improving rustyline configuration and adding proper cleanup
- Added signal handling for graceful termination and terminal state reset
- Implemented comprehensive test suite with 58 unit and integration tests
- Added testing dependencies: tempfile, mockall, tokio-test, serial_test
- Created proper Drop implementation for InputHandler to ensure terminal cleanup
- Enhanced exit handling in both normal exit and /exit command

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-25 00:04:31 -04:00
leach 1a8b4f1fff i forget 2025-08-24 23:01:35 -04:00
leach 18864201d4 cleaned up presentation 2025-08-19 23:28:17 -04:00
leach 10b79eaf79 anthropic model changes 2025-08-19 01:20:17 -04:00
leach b847ef8812 added streaming support to anthropic models 2025-08-19 00:59:46 -04:00
leach 735ae69dbd export functionality and session management 2025-08-19 00:45:34 -04:00
leach 0faecbf657 added streaming support 2025-08-19 00:20:29 -04:00
leach 6d0592bda5 cleanup of commands 2025-08-18 00:51:19 -04:00
leach e1dd961f3f varios improvements to /switch, /model, and /tools 2025-08-18 00:45:54 -04:00
leach 54a456581d fixes 2025-08-15 16:27:48 -04:00
leach 7d237f692c config file, bugfixes 2025-08-15 15:41:32 -04:00
leach b171a6b2b2 Initial commit: GPT CLI (Rust)
- Complete Rust implementation of GPT CLI
- Support for OpenAI and Anthropic models
- Session persistence and management
- Web search integration via Responses API
- Interactive commands and model switching
- Comprehensive error handling and logging

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-15 15:01:28 -04:00