50e7596
feat(tui): support adding newlines in chat editor
Click to expand commit body
This adds support for inserting newlines in the chat editor using
`shift+enter` (when supported) and `ctrl+j`. This allows users to write
multi-line messages more easily, enhancing the chat experience.
Ayman Bagabas
created
c2d0d64
refactor(log): rename log initialization function for clarity
Ayman Bagabas
created
edd4996
fix(fsext): only log warnings if log is initialized
Ayman Bagabas
created
f884ff1
feat(log): add atomic check for initialization
82d7747
Improve TUI performance with Bubbletea v2 event filtering
Click to expand commit body
- Use tea.WithMouseCellMotion instead of WithMouseAllMotion to reduce event flooding
- Add MouseEventFilter to filter mouse wheel/motion events when editor is focused
- Implement debounced completion filtering (150ms) to reduce overhead during fast typing
- Add proper timer cleanup when editor loses focus
- Remove unnecessary ChatFocusedMsg handling since filter checks focus state directly
This eliminates typing lag caused by mouse scroll events while maintaining mouse functionality for navigation.
Raphael Amorim
created
134ee54
chore: allow custom providers without api key
Click to expand commit body
- allow users to setup custom providers without api keys for local
providers
- use the name of the provider in the model list
Kujtim Hoxha
created
862baeb
docs: add targeted documentation for state management
Click to expand commit body
- Document Splash interface methods for clarity
- Add comments explaining state initialization logic
- Clarify when splash goes full screen vs shared layout
- Focus on explaining 'why' without over-documenting 'what'
Kujtim Hoxha
created
bc1992f
refactor: replace magic numbers with named constants
Click to expand commit body
- Add layout constants for borders, padding, and positioning
- Add timing constant for cancel timer duration
- Improve code readability and maintainability
- Make layout calculations self-documenting
Kujtim Hoxha
created
8dff4d6
fix: add panic recovery to TUI subscription handler
Click to expand commit body
- Add panic recovery with graceful TUI shutdown to app.Subscribe method
- Ensures application doesn't crash if TUI subscription loop panics
- Logs panic details to timestamped files for debugging
- Maintains consistency with other critical goroutines in codebase