Optimizations and More
Our most ripped dev @caarlos0 ripped more than his abs in today’s release. Thanks to him, Crush now uses less memory and has faster startup and shutdown times across the board.
If you only use Crush because of local models, you might be interested in the contribution from @jonhoo who added a disable_default_providers setting to disable all default providers. Note that CRUSH_DISABLE_DEFAULT_PROVIDERS=1 has been around for a bit and will also work.
See you on the internet! 🌐
Changelog
New!
- 163abdc: feat: add
disable_default_providersoption (#1675) (@jonhoo) - 617f9e2: feat: allow to send the prompt if its empty but has text attachments (#1806) (@caarlos0)
- 467418d: feat: open editor in the right position (#1804) (@caarlos0)
Fixed
- df6f514: fix(sqlite): busy timeout (#1815) (@caarlos0)
- 2350f7e: fix: make sure to unlock in goroutine (#1820) (@caarlos0)
Docs
- a4f5d72: docs(README): add FreeBSD installation instructions (@meowgorithm)
Other stuff
- 6f0f519: Fix shutdown (#1833) (@kujtimiihoxha)
- b2252f8: chore: auto-update files (@charmcli)
- a447f55: perf(config): simplify loadFromConfigPaths (#1821) (@caarlos0)
- e4400ad: perf(shell): reduce allocations in updateShellFromRunner (#1817) (@caarlos0)
- b884767: perf: fix possibly unclosed resp.body (#1818) (@caarlos0)
- 6f646c9: perf: improve startup and shutdown speed (#1829) (@caarlos0)
- d1382bb: perf: reduce memory usage (#1812) (@caarlos0)
- 0868681: perf: use strings.Builder for string concatenation in loops (#1819) (@caarlos0)
Verifying the artifacts
First, download the checksums.txt file and the checksums.txt.sigstore.json file files, for example, with wget:
wget 'https://github.com/charmbracelet/crush/releases/download/v0.32.0/checksums.txt'
wget 'https://github.com/charmbracelet/crush/releases/download/v0.32.0/checksums.txt.sigstore.json'Then, verify it using cosign:
cosign verify-blob \
--certificate-identity 'https://github.com/charmbracelet/meta/.github/workflows/goreleaser.yml@refs/heads/main' \
--certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
--bundle 'checksums.txt.sigstore.json' \
./checksums.txtIf the output is Verified OK, you can safely use it to verify the checksums of other artifacts you downloaded from the release using sha256sum:
sha256sum --ignore-missing -c checksums.txtDone! You artifacts are now verified!
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.