905 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
05c73bbbdf fix: improv diff 2025-07-22 12:16:11 -03:00
Carlos Alexandro Becker
4399c9ab30 fix: improvements 2025-07-22 12:15:04 -03:00
Carlos Alexandro Becker
380d524ec1 perf: init tools in background 2025-07-22 12:10:26 -03:00
Andrey Nering
a5b8fd567b perf(diffview): use faster checksum algorithm 2025-07-22 11:45:37 -03:00
Ayman Bagabas
5950cf82db fix(tui): status: properly truncate info messages 2025-07-22 10:30:20 -04:00
Ayman Bagabas
82a34c708a fix(tui): renderer: line wrapping in chat
This fixes an issue where the tool call in nested headers don't wrap
correctly when the tool name is long. The tool name is now rendered
without an extra trailing space, and the parameter list is rendered with
the correct width calculation.
2025-07-22 09:57:58 -04:00
Kujtim Hoxha
4db80f07e1 chore: improve diff view performance 2025-07-22 13:39:15 +02:00
Kujtim Hoxha
3247a8c80b Merge pull request #235 from charmbracelet/smaller-logo
fix(tui): render a smaller logo on splash screen
2025-07-22 12:56:52 +02:00
Kujtim Hoxha
913b91e495 Merge pull request #242 from charmbracelet/conditional-header
chore: conditionally add thinking header
2025-07-22 12:55:34 +02:00
Kujtim Hoxha
da0c30ac83 Merge pull request #253 from charmbracelet/user-message-fixes
fix(messages): correct file attachment truncation
2025-07-22 12:54:23 +02:00
Kujtim Hoxha
4c1f31ce67 Merge pull request #261 from charmbracelet/charm-413
fix(tools): bash: add scp and ssh to banned commands
2025-07-22 12:50:34 +02:00
Kujtim Hoxha
c8034e3c09 Merge pull request #270 from charmbracelet/comments
chore: lint and tidy comments
2025-07-22 12:44:38 +02:00
Kujtim Hoxha
c570ded3e7 Merge pull request #258 from charmbracelet/bugfix/ulimit-increase
automatically increase the ulimit to 80% of maximum for crush PID
2025-07-22 12:44:10 +02:00
Christian Rocha
fe9fdf2228 chore: tidy various comments 2025-07-21 22:19:33 -04:00
Christian Rocha
2fd65cdfe2 fix(lint): variable shadowing 2025-07-21 18:47:53 -04:00
Ayman Bagabas
8f39595eaa fix(tui): cursor position in the textarea
Hide the cursor when it's misaligned with the textarea.
2025-07-21 16:05:25 -04:00
Ayman Bagabas
46e2fc409e fix(tools): bash: add scp and ssh to banned commands
Add `scp` and `ssh` to the list of banned commands to avoid security
risks and UI issues when asking for user input in the terminal.
2025-07-21 11:40:17 -04:00
Ayman Bagabas
a5b76d3a3f fix(tui): splash: trigger smaller logo on 55 columns
Co-authored-by: Andrey Nering <andreynering@users.noreply.github.com>
2025-07-21 10:04:41 -04:00
Andrey Nering
ff1b8fdee1 refactor: move cmd package inside internal as internal/cmd
This avoid a little of confusion. Usually, `main` packages live either
on the root or in folders inside `cmd/`. Having both can be confusing,
so let's at least move `cmd` inside `internal`.
2025-07-21 10:55:57 -03:00
Andrey Nering
08d5a47c7d chore: run modernize 2025-07-21 10:51:45 -03:00
Christian Rocha
1999073112 chore(messages): greatly simplify filename truncation with ansi.Truncate 2025-07-20 00:12:32 -04:00
Christian Rocha
83d9cc3427 fix(messages): properly measure width when rendering attachment paths 2025-07-20 00:03:30 -04:00
Christian Rocha
c37fe5317d chore(messages): no need to append to a pre-allocated slice 2025-07-19 15:16:03 -04:00
Christian Rocha
a4ac72f061 fix(messages): truncate attachment paths by rune, not by byte 2025-07-19 15:14:38 -04:00
Christian Rocha
16cf0bd57e chore(messages): pre-allocate user message attachment slice 2025-07-19 14:55:42 -04:00
Christian Rocha
3b786fbe53 Revert "feat(mouse): delegate mouse actions to terminal emulator (#218)"
This reverts commit 494274e6f4.
2025-07-19 10:23:27 -04:00
Kujtim Hoxha
54f6cbee78 Merge pull request #248 from charmbracelet/fix-azure
fix: azure provider
2025-07-19 12:55:55 +02:00
Kujtim Hoxha
89bdfbf79b Merge pull request #229 from charmbracelet/prevent-binary-data
Prevent binary data in the fetch/view tool. Add a download tool
2025-07-19 12:54:45 +02:00
Kujtim Hoxha
030f899ca2 Merge pull request #249 from charmbracelet/sidebar-detail-work
chore(sidebar): detail work
2025-07-19 12:53:51 +02:00
Kujtim Hoxha
078a62c2a7 chore: remove thinking when done 2025-07-19 12:52:25 +02:00
Kujtim Hoxha
0d425f7c52 Merge remote-tracking branch 'origin/main' into conditional-header 2025-07-19 12:49:59 +02:00
Kujtim Hoxha
fad9839927 Merge pull request #244 from charmbracelet/add-extra-body
chore: add extra body & header to openai and anthropic
2025-07-19 12:37:09 +02:00
Kujtim Hoxha
1a656de03b feat: verify the API key when setting provider
* feat: simple provider api key test
* feat: add api key validation
* chore: add api key to models selector
* chore: address review
* chore: fix api key
2025-07-18 15:59:15 -04:00
bashbunni
494274e6f4 feat(mouse): delegate mouse actions to terminal emulator (#218) 2025-07-18 12:25:51 -07:00
Christian Rocha
6c20460e36 chore(sidebar): increase logo height breakpoint threshold 2025-07-18 15:05:24 -04:00
Christian Rocha
75fafedfc1 chore(sidebar): remove space after periods of ellipsis; make darker 2025-07-18 15:05:11 -04:00
Kujtim Hoxha
bfde4082fe fix: azure provider 2025-07-18 18:13:33 +02:00
Kujtim Hoxha
a3f6f0fe29 chore: add extra body & header to openai and anthropic 2025-07-18 12:41:20 +02:00
Tai Groot
a9f136d5c7 automatically increase the ulimit to 80% of maximum for crush 2025-07-18 02:17:00 -07:00
Kujtim Hoxha
52346a2bfa Merge pull request #221 from charmbracelet/bugfix/filepicker-in-cwd
fix: start filepicker in cwd instead of os.Homedir
2025-07-18 10:09:11 +02:00
Kujtim Hoxha
43960fdf15 chore: conditionally add thinking header 2025-07-18 10:01:04 +02:00
Ayman Bagabas
34935a159e fix(tui): app: show error message when window is too small 2025-07-17 16:00:19 -04:00
Ayman Bagabas
8a16b8e385 fix(tui): chat: adjust padding for message list
The gap between the message list and the editor was too large. 3 lines
of padding can be too much. 1 line gets added after each message list
item as a "gap", there's the padding at the bottom of the message list,
and there's the editor top padding.

In this commit, we removed the bottom padding of the message list,
keeping both the gap that gets added after each message list item and
the padding at the top of the editor.
2025-07-17 15:43:40 -04:00
Ayman Bagabas
3196bb37d6 fix(tui): splash: re-render logo when screen size changes 2025-07-17 15:31:33 -04:00
Ayman Bagabas
2929b21f4c fix(tui): splash: make sure we have a margin after the logo on small
screens
2025-07-17 15:02:43 -04:00
Ayman Bagabas
85b13fcd81 fix(tui): splash: cache logo rendering on resize
Only re-render the logo when the width changes.
2025-07-17 13:27:49 -04:00
Ayman Bagabas
2a8998ef00 fix(tui): logo: simplify logo word stretching 2025-07-17 12:44:01 -04:00
Ayman Bagabas
7a282d3a2f fix(tui): render a smaller logo on splash screen
When we have a smaller window, we render a smaller version of the Crush
logo.
2025-07-17 12:43:56 -04:00
Ayman Bagabas
a236ede84d fix(tui): renderer: replace tabs with spaces in plain content
We need to ensure that tabs in plain text content are replaced with
spaces otherwise they will be escaped and displayed as tab unicode
picture characters.
2025-07-17 10:08:49 -04:00
Kujtim Hoxha
eedd50532a feat: add a download tool 2025-07-17 14:55:05 +02:00