472889c
fix: return nil for empty tools slice to handle omitzero properly (#861)
Click to expand commit body
The `anthropic.MessageNewParams` uses omitzero tag, but an empty slice is not
considered zero value. Return `nil` instead of empty slice when no tools are
provided to ensure proper omitzero behavior.
林玮 (Jade Lin)
created
786286f
chore(legal): @khareyash05 has signed the CLA
ccf55b8
fix(windows): downgrade ultraviolet to fix non-win32 terminals on windows (#856)
Click to expand commit body
Terminals that do not support win32 input were not behaving correctly
on Windows. This includes Alacritty and Rio, for example.
Downgrading Ultraviolet temporarily until we manage to fix this bug
upstream.
This will also revert bracket paste on Windows.
Closes #845
Closes #847
Closes #851
da667ce
fix: scrolling the editor after paste (#466)
Click to expand commit body
* chore: bump charmbracelet/bubbles/v2 to v2.0.0-beta.1.0.20250801162210-c4068c642c90
This fixes a bug where the editor won't scroll after paste. See https://github.com/charmbracelet/bubbles/pull/822
* chore: bump bubbles to latest v2-exp
* chore: bump bubbles to latest v2-exp
Ayman Bagabas
created
26481f0
chore: bump bubbletea and ultraviolet to support win32 input mode (#838)
Click to expand commit body
With this, Windows users can now simply paste into Crush and bracketed
paste mode along with win32 input mode will just work converting escape
sequences and Windows API input events into proper events and decoding
them to UTF-8 and processing them correctly for paste.
Ayman Bagabas
created
b796464
ci(issue-labeler): add more words for some labels
f74abf2
feat(cmd): support overriding the data directory
Click to expand commit body
In some cases it might not be desirable to write `.crush` folders
everywhere, or to reuse `.crush` folders between different filesystem
locations.
This change makes it possible to specify `-D` / `--data-dir` to set a
different directory to load/create the project-specific data in.
Vincent Ambo
created
0c31481
fix: treat data directory the same in logs as elsewhere
Click to expand commit body
logs.go was the only place that explicitly joined
`Options.DataDirectory` with the working directory, everywhere else uses
it as-is.
Changing this means that we can consistently have a `DataDirectory` that
is either a relative or an absolute path and have things work just fine.
Vincent Ambo
created
8f45a84
fix(fsext): stop traversing if the directory owner changes
Andrey Nering
created
897796e
feat: add `fsext` function to get owner of directory
Andrey Nering
created
f3a8061
feat: if a `.crush` directory is present in a parent dir, use that
Click to expand commit body
Ref #254
Andrey Nering
created
84bd324
feat(fsext): add function to search for something in parent directories
Andrey Nering
created
172df74
refactor: move `HomeDir()` to `fsext` package
0798844
chore: update error message, this is not user fault
Andrey Nering
created
4c8d4a5
fix(onboarding): fix onboarding screen freezing when on click on it
Click to expand commit body
To reproduce:
* `rm -rf ~/.config/crush; rm -rf ~/.local/share/crush`
* Open `crush` on onboarding
* Notice how you can navigate using arrows, filter, etc
* Click on the screen
* Not the onboarding screen will stop processing events properly
(can't navigate, filter, choose model, etc)
Closes #812
Follow-up of #817
Andrey Nering
created
fc829ac
chore(legal): @ericcoleta has signed the CLA
74bcdaf
sec: remove 'go' from safe programs (#820)
Click to expand commit body
It could be used to prompt inject commands e.g. `go test -exec`.
Plus, we don't have other languages there, so I think we remove Go as
well.
Ideally, we could ask haiku if the command is read only or not, and ask
for perms based on that, but for now I think this will do.
Thanks Will Vandevanter for the report.
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Carlos Alexandro Becker
created
d86f739
fix: fix panic that can happen on sending a message (#817)
Andrey Nering
created
b449229
fix(shell): block `go test -exec` and ensure it works using equals
Andrey Nering
created
cbdd2e5
fix(shell): refactor arguments blocker to check for flags in any position
a02bd99
fix: Expose Required params to Anthropic API (#752)
Click to expand commit body
* chore: add build task and generates annotations
Added a build task for parity with other task commands.
Used the suggested build command from the README.
Also added "generates" annotations, which is useful as the
Taskfile grows.
Signed-off-by: Evan Wies <evan@neomantra.net>
* fix: expose Required params to Anthropic client
Signed-off-by: Evan Wies <evan@neomantra.net>
* fix: typo in cla.yml precomment -> prcomment
Signed-off-by: Evan Wies <evan@neomantra.net>
---------
Signed-off-by: Evan Wies <evan@neomantra.net>
For some reason, golangci-lint is not behaving too well after we upgraded
to Go 1.25 and enabled GreenTea GC.
After some debugging, I found out that we need to compile with Go 1.25
toolchain and run with the GreenTeaGC experiment _disabled_.
The build from Nix was built with Go 1.24, so that one doesn't work as
expected.