instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ChainSafe__gossamer__3160 | ChainSafe/gossamer | 3,160 | defect | abe360176767ca7ba9e6410fad81636430cf23b1 | fa550ab5fd02eb874578bd2aaafd6ad55b65244a | feat(runtime/wasmer): create wrapper around wasmer.Memory | ## Changes
<!-- Brief list of functional changes -->
- Create wrapper around wasmer.Memory type for new version of wasmer
- Created a new folder in runtime `newWasmer` to build out using newest wasmer version. Code does not compile when both versions are used in the same module so I thought this was a good way to ... | diff --git a/go.mod b/go.mod
index 1e84cfcd19f..41c73715771 100644
--- a/go.mod
+++ b/go.mod
@@ -38,6 +38,7 @@ require (
github.com/stretchr/testify v1.8.2
github.com/urfave/cli v1.22.12
github.com/wasmerio/go-ext-wasm v0.3.2-0.20200326095750-0a32be6068ec
+ github.com/wasmerio/wasmer-go v1.0.4
github.com/whyrus... | 8 | 6 | 1 | [{"id": "G0", "claim": "The wrapper does not need a new `newWasmer` package and could be placed in the existing `runtime/wasmer` package instead.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Casting wasmer's platform-sized `uint` `DataSize()` straight ... | null |
ChainSafe__gossamer__3254 | ChainSafe/gossamer | 3,254 | defect | 0fa866204b7dbf39e097def498b8d64221a638d8 | 8c86226dee73a4774000334c2f5d510cbf5f807d | feat(lib/runtime): add extra required runtime imports for parachain validation | This PR adds following import calls:
- ext_default_child_storage_clear_prefix_version_2
- ext_default_child_storage_root_version_2
- ext_offchain_index_clear_version_1
## Changes
<!-- Brief list of functional changes -->
## Tests
<!-- Detail how to run relevant tests to the changes -->
```sh
go test ... | diff --git a/lib/runtime/interfaces.go b/lib/runtime/interfaces.go
index 996b59946f..e0a3fcf12c 100644
--- a/lib/runtime/interfaces.go
+++ b/lib/runtime/interfaces.go
@@ -24,6 +24,7 @@ type Storage interface {
ClearChildStorage(keyToChild, key []byte) error
NextKey([]byte) []byte
ClearPrefixInChild(keyToChild, pr... | 2 | 2 | 2 | [{"id": "G0", "claim": "Add a test covering the case where the clear_prefix v2 limit is not 0.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The clear_prefix v2 host function should return a pointer-size to an encoded KillStorageResult (variant AllRemo... | null |
ChainSafe__gossamer__3316 | ChainSafe/gossamer | 3,316 | defect | 1a34972b4cdfd49174bac566b3b26061fc23113f | cd96dafbfe7f0053f3a9021a033b7794266a93ac | feat(parachain): Add StatementDistributionMessage varingDataType | ## Changes
<!-- Brief list of functional changes -->
## Tests
<!-- Detail how to run relevant tests to the changes -->
```sh
go test -tags integration github.com/ChainSafe/gossamer
```
## Issues
<!-- Write the issue number(s), for example: #123 -->
Fixes #3289
## Primary Reviewer
<!-- Tag a ... | diff --git a/parachain/statement.go b/parachain/statement.go
new file mode 100644
index 0000000000..d0ceb7cae8
--- /dev/null
+++ b/parachain/statement.go
@@ -0,0 +1,130 @@
+package parachain
+
+import (
+ "fmt"
+
+ "github.com/ChainSafe/gossamer/lib/common"
+ "github.com/ChainSafe/gossamer/lib/crypto/sr25519"
+ "github... | 7 | 6 | 0 | [{"id": "G0", "claim": "The empty suggestion block on the new statement_distribution_message.go asks to delete the leftover `PhantomData` struct left in the file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out `RealPayload` fie... | null |
ChainSafe__gossamer__3365 | ChainSafe/gossamer | 3,365 | defect | d1037b4362489f9130665e8213fe6d7e72ddb49d | 9dcca9aef8973b22244d0234bb95381bac1b829b | feat(lib/parachain): Implement request and response message for /req_pov/1 protocol | ## Changes
- Added `PoVFetchingRequest` and `PoVFetchingResponse` types.
- implemented '[network.Message](https://github.com/ChainSafe/gossamer/blob/457fe39f7a12cb9eb04de5b6a315d38825247d68/dot/network/message.go#L30)' interface in `PoVFetchingRequest` and '[network.ResponseMessage](https://github.com/ChainSafe/gos... | diff --git a/lib/parachain/collation_fetching.go b/lib/parachain/collation_fetching.go
index 44270456a2..a9a4ceb811 100644
--- a/lib/parachain/collation_fetching.go
+++ b/lib/parachain/collation_fetching.go
@@ -31,10 +31,6 @@ type Collation struct {
PoV PoV `scale:"2"`
}
-// PoV represent... | 2 | 2 | 0 | [{"id": "G0", "claim": "PoVFetchingRequest.Encode should use a value receiver and pass p (not *p) to scale.Marshal, per the suggested block.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Go PoV type added here is a bare []byte, whereas in Rust it is... | null |
ChainSafe__gossamer__3392 | ChainSafe/gossamer | 3,392 | defect | d35b128674ca80340e22c7751000036ebae1a3a9 | c2bdb931aea7cb072176383f648e1efe7e1de8a9 | feat(dot/sync): include block origin and skip extra validation on `initialSync` | ## Changes
- Include block origin and skip extra validation on `initialSync`
- [x] Blocked by https://github.com/ChainSafe/gossamer/pull/3227
## Tests
<!-- Detail how to run relevant tests to the changes -->
```sh
go test -tags integration github.com/ChainSafe/gossamer
```
## Issues
- Related https... | diff --git a/chain/westend/defaults.go b/chain/westend/defaults.go
index f6dcb2bfe5..7acb624f14 100644
--- a/chain/westend/defaults.go
+++ b/chain/westend/defaults.go
@@ -13,7 +13,8 @@ var (
// defaultID Default chain ID
defaultID = "westend2"
// defaultBasePath Default node base directory path
- defaultBasePath ... | 10 | 3 | 1 | [{"id": "G0", "claim": "The pull request ships a machine-specific debugging path as the westend defaultBasePath instead of restoring '~/.gossamer/westend'.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request leaves debugging defaults in ... | null |
ChainSafe__gossamer__3494 | ChainSafe/gossamer | 3,494 | defect | 8aed52e941d74268b89bc25d81a93d4671d1cb18 | d13278eaaf2079890fc17f3727525263a8217c39 | fix(lib/runtime): prevents polkadot zero-address bug using `sr25519_verify` version 1 | ## Changes
- Gossamer was failing with `Transaction has a bad signature` since `go-schnorrkel` fails when the public key is all zeroes. A fix was introduced in the runtime to avoid these kinds of public keys to sign extrinsic but the fix is on a later block. To circumvent this problem Gossamer checks the public key ... | diff --git a/.gitattributes b/.gitattributes
index 0c10a94057..a2d9592b51 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,4 +1,4 @@
*.go -text diff=golang
lib/runtime/test_data/kusama/ filter=lfs diff=lfs merge=lfs -text
-lib/runtime/test_data/polkadot/ filter=lfs diff=lfs merge=lfs -text
+lib/runtime/test_d... | 1 | 1 | 0 | [{"id": "G0", "claim": "The IDE should be configured to trim trailing whitespace and add a newline at the end of each file for consistency (the .gitattributes line was added without a final newline).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
ChainSafe__gossamer__3560 | ChainSafe/gossamer | 3,560 | defect | 4fb70f3ebee6721fa00745edd7ef0dc912bd8cf9 | 62e65fe2694a6eb6a6c09c7229ac72ce4dfd6006 | feat(parachain/availabilitystore): implement database store/retrieve | ## Changes
Implement functionality to store and retrieve Availability Data, Candidate Meta Data, and Erasure Chunk Data.
<!-- Brief list of functional changes -->
## Tests
<!-- Detail how to run relevant tests to the changes -->
```sh
go test github.com/ChainSafe/gossamer/dot/parachain/availability-store
`... | diff --git a/dot/mock_node_builder_test.go b/dot/mock_node_builder_test.go
index 2a1b2a54809..452dd51af66 100644
--- a/dot/mock_node_builder_test.go
+++ b/dot/mock_node_builder_test.go
@@ -18,7 +18,6 @@ import (
system "github.com/ChainSafe/gossamer/dot/system"
types "github.com/ChainSafe/gossamer/dot/types"
babe... | 16 | 15 | 2 | [{"id": "G0", "claim": "Add comments to all the struct definitions in messages.go so the code is easier to understand when revisited.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In handleStoreChunk the error branch should send the error and ret... | null |
ChainSafe__gossamer__3600 | ChainSafe/gossamer | 3,600 | defect | fedb9108907df03937206a9078e7873e1b2f23df | 7ee9ab9bfbc1b7047855c99501cfe2f50aa8e0f1 | feat(dot/parachain/backing): handle CanSecond incoming overseer message | ## Changes
Implemented functionality to check whether it's allowed to second a given candidate.
Reference code in polkadot-sdk: https://github.com/paritytech/polkadot-sdk/blob/769bdd3ff33a291cbc70a800a3830638467e42a2/polkadot/node/core/backing/src/lib.rs#L756-L757
## Tests
<!-- Detail how to run relevant test... | diff --git a/dot/parachain/availability-store/availability_store.go b/dot/parachain/availability-store/availability_store.go
index d19e31f230..ca8ee40774 100644
--- a/dot/parachain/availability-store/availability_store.go
+++ b/dot/parachain/availability-store/availability_store.go
@@ -169,9 +169,8 @@ func uint32ToByte... | 13 | 13 | 4 | [{"id": "G0", "claim": "Because these maps hold pointer values, every read needs a nil check - the instance at candidate_backing.go line 323 has none, and this should be handled everywhere.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "An empty mem... | null |
ChainSafe__gossamer__3627 | ChainSafe/gossamer | 3,627 | defect | 7ebf37aeb21adb69b3e3b8ffdda33e4b22554ca2 | 2ae6607ef5b7df38204431ec54aed2479ad1c165 | fix(dot/state): store raw authority keys and decode when verifying block signature | ## Changes
- Gossamer should not parse the authority raw key bytes into sr25519 public keys as soon as it receives a `next epoch` babe consensus digest.
- The authorities' raw keys will be stored as raw bytes and only decoded to public keys when verifying some block signature, and in such cases if the key cannot be... | diff --git a/dot/state/epoch.go b/dot/state/epoch.go
index c318c3874e..ad719d1d2f 100644
--- a/dot/state/epoch.go
+++ b/dot/state/epoch.go
@@ -95,15 +95,12 @@ func NewEpochStateFromGenesis(db database.Database, blockState *BlockState,
nextConfigData: make(nextEpochMap[types.NextConfigDataV1]),
}
- auths, err := ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The exported comment on GetEpochDataRaw should read 'returns the raw epoch data for a given epoch' rather than 'returns the epoch data raw for a given epoch'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer feel... | null |
ChainSafe__gossamer__3633 | ChainSafe/gossamer | 3,633 | defect | ed210fda4b3a65d997630a99ca606487a7eadd19 | 1bcd8f6138cd4f3e9dde95267d5294e8a43e3fd1 | chore: break HandleConn test to batch of smaller more readable and maintainable | ## Changes
<!-- Brief list of functional changes -->
`TestWSConn_HandleConn` was pretty big and cumbersome test with a lot of cross dependencies where it is not needed.
Was basically broken down to the batch of smaller one
## Tests
<!-- Detail how to run relevant tests to the changes -->
```sh
go test -ta... | diff --git a/dot/rpc/subscription/websocket.go b/dot/rpc/subscription/websocket.go
index 829514f0e9..a38b0b8bf4 100644
--- a/dot/rpc/subscription/websocket.go
+++ b/dot/rpc/subscription/websocket.go
@@ -36,6 +36,8 @@ var (
errUnexpectedParamLen = errors.New("unexpected params length")
errCannotReadFromWebsocke... | 8 | 7 | 2 | [{"id": "G0", "claim": "The test-case struct field readErr is declared but never used.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test code looks congested and should leave blank lines between things.", "category": "maintainability", "ve... | null |
ChainSafe__gossamer__3714 | ChainSafe/gossamer | 3,714 | defect | 51d57aece594d3c3b544b4fe80728d49d24eff9d | 297003cfd346936c88bedb68a14bd6305fbb0009 | feat(tests/scripts): create script to retrieve trie state via rpc | ## Changes
<!-- Brief list of functional changes -->
- Created a script to query a running node via rpc to retrieve the trie state at a given block and write it to a file
- I also added the ability to compute and verify the state root from the retrieved state
## Tests
<!-- Detail how to run relevant tests to... | diff --git a/tests/scripts/trieStateScript.go b/tests/scripts/trieStateScript.go
new file mode 100644
index 00000000000..94098ace635
--- /dev/null
+++ b/tests/scripts/trieStateScript.go
@@ -0,0 +1,102 @@
+// Copyright 2023 ChainSafe Systems (ON)
+// SPDX-License-Identifier: LGPL-3.0-only
+
+package main
+
+import (
+ "... | 12 | 11 | 3 | [{"id": "G0", "claim": "The script should check whether len(os.Args) is less than 2 and show an error instead of reading os.Args[1] unguarded.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The expected state root should be received from the CLI as ... | null |
ChainSafe__gossamer__3731 | ChainSafe/gossamer | 3,731 | defect | cca49098cee8c9f1f265e60bdf7baba5aef47d4c | cb9c5735d385da3d605c50bc9220902098302dfb | feat(dot/parachain/backing): handle validated candidate command | ## Changes
<!-- Brief list of functional changes -->
There are three commands to handle
- [x] validated candidate command - second
- [x] validated candidate command - attest
- [x] validated candidate command - attestNoPov
## Tests
<!-- Detail how to run relevant tests to the changes -->
```sh
go test... | diff --git a/dot/parachain/backing/can_second.go b/dot/parachain/backing/can_second.go
index 8902b92fcc..6dc2386804 100644
--- a/dot/parachain/backing/can_second.go
+++ b/dot/parachain/backing/can_second.go
@@ -17,7 +17,6 @@ var (
errProspectiveParachainsModeDisabled = errors.New("async backing is disabled")
errCan... | 9 | 8 | 1 | [{"id": "G0", "claim": "The comment on StatementDistributionMessageShare should read \"It is a signed statement in the context of\" instead of \"We have originated a signed statement in the context of\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
ChainSafe__gossamer__3879 | ChainSafe/gossamer | 3,879 | defect | f9eee289df86c8366fd1f122937959fdede8313f | 90262e3013b0c585f82027c3a11210bfd9ff95db | feat(lib/runtime/wazero): implement compiler cache | ## Changes
<!-- Brief list of functional changes -->
Use compilation caching provided by wazero to increase sync speeds
Speedup data compared to non cache solution:
| | |
|-----| ------|
| CACHED | ⛓️ synced 7681 blocks, took: 145.12 seconds, bps: 52.93 blocks/second |
| NON CACHED | ⛓️ synced 7681 block... | diff --git a/chain/paseo/chain-spec-raw.json b/chain/paseo/chain-spec-raw.json
index b1182b3fd4..fb264b982b 100644
--- a/chain/paseo/chain-spec-raw.json
+++ b/chain/paseo/chain-spec-raw.json
@@ -6,7 +6,19 @@
"/dns/paseo.bootnode.amforc.com/tcp/30333/wss/p2p/12D3KooWFD81HC9memUwuGMLvhDDEfmXjn6jC4n7zyNs3vToXapS",
... | 11 | 8 | 2 | [{"id": "G0", "claim": "Add (basic) metrics so the sync speed improvement gained from the compilation cache can be measured.", "category": "performance", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The error path in handleCodeSubstitution should not log the cache-cleaning er... | null |
ChainSafe__gossamer__3882 | ChainSafe/gossamer | 3,882 | defect | 2389154af510f6fb211b9300784a82c8b3185565 | 0cdde64b8d8310d4ea71c3cb22ab3da63760a7c0 | feat(lib/babe): updating epoch data after skipped epochs | ## Changes
- After identifying that some epochs were skipped we should update our mapping/storage to use the correct epoch data every time
## Tests
<!-- Detail how to run relevant tests to the changes -->
```sh
go test -timeout 10m -run ^TestVerificationManager_VerifyBlock_MultipleEpochs$ github.com/ChainS... | diff --git a/dot/state/epoch.go b/dot/state/epoch.go
index 11699bfab1..38fde40931 100644
--- a/dot/state/epoch.go
+++ b/dot/state/epoch.go
@@ -56,7 +56,7 @@ type GenesisEpochDescriptor struct {
// EpochState tracks information related to each epoch
type EpochState struct {
- db GetPutter
+ db Ge... | 5 | 4 | 2 | [{"id": "G0", "claim": "Deleting the old epoch key and inserting the new one in separate database operations could leave the node without epoch data if it panics in between, so the delete and put should be atomic (a Batch) or the previous epoch data should not be deleted.", "category": "correctness", "verdict": "suppor... | null |
ChainSafe__gossamer__3895 | ChainSafe/gossamer | 3,895 | defect | 0e6d32bb7a4cb6788a9e7ee9ca37e5fd17cdfe5a | 8abb93656b6622e07214a988f7c749aec3150f8d | feat(pkg/trie): Add TrieCache for trie values and nodes | ## Changes
<!-- Brief list of functional changes -->
This PR introduces a `TrieCache` an LRU cache to reduce latency during trie lookups.
This implementation represents the simplest form of cache. In the future, we could consider a more complex one like parity does using different caches for different purposes... | diff --git a/go.mod b/go.mod
index 05300b655c..7c4fa325cc 100644
--- a/go.mod
+++ b/go.mod
@@ -24,6 +24,7 @@ require (
github.com/ipfs/go-ds-badger2 v0.1.3
github.com/jpillora/backoff v1.0.0
github.com/jpillora/ipfilter v1.2.9
+ github.com/karlseguin/ccache/v3 v3.0.5
github.com/klauspost/compress v1.17.8
gith... | 8 | 5 | 1 | [{"id": "G0", "claim": "The `// TODO: use common.Hash` comment left on HashedValue is still a todo that should be dealt with.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `// Internal methods` comment added in triedb.go is not needed and s... | null |
ChainSafe__gossamer__3904 | ChainSafe/gossamer | 3,904 | defect | fb7d7de108d52ad31e58039bfb6727837b593610 | f8ddc007c496d5e1e97dffd796da337bc90e2eb5 | feat(dot/parachain/backing): Implement a function to get PoV from validator | ## Changes
I have implemented a function to fetch a proof of validity (PoV) from the validator.
When we receive a `Valid` statement for a para candidate block from other parachain validators,
we validate that candidate block, and for that, we need proof of validity, which we try to fetch from other parachain vali... | diff --git a/dot/parachain/backing/candidate_backing.go b/dot/parachain/backing/candidate_backing.go
index 7749957aad..85348a75ae 100644
--- a/dot/parachain/backing/candidate_backing.go
+++ b/dot/parachain/backing/candidate_backing.go
@@ -353,9 +353,3 @@ func (cb *CandidateBacking) handleStatementMessage(
attesting,... | 2 | 2 | 1 | [{"id": "G0", "claim": "Let's add a timeout to the channel receive in getPovFromValidator: if no response arrives within the required time, return an error instead of blocking the program forever waiting on the channel.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"... | null |
ChainSafe__gossamer__3922 | ChainSafe/gossamer | 3,922 | defect | 3fd6ed7cbdc3b7996e64e4dfe7561aa6305419d5 | 5379da37b7d4dc9a33d8b399400de7b2edbdbce7 | feat(dot/core): handling skipped epoch while verifying/importing block | ## Changes
- Adding a new capabilities of identifying when an skipped epoch happens, if so use the correct epoch descriptor to validate block
- Introduce the epoch skipped check while `HandleBlockImport`
- Fixes the `nextEpochMap`, the in-memory map that holds a mapping `epoch -> hashes -> epoch data`, to correctl... | diff --git a/dot/core/interfaces.go b/dot/core/interfaces.go
index b485cc9c38..b0df31a89d 100644
--- a/dot/core/interfaces.go
+++ b/dot/core/interfaces.go
@@ -25,9 +25,11 @@ type BlockImportDigestHandler interface {
// BlockState interface for block state methods
type BlockState interface {
+ GenesisHash() common.H... | 3 | 2 | 0 | [{"id": "G0", "claim": "The new EpochState methods GetSkippedEpochDataRaw and GetSkippedConfigData should be renamed (e.g. UpdateSkippedEpochDataRaw / UpdateSkippedConfigData) because they update stored state and their returned values are ignored at the HandleBlockImport call site, which is confusing.", "category": "de... | null |
ChainSafe__gossamer__3996 | ChainSafe/gossamer | 3,996 | defect | ff28c9f58dbb021f79e7c9d00c117dddfb9fd026 | 88dbe83e09fd0329e7d3bca871aef12ed1ee6483 | feat(dot/parachain/backing): implement statement table method to drain missbehaviours | ## Description
- The statement table stores statements about candidates(parachain blocks) issued by authorities(parachain validators)
- to call methods of statement table, we have an interface with a few methods, Which I am implementing one by one.
- to know more about the statement table, read the description of is... | diff --git a/dot/parachain/backing/active_leaves_update.go b/dot/parachain/backing/active_leaves_update.go
index 281d22c493..429f1e5b40 100644
--- a/dot/parachain/backing/active_leaves_update.go
+++ b/dot/parachain/backing/active_leaves_update.go
@@ -360,7 +360,7 @@ func constructPerRelayParentState(
}
}
- table... | 1 | 1 | 0 | [{"id": "G0", "claim": "A doc comment should be added for the un-exported drainMisbehaviors function, even a basic one.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ChainSafe__gossamer__4073 | ChainSafe/gossamer | 4,073 | defect | b30458f25c06c617d59327737259d068326cc796 | 1bb4eda61a88847e736d69b06f538a67c741fc87 | feat(pkg/trie): Implement `TrieIterator` for `InMemoryTrie` | ## Changes
- Changes the `TrieIterator` interface, defining just the methods implemented by a iterator
- Changes the `TrieRead` interface, now it has the methods `Entries(), NextKey(), GetKeysWithPrefix` and I've added two more: `Iter(), PrefixedIter(prefix)`
- The PR aims to reduce the dependency of `t.sortedKeys... | diff --git a/lib/runtime/storage/trie.go b/lib/runtime/storage/trie.go
index bfec865029..1bf10f80b9 100644
--- a/lib/runtime/storage/trie.go
+++ b/lib/runtime/storage/trie.go
@@ -7,6 +7,7 @@ import (
"bytes"
"container/list"
"encoding/binary"
+ "errors"
"fmt"
"sort"
"strings"
@@ -212,30 +213,32 @@ func (t *... | 3 | 1 | 0 | [{"id": "G0", "claim": "The predicate-based NextKeyFunc places filtering responsibility in the iterator instead of the caller, and if the logic is kept it should be renamed to NextKeyWithFilter.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If NextKeyFunc... | null |
ChainSafe__gossamer__4076 | ChainSafe/gossamer | 4,076 | defect | b1ecbf3c51ecd0dc0765300c13f4361334f1e04f | 3931938c96f634676f019d91a1a56c613f678705 | feat(lib/runtime/storage): Remove `sortedKeys` from `lib/runtime/storage` | ## Changes
- Remove the usage of `sortedKeys` from `lib/runtime/storage` and use the state if needed
## Tests
<!-- Detail how to run relevant tests to the changes -->
N/A
## Issues
- Depends on https://github.com/ChainSafe/gossamer/pull/4073
- Closes https://github.com/ChainSafe/gossamer/issues/4075 | diff --git a/lib/runtime/storage/trie.go b/lib/runtime/storage/trie.go
index 1bf10f80b9..074c6dba7d 100644
--- a/lib/runtime/storage/trie.go
+++ b/lib/runtime/storage/trie.go
@@ -10,7 +10,6 @@ import (
"errors"
"fmt"
"sort"
- "strings"
"sync"
"github.com/ChainSafe/gossamer/lib/common"
@@ -24,21 +23,17 @@ im... | 1 | 1 | 0 | [{"id": "G0", "claim": "The receiver should not have been renamed from `t` to `i` in `InMemoryTrieIterator`'s methods.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
ChainSafe__gossamer__4104 | ChainSafe/gossamer | 4,104 | defect | 4235bd9d43e80e0a124eca8d84ec5659ded597f4 | 857ca40268cafe068196950a5819bb7dace83fac | test(dot/parachain/backing): we can second a valid candidate when the previous candidate has been found invalid | ## Changes
- The new integration test is in the `dot/parachain/backing/integration_test.go` file
- Exported some fields of the `CandidateBacking` struct because I wanted to mock them
- modified the logic of `processMessages()` method of `MockableOverseer` struct
## We have tested
When we get a message to second ... | diff --git a/dot/parachain/availability-store/messages.go b/dot/parachain/availability-store/messages.go
index 9d528fa15f..004599e405 100644
--- a/dot/parachain/availability-store/messages.go
+++ b/dot/parachain/availability-store/messages.go
@@ -92,8 +92,8 @@ type StoreAvailableData struct {
// AvailableData is the... | 4 | 2 | 0 | [{"id": "G0", "claim": "The mockable overseer could not be used properly, so its processMessages loop is commented out and the test mocks overseer and subsystem actions with goroutines instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "AllAllowedRel... | null |
ChainSafe__gossamer__4105 | ChainSafe/gossamer | 4,105 | defect | 204fbf93da289c634cd19f6e3f1499f8ba2ee146 | 0ce3204aa9aa84eec397e73f27cdf3cfae086b88 | fix(dot/epoch): Resume node with correct previous `next epoch data` and `config data` | ## Changes
Explained better [here](https://github.com/ChainSafe/gossamer/issues/3886) , we are storing nextEpochData and nextConfigData in disk, so when cases that the information is not in memory gossamer does not enter in a error loop trying to retrieve them.
## Tests
<!-- Detail how to run relevant tests ... | diff --git a/dot/state/epoch.go b/dot/state/epoch.go
index 3b72244bb9f..e21cec009ab 100644
--- a/dot/state/epoch.go
+++ b/dot/state/epoch.go
@@ -8,6 +8,8 @@ import (
"encoding/binary"
"errors"
"fmt"
+ "strconv"
+ "strings"
"sync"
"time"
@@ -28,11 +30,13 @@ var (
)
var (
- epochPrefix = "epoch"
- cu... | 10 | 9 | 1 | [{"id": "G0", "claim": "Rename the local variable holding the formatted key to `partialKey`, since the full key also contains the nextEpochDataPrefix.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "EpochState's db field should use the existing d... | null |
ChainSafe__gossamer__4169 | ChainSafe/gossamer | 4,169 | defect | cd5a2bfea9dc97ceec4e02aaf96bc4ef313e1974 | 44e601dab91e2dbdb1c87d72f802803e10d5fd7a | statement distribution skeleton | ## Changes
<!-- Brief list of functional changes -->
## Tests
<!-- Detail how to run relevant tests to the changes -->
```sh
go test -tags integration github.com/ChainSafe/gossamer
```
## Issues
#3583
<!-- Write the issue number(s), for example: #123 --> | diff --git a/dot/parachain/backing/candidate_backing_test.go b/dot/parachain/backing/candidate_backing_test.go
index f2bbcb7ee7..6ec6935493 100644
--- a/dot/parachain/backing/candidate_backing_test.go
+++ b/dot/parachain/backing/candidate_backing_test.go
@@ -11,6 +11,7 @@ import (
availabilitystore "github.com/ChainS... | 2 | 2 | 1 | [{"id": "G0", "claim": "StatementDistribution.Run should be rewritten like the other subsystems, using select to receive from both the overseerToSubSystem and ctx.Done() channels.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The import alias in candida... | null |
ChainSafe__gossamer__4223 | ChainSafe/gossamer | 4,223 | defect | 4cc9ce00a1830ed1df03329f65322edea68dc271 | 7f80875865c3ad83d4b8b1ee2736d6d9f9e00ec5 | feat(dot/parachain): implement candidate validation pre-check | ## Changes
Implement code for candidate validation pre-check subsystem.
- `precheckPvF` function for determining if the validation code in valid:
- Retrieves the validation code from the relay parent's runtime instance.
- Determines executor parameters for pre-check.
- Determines timeout durations
- cal... | diff --git a/dot/parachain/availability-store/mock_runtime_instance_test.go b/dot/parachain/availability-store/mock_runtime_instance_test.go
index a7af9a3bbc..225f038674 100644
--- a/dot/parachain/availability-store/mock_runtime_instance_test.go
+++ b/dot/parachain/availability-store/mock_runtime_instance_test.go
@@ -1... | 10 | 8 | 0 | [{"id": "G0", "claim": "The constant name `MoxCodeSize` is a typo and should be `MaxCodeSize`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment should explain why there is nothing to do in the `else` case of `handlePrecheckPvF`.", "categor... | null |
ChainSafe__gossamer__4274 | ChainSafe/gossamer | 4,274 | defect | b6f4df4c05f5ffe1f2d802d2c2e130e5e3fcbec8 | 92c4507e8b34b941713b58e78bf910c0608aff1b | chore(dot/sync): add `Fragment` struct for chain of blocks | ## Changes
- Adds a specialized struct to accommodate fragment of blocks acquired through sync process instead of using the raw `[][]*types.BlockData`
- The changes don't change the current full sync behavior
## Tests
<!-- Detail how to run relevant tests to the changes -->
- N/A
## Issues
- Closes htt... | diff --git a/dot/sync/fullsync.go b/dot/sync/fullsync.go
index 79db8b4a29..b2a6fcfc43 100644
--- a/dot/sync/fullsync.go
+++ b/dot/sync/fullsync.go
@@ -15,6 +15,7 @@ import (
"github.com/ChainSafe/gossamer/dot/peerset"
"github.com/ChainSafe/gossamer/dot/types"
"github.com/ChainSafe/gossamer/internal/database"
+ "g... | 5 | 5 | 1 | [{"id": "G0", "claim": "The renamed method should keep the plural name updateDisjointFragments, or alternatively the doc comment should be updated to match the singular name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "LowerThanOrEqHighestFin... | null |
ChainSafe__gossamer__4350 | ChainSafe/gossamer | 4,350 | defect | 0d3e962bcdffcb54ead9c1ddf79fec3bab8c0429 | a4e8f34db7e4af606aaf970982a9f266f084ce82 | feat(prospective-parachains): Implement `HandleIntroduceSecondedCandidate` | ## Changes
This PR introduces the `HandleIntroduceSecondedCandidate` func to `prospectiveparachains` package.
Notes:
currently there's no implementation for ImplicitView, reference is:
[polkadot-sdk reference](https://github.com/paritytech/polkadot-sdk/blob/028e61be43f05f6f6c88c5cca94160f8db075585/polkadot/node... | diff --git a/dot/parachain/prospective-parachains/fragment-chain/errors.go b/dot/parachain/prospective-parachains/fragment-chain/errors.go
new file mode 100644
index 0000000000..95a0e33951
--- /dev/null
+++ b/dot/parachain/prospective-parachains/fragment-chain/errors.go
@@ -0,0 +1,82 @@
+package fragmentchain
+
+import... | 12 | 12 | 1 | [{"id": "G0", "claim": "HandleIntroduceSecondedCandidate should be a private method of ProspectiveParachains without the handle prefix (func (pp *ProspectiveParachains) introduceSecondedCandidate).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The trace... | null |
ChainSafe__gossamer__4548 | ChainSafe/gossamer | 4,548 | defect | 1299b217664c31f8911c9af9e0d425c2ea981ef6 | 23151169253031c637a8c521a832f9c1179de8bc | feat(internal/client): Client translation shim type | ## Changes
Introduce translation shim type that implements `BlockState` and `StorageState`
This is only the skeleton, the implementation will comes in future issues.
## Tests
<!-- Detail how to run relevant tests to the changes -->
```sh
make test
```
## Issues
Closes: #4460 | diff --git a/internal/client/client.go b/internal/client/client.go
index c42741062e4..cbb40e5d5e5 100644
--- a/internal/client/client.go
+++ b/internal/client/client.go
@@ -10,7 +10,9 @@ import (
"github.com/ChainSafe/gossamer/internal/client/api"
"github.com/ChainSafe/gossamer/internal/log"
+ "github.com/ChainSa... | 1 | 1 | 0 | [{"id": "G0", "claim": "A line should be added in a test file to test interface compliance of the new ClientAdapter type.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ChainSafe__gossamer__4598 | ChainSafe/gossamer | 4,598 | defect | 3f3a75a10a721b1ff1753803a42bfb9c9de88456 | 4fd164962b2b0260730d76de12b79a4a064bc79f | feat(parachain/availability-distribution): handle `ChunkFetchingRequest` | ## Changes
This PR implements handling of `ChunkFetchingRequest` network messages in the availability distribution subsystem.
The PR builds on #4591, which should be reviewed first.
## Tests
```sh
go test ./dot/parachain/availability-distribution
```
## Issues
#4487 | diff --git a/.golangci.yml b/.golangci.yml
index 22d7626b66d..a4e2a2434ad 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -1,7 +1,7 @@
# See https://golangci-lint.run/usage/configuration/#config-file
run:
- deadline: 10m
+ timeout: 10m
build-tags:
- integration
diff --git a/dot/network/request_respons... | 4 | 3 | 2 | [{"id": "G0", "claim": "The receive from query.Sender should consider both the chunk-not-found and the channel-closed cases (per the suggested `chunk, ok := <-query.Sender; if !ok || chunk.Chunk == nil {`), instead of only checking chunk.Chunk == nil.", "category": "correctness", "verdict": "supported", "priority": "P1... | null |
ChainSafe__gossamer__4640 | ChainSafe/gossamer | 4,640 | defect | 49de241c287cf3734bbc239142ac7319c8352edb | e717457fbb0df83a9379614bf5b0a186aa83a915 | feat(parachain/availability-distribution): handle AvailabilityDistributionMessageFetchPoV | ## Changes
This PR implements the handler for `AvailabilityDistributionMessageFetchPoV` in the availability distribution subsystem.
The PR builds on #4638 , which should be reviewed first.
## Tests
```sh
go test ./dot/parachain/availability-distribution
```
## Issues
#4489 | diff --git a/dot/parachain/availability-distribution/availability_distribution.go b/dot/parachain/availability-distribution/availability_distribution.go
index d25b37fca3..1819a926a0 100644
--- a/dot/parachain/availability-distribution/availability_distribution.go
+++ b/dot/parachain/availability-distribution/availabili... | 8 | 6 | 2 | [{"id": "G0", "claim": "The `defer close(msg.PovCh)` should be placed at the start of processAvailabilityDistributionMessageFetchPoV so that the earlier error returns also close the channel.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Waiting for... | null |
ChainSafe__gossamer__4670 | ChainSafe/gossamer | 4,670 | defect | fa951a308720e76e559ce2d34a03041c05d5fe03 | 0c1148c62d4e376b5a6e9d57ae09c0eb526e6901 | fix(parachain): use correct type for ErasureChunk.Proof | ## Changes
This PR changes the type of `availabilitystore.ErasureChunk.Proof` from `[]byte` to `[][]byte`.
Additionally it adds the function `erasure.BranchHash()` and uses it in the availability distribution subsystem to validate erasure chunks retrieved by `fetchChunkTask` objects.
## Tests
```sh
go test... | diff --git a/dot/parachain/availability-distribution/availability_distribution.go b/dot/parachain/availability-distribution/availability_distribution.go
index 11f5894d82..e551a4f67a 100644
--- a/dot/parachain/availability-distribution/availability_distribution.go
+++ b/dot/parachain/availability-distribution/availabili... | 1 | 1 | 0 | [{"id": "G0", "claim": "The errors silently swallowed in validateChunk (hashing the chunk and computing the branch hash) should be made explicit through logging instead of being shadowed, since they are useful for debugging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced... | null |
ChainSafe__gossamer__4720 | ChainSafe/gossamer | 4,720 | defect | e08aa2093f9818d2bcb216ba61a56f0fb29c39af | 7aa956493a17f87aeaefaf506e60736bfd72a0d7 | chore: define `v2::State` for statement-distribution | ## Changes
- Includes the `V2::State` implementation in the statement-distribution subsystem
- Re-inserts `ImplicitView` interface so unit tests are made easy
## Tests
<!-- Detail how to run relevant tests to the changes -->
```sh
go test -timeout 30s github.com/ChainSafe/gossamer/dot/parachain/statement-... | diff --git a/dot/parachain/network/protocol.go b/dot/parachain/network/protocol.go
new file mode 100644
index 0000000000..025cd2fd25
--- /dev/null
+++ b/dot/parachain/network/protocol.go
@@ -0,0 +1,9 @@
+package network
+
+type ValidationVersion byte
+
+const (
+ ValitionVersionV1 ValidationVersion = 1
+ ValitionVersio... | 9 | 7 | 0 | [{"id": "G0", "claim": "Reword the supplyTopology comment to avoid using the Rust concepts 'Some' and 'None' in Go comments.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the commented-out buildSessionTopology implementation stub left in s... | null |
ChainSafe__gossamer__4754 | ChainSafe/gossamer | 4,754 | defect | 3524ed509f906d83513112fb652ce9f495478c61 | da71025eb4572d24d3aff375198f1873ea82bf4e | chore(collator-protocol) create `validator-side` package | ## Changes
- Removes `collator-side.go`
- Creates `validator-side` pacakge under `parachain/collator-protocol/`
- Updates comments and todos to match updated issues
## Tests
<!-- Detail how to run relevant tests to the changes -->
N/A
## Issues
- Closes #4701 | diff --git a/dot/parachain/collator-protocol/collator_side.go b/dot/parachain/collator-protocol/collator_side.go
deleted file mode 100644
index 47e31527b9..0000000000
--- a/dot/parachain/collator-protocol/collator_side.go
+++ /dev/null
@@ -1,158 +0,0 @@
-// Copyright 2024 ChainSafe Systems (ON)
-// SPDX-License-Identif... | 1 | 1 | 0 | [{"id": "G0", "claim": "The TODO comment should say to use util.ReputationAggregator instead of saying the reputation aggregator still needs to be implemented.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
Chainlit__chainlit__1436 | Chainlit/chainlit | 1,436 | defect | 2ba2c59c241e1227a11a9b439dabba5806e049b5 | ef30091e23f78d1afe85da0d704d95a082a2b481 | [Add] Implement Slack Socket Mode support | ## Description
This PR introduces support for Slack Socket Mode, enabling real-time message processing using websockets. This feature enhances the Slack integration by allowing for more efficient and responsive communication, and a way to bypass ingress restrictive networks.
## Changes
- Added Slack Socket Mode handle... | diff --git a/backend/chainlit/server.py b/backend/chainlit/server.py
index 4893c8d03c..be3ee19ca6 100644
--- a/backend/chainlit/server.py
+++ b/backend/chainlit/server.py
@@ -132,6 +132,13 @@ async def watch_files_for_changes():
discord_task = asyncio.create_task(client.start(discord_bot_token))
+ slack... | 2 | 2 | 1 | [{"id": "G0", "claim": "The example script slack_websocket_test.py does not belong in the repository and should be removed, with equivalent content contributed to the Chainlit cookbook (and docs) instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
Chainlit__chainlit__1758 | Chainlit/chainlit | 1,758 | defect | f5b4a4507420237a01b91cdd4cd53c60572d7ccb | 572ee3bdab2103981e961f4d241043ca71934bb2 | Chunk long cookies | Splits the JWT token over multiple cookies if it's too big. Should resolve #1685. It's a bit hard to check, since my account doesn't have a large JWT token. @dokterbob | diff --git a/backend/chainlit/auth/__init__.py b/backend/chainlit/auth/__init__.py
index 232d37848c..7ab5211b0d 100644
--- a/backend/chainlit/auth/__init__.py
+++ b/backend/chainlit/auth/__init__.py
@@ -7,7 +7,7 @@
from chainlit.logger import logger
from chainlit.oauth_providers import get_configured_oauth_providers
... | 4 | 4 | 3 | [{"id": "G0", "claim": "The function should be renamed with a clearer signature, something like `get_token_from_cookies(cookies: dict[str, str]) -> Optional[str]`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When overwriting a long chunked to... | null |
Chainlit__chainlit__1953 | Chainlit/chainlit | 1,953 | defect | 072655d60915e89ca4f4e6c9be35b69928d9f668 | 190a6f89c528cfd4dda3aa231e0765e82e571f7d | feat: add cookie-based session affinity for Istio | Last year a change was made to remove `X-Chainlit-Session-id` header from websocket connections, causing kubernetes clusters using istio to lose the ability to maintain sticky sessions. Discussed here: https://github.com/Chainlit/chainlit/issues/1892
This PR adds new functionality to allow users to enable the additi... | diff --git a/backend/chainlit/config.py b/backend/chainlit/config.py
index d0bff02c0c..1fd3b3cb8e 100644
--- a/backend/chainlit/config.py
+++ b/backend/chainlit/config.py
@@ -291,6 +291,9 @@ class ProjectSettings(DataClassJsonMixin):
# Socket.io client transports option
transports: Optional[List[str]] = None
... | 3 | 3 | 1 | [{"id": "G0", "claim": "The feature should be enabled for everybody by default rather than gated behind the opt-in `enable_session_cookie` config option.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of relying on an extra websocket message to d... | null |
Chainlit__chainlit__2143 | Chainlit/chainlit | 2,143 | defect | 50cd1ea9347d957b5807bf7a6d592e2266ae2b74 | 89519ff02884d28af4f882be90410fa65c472226 | fix: Return GCS signed URL instead of direct URL | The Chainlit data layer stores files in Google Cloud Storage. However, an error occurs when a user attempts to access those files from a private GCS bucket.
The issue stems from the `sync_upload_file` method, which returns the direct public URL `f"https://storage.googleapis.com/{self.bucket.name}/{object_key}"`. A ... | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 34dc8ba17e..4bbdaae5ba 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,6 +1,6 @@
# Contribute to Chainlit
-To contribute to Chainlit, you first need to setup the project on your local machine.
+To contribute to Chainlit, you first need to set up the proje... | 3 | 1 | 0 | [{"id": "G0", "claim": "Signed URLs are supposed to be short-lived, which is why the object key is stored and URLs are signed on the fly (e.g., when getting a thread), so returning a signed URL from sync_upload_file conflicts with that design.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "in... | null |
Chainlit__chainlit__2401 | Chainlit/chainlit | 2,401 | defect | f421a6c7d094b4f682127f6f82f3204e8fb40095 | 181b929d248597da5ab3b66874d0d84b501c5f11 | feat: Add Dynamic Configuration to ChatProfiles | ## Changes:
- Audio.enabled and MCP.enabled now must be explicitly enabled. Before it was inferred if on_audio_chunk and on_mcp_connect existed. This enables selective enablement by ChatProfile now.
- Documentation Update PR: https://github.com/Chainlit/docs/pull/256
## ✅ Backend Implementation Complete
- Chainli... | diff --git a/backend/chainlit/__init__.py b/backend/chainlit/__init__.py
index cd0db88e4e..8eecf5ac1d 100644
--- a/backend/chainlit/__init__.py
+++ b/backend/chainlit/__init__.py
@@ -121,6 +121,7 @@ def acall(self):
"instrument_openai": "chainlit.openai",
"instrument_mistralai": "chainlit.mistralai",
... | 5 | 4 | 0 | [{"id": "G0", "claim": "The `config_overrides` field on ChatProfile is typed `Any`, which lacks type safety; use a more specific type like `Optional[\"ChainlitConfigOverrides\"]` for better type checking and IDE support.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ... | null |
Chainlit__chainlit__2456 | Chainlit/chainlit | 2,456 | defect | ffd4e9c07b83dcac691a0dfc31f70bd49057433e | ad167054d3675efdde66f5385e1262430be915ff | Add a second optional language parameter to set_starters | This changes adds an optional language parameter for set_starters callbacks, in addition to the currently optional User parameter.
This allows for programmatically localizing the label and prompts associated with the starters.
Includes a test to confirm the feature works as expected. | diff --git a/backend/chainlit/callbacks.py b/backend/chainlit/callbacks.py
index b35c4ef496..88c1c75cc5 100644
--- a/backend/chainlit/callbacks.py
+++ b/backend/chainlit/callbacks.py
@@ -1,5 +1,5 @@
import inspect
-from typing import Any, Awaitable, Callable, Dict, List, Optional, Union
+from typing import Any, Awaita... | 2 | 2 | 1 | [{"id": "G0", "claim": "The same optional language parameter should also be added to set_profile, in this PR or a separate one.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The second set_starters overload should declare the precise return type Calla... | null |
Chainlit__chainlit__2734 | Chainlit/chainlit | 2,734 | defect | f4bcb6990d4fc53116e8569be2aab5402ce0bafd | 0dfddb10debb904359e72712a1231e6e00d7ea54 | feat: Add Modes | Adds modes to the chat interface. It functions kinda like commands do.
Docs added here: https://github.com/Chainlit/docs/pull/274
<img width="1352" height="310" alt="image" src="https://github.com/user-attachments/assets/2ec80664-3302-42a3-a181-84ae18879e83" />
Users will need to add a new column `modes` to ... | diff --git a/backend/chainlit/__init__.py b/backend/chainlit/__init__.py
index a2cdf1d424..527f025afb 100644
--- a/backend/chainlit/__init__.py
+++ b/backend/chainlit/__init__.py
@@ -83,6 +83,7 @@
password_auth_callback,
send_window_message,
set_chat_profiles,
+ set_llms,
set_starters,
)
@@ -2... | 4 | 4 | 1 | [{"id": "G0", "claim": "The Cypress test named 'should not display picker when no LLMs are available' contradicts its implementation by asserting the picker does exist; rename it to match what it tests or remove/skip it until a fixture without LLMs exists.", "category": "testing", "verdict": "supported", "priority": "P... | null |
Chainlit__chainlit__2778 | Chainlit/chainlit | 2,778 | defect | 24e0a52c7fa1e75114a42ae776e8a3d630339754 | 5c4ea278bdb9988bb4ac8463b7844fc891b96cd1 | fix: preserve existing metadata when update_thread called without metadata parameter | ## Summary
Fixes #2283
Preserves existing thread metadata when `update_thread()` is called without explicitly passing a metadata parameter.
## Problem
When `update_thread()` was called without a metadata parameter (e.g., just updating the thread name), the existing metadata in the database was being overwritten with ... | diff --git a/backend/chainlit/data/chainlit_data_layer.py b/backend/chainlit/data/chainlit_data_layer.py
index d2fb2d9f62a..c2efd27193d 100644
--- a/backend/chainlit/data/chainlit_data_layer.py
+++ b/backend/chainlit/data/chainlit_data_layer.py
@@ -591,6 +591,7 @@ async def update_thread(
)
# Merge ... | 3 | 3 | 1 | [{"id": "G0", "claim": "The test's assertion uses `or`, so the test can pass even if the update query includes metadata (e.g. when params contain `{}`), defeating the intent of verifying metadata is excluded when None; use `and` to require both the query and the params exclude metadata.", "category": "testing", "verdic... | null |
Chainlit__chainlit__2805 | Chainlit/chainlit | 2,805 | defect | 529eae6ef8448db1a4f4dc6ab35c6679f79f918c | 324e7aa81c55b91de5467643e3f411d621390588 | fix: harden MCP exit stack cleanup to prevent cross-task cancel-scope errors | ## Summary
This change fixes intermittent MCP connection/disconnection failures that surfaced as:
- 400 responses during MCP lifecycle operations
- RuntimeError: Attempted to exit cancel scope in a different task
- orphaned cleanup failures after reconnect attempts
## Root cause
MCP AsyncExitStack cleanup was n... | diff --git a/backend/chainlit/server.py b/backend/chainlit/server.py
index f9393e5e3b9..c923f04905f 100644
--- a/backend/chainlit/server.py
+++ b/backend/chainlit/server.py
@@ -1307,7 +1307,7 @@ async def connect_mcp(
StdioMcpConnection,
validate_mcp_command,
)
- from chainlit.session import W... | 3 | 3 | 3 | [{"id": "G0", "claim": "exit_stack_stored is set to True before on_mcp_connect runs; if the callback raises, the finally block skips cleanup and the partially initialized session remains stored, leaking the exit stack/session.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
Chainlit__chainlit__2843 | Chainlit/chainlit | 2,843 | defect | 24e0a52c7fa1e75114a42ae776e8a3d630339754 | 7dac157899d135aefce864e6737c4cec1416f269 | fix: resolve base locale to regional translation file (e.g. "da" → "da-DK") | ## Summary
Fixes #2842
The `load_translation` fallback chain only searched for `{language}.json`
and `{parent_language}.json`, which are **identical** when the input is
already a base locale (e.g. `"da"`). This meant `da-DK.json` was never
discovered, and all Danish users silently received `en-US` translations... | diff --git a/backend/chainlit/config.py b/backend/chainlit/config.py
index 7421b1f3ca..48bd8de102 100644
--- a/backend/chainlit/config.py
+++ b/backend/chainlit/config.py
@@ -464,17 +464,12 @@ class ChainlitConfig(BaseSettings):
def load_translation(self, language: str):
translation = {}
default_... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add targeted backend regression tests for the translation fallback chain (exact match, parent fallback, regional fallback from a base locale, and default fallback) before merging.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Chainlit__chainlit__2849 | Chainlit/chainlit | 2,849 | defect | 3843e8a401ca93b182ef2fd637bed8bd735a834b | d96b48b8a236fdd064536aa236dc8515596ec3a0 | feat: pass chat_profile to set_starter_categories callback | ## Summary
- Forward the `chat_profile` query parameter to the `set_starter_categories` callback in the `/project/settings` endpoint, enabling profile-specific starter categories
- Add a third `@overload` signature and update the `CodeSettings` type annotation to accept the new parameter
- Fully backwards compatible... | diff --git a/backend/chainlit/callbacks.py b/backend/chainlit/callbacks.py
index eaad24e06e..0cdd209d3b 100644
--- a/backend/chainlit/callbacks.py
+++ b/backend/chainlit/callbacks.py
@@ -293,15 +293,27 @@ def set_starter_categories(
]: ...
+@overload
+def set_starter_categories(
+ func: Callable[
+ [Opti... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new test in test_callbacks.py only validates direct callback invocation and does not verify that /project/settings actually reads and forwards chat_profile to set_starter_categories, so endpoint-level coverage should be added.", "category": "testing", "verdict": "supported", "priority": "P1"... | null |
Chalarangelo__30-seconds-of-code__1020 | Chalarangelo/30-seconds-of-code | 1,020 | defect | 8b72c0b504c9faa995d231ad32266654a52126b3 | 2291cfe884e922a83157ca80e313bc12197130ab | Checking whether a number is Odd. | Using modulo function to determine whether the number is odd.
| diff --git a/snippets/isOdd.md b/snippets/isOdd.md
new file mode 100644
index 00000000000..9471eca719e
--- /dev/null
+++ b/snippets/isOdd.md
@@ -0,0 +1,17 @@
+---
+title: isOdd
+tags: math,beginner
+---
+
+Returns `true` if the given number is odd, `false` otherwise.
+
+Checks whether a number is odd or even using the ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request's new isOdd snippet ships without tests, and a couple of tests should be added before merging it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Chalarangelo__30-seconds-of-code__543 | Chalarangelo/30-seconds-of-code | 543 | defect | bdbc6db294cd721ae525f2077643ce27c5387306 | 3c69263268f988937ea7041b5441d29f373416fd | [FEATURE] Add randomIntArrayInRange | <!--- Provide a general summary of your changes in the Title above -->
<!--- Add the prefix [FIX: #(issue number)], [FEATURE] or [ENHANCEMENT] to the Title -->
## Description
<!--- Describe your changes in detail -->
## What does your PR belong to?
- [ ] Website
- [x] Snippets
- [ ] General / Things regardin... | diff --git a/snippets/randomIntWithLengthInRange.md b/snippets/randomIntWithLengthInRange.md
new file mode 100644
index 00000000000..50d986eb1f6
--- /dev/null
+++ b/snippets/randomIntWithLengthInRange.md
@@ -0,0 +1,23 @@
+### randomIntWithLengthInRange
+
+Returns a random integer in the specified range and length.
+
+U... | 7 | 7 | 3 | [{"id": "G0", "claim": "The snippet file should be updated to follow the structure set in place by `snippet-template.md`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The manually written `<details>` block should be removed from the snippet file... | null |
Chalarangelo__30-seconds-of-code__546 | Chalarangelo/30-seconds-of-code | 546 | defect | 5c75b328c15189b03fe9fddbfda58549e49fcaff | c62cf0eff3d54a72dcadab90d6402b2567c7be68 | [FEATURE] Added equals.md and tests | ## Description
Similar to lodash's `isEqual` but more in line with [deep-equal](https://www.npmjs.com/package/deep-equal) and Node's [`assert.deepEqual`](https://nodejs.org/api/assert.html#assert_assert_deepequal_actual_expected_message). Included are tests for the snippet.
<!--- Provide a link to the method your... | diff --git a/snippets/equals.md b/snippets/equals.md
new file mode 100644
index 00000000000..75be4aba9a4
--- /dev/null
+++ b/snippets/equals.md
@@ -0,0 +1,27 @@
+### equals
+
+Performs a deep comparison between two values to determine if they are equivalent.
+
+Check if the two values are identical, if they are both `D... | 1 | 1 | 1 | [{"id": "G0", "claim": "The snippet's non-object comparison uses non-strict `==`, so values differing only in type compare equal (e.g. `equals([1, 2, 3], [1, '2', 3])` and `equals({ a: 123 }, { a: '123' })` return true) when they should return false.", "category": "correctness", "verdict": "supported", "priority": "P1"... | null |
Chalarangelo__30-seconds-of-code__663 | Chalarangelo/30-seconds-of-code | 663 | defect | fd54ca530e0a587dae0c1dd16d71a572397426f1 | 78e3890e982358d965a21ecbd6fc2a860898d10e | [FIX: #658] Fixed problems with array values in deepClone snippet | ## Description
Would previously create an object with indices as keys. Now properly clones as array.
**Resolves** #658
## What does your PR belong to?
- [ ] Website
- [X] Snippets
- [ ] General / Things regarding the repository (like CI Integration)
- [ ] Tests
## Types of changes
- [X] Bug fix (non-br... | diff --git a/snippets/deepClone.md b/snippets/deepClone.md
index fe2af84eb81..7d9905c0a64 100644
--- a/snippets/deepClone.md
+++ b/snippets/deepClone.md
@@ -8,15 +8,25 @@ Use `Object.keys()` and `Array.forEach()` to determine which key-value pairs nee
```js
const deepClone = obj => {
- let clone = Object.assign({}... | 2 | 2 | 1 | [{"id": "G0", "claim": "The array handling is over-engineered and should have been a simple one-line change, replacing the return with `return Array.isArray(obj) ? (clone.length = obj.length) && Array.from(clone) : obj;` instead of restructuring the whole function.", "category": "design", "verdict": "supported", "prior... | null |
Chalarangelo__30-seconds-of-code__699 | Chalarangelo/30-seconds-of-code | 699 | defect | 1cffc77bd90ed0999c21fa30b3df460827b9cdcb | f634531b446f55f745df0bd0ccd2d64d8e8f37ff | Simplify indexOfAll | Simplify indexOfAll [ENHANCEMENT]
## Description
Use native method reduce instead of array looping.
## What does your PR belong to?
- [ ] Website
- [X] Snippets
- [ ] General / Things regarding the repository (like CI Integration)
- [ ] Tests
## Types of changes
- [ ] Bug fix (non-breaking change which f... | diff --git a/snippets/indexOfAll.md b/snippets/indexOfAll.md
index 4ab0f913b76..7686510c3d2 100644
--- a/snippets/indexOfAll.md
+++ b/snippets/indexOfAll.md
@@ -2,15 +2,11 @@
Returns all indices of `val` in an array. If `val` never occurs, returns `[]`.
-Use `Array.forEach()` to loop over elements and `Array.push(... | 1 | 1 | 1 | [{"id": "G0", "claim": "The snippet added to snippets/indexOfAll.md defines indexOfAll as a function returning a function, so calling it as documented does not return the array of indices.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Chalarangelo__30-seconds-of-code__709 | Chalarangelo/30-seconds-of-code | 709 | defect | 5de1fd5043cd896b65651fd2bcbcd008b588658d | 02327955926573f7d75cf13be9f5bb35bcff58c2 | Update symmetricDifference | No const
One time new Set()
One line code style
<!--- Provide a general summary of your changes in the Title above -->
<!--- Add the prefix [FIX: #(issue number)], [FEATURE] or [ENHANCEMENT] to the Title -->
## Description
<!--- Describe your changes in detail -->
**Resolves** #(issue number) <!--- Delete ... | diff --git a/snippets/symmetricDifference.md b/snippets/symmetricDifference.md
index 6f13806e4f2..1f76f8f2523 100644
--- a/snippets/symmetricDifference.md
+++ b/snippets/symmetricDifference.md
@@ -5,11 +5,9 @@ Returns the symmetric difference between two arrays.
Create a `Set` from each array, then use `Array.filter()... | 6 | 5 | 1 | [{"id": "G0", "claim": "The rewritten symmetricDifference no longer keeps duplicate values (changing the snippet's established behaviour) and offers no performance benefits, so this change should be a different snippet or the snippet should be kept as-is; this snippet should be changed so that it does not unique.", "ca... | null |
Chalarangelo__30-seconds-of-code__716 | Chalarangelo/30-seconds-of-code | 716 | defect | 0d3c02ad080b65bb127bc95f44e424179f9c58e9 | 262683a61a35f3e419bf66df7d5401fe146dddbc | [ENHANCEMENT] Simplified isArrayLike | <!--- Provide a general summary of your changes in the Title above -->
<!--- Add the prefix [FIX: #(issue number)], [FEATURE] or [ENHANCEMENT] to the Title -->
## Description
<!--- Describe your changes in detail -->
Simplied isArrayLike to directly check if the given input is iterable rather than indirectly by... | diff --git a/snippets/isArrayLike.md b/snippets/isArrayLike.md
index 5417f1974c9..99870c79619 100644
--- a/snippets/isArrayLike.md
+++ b/snippets/isArrayLike.md
@@ -5,13 +5,7 @@ Checks if the provided argument is array-like (i.e. is iterable).
Use the spread operator (`...`) to check if the provided argument is iterab... | 1 | 1 | 1 | [{"id": "G0", "claim": "The snippet's description in snippets/isArrayLike.md definitely needs to be updated to match the new implementation (it still describes the removed try/catch spread-operator approach), and the alternative approach may still need edge-case checking.", "category": "documentation", "verdict": "supp... | null |
Chalarangelo__30-seconds-of-code__865 | Chalarangelo/30-seconds-of-code | 865 | defect | e6143218e6bbc7d90632cf4605c1c45a893ea3e1 | 0ec5daa0a508057bf00b17cd7d2392c1ae09f59d | add filterFalsy snippet, tags, and tests | FEATURE filterFalsy snippet
## Description
Add filterFalsy snippet that filters falsy elements from an array.
**BREAKING CHANGES**
*THE TESTS DON'T PASS*
The tdd script ```npm run tester``` doesn't work. It fails because of tests. Some unrelated tests seem to fail.
## PR Type
- [x] Snippets, Tests & Tags... | diff --git a/snippets/filterFalsy.md b/snippets/filterFalsy.md
new file mode 100755
index 00000000000..0928a2ec1d7
--- /dev/null
+++ b/snippets/filterFalsy.md
@@ -0,0 +1,13 @@
+### filterFalsy
+
+Filters out the falsy values in an array.
+
+Use `Array.prototype.filter()` to get an array containing only truthy value... | 1 | 1 | 0 | [{"id": "G0", "claim": "Line 8 of snippets/filterFalsy.md lacks a semicolon and should add one.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Chalarangelo__30-seconds-of-code__908 | Chalarangelo/30-seconds-of-code | 908 | defect | abe261f332050099bc590293242d04ab6d0a2fd4 | ec07c51b1f0cc3eb12ba1f447ab3eb2ec18debf6 | Fix deepClone edge case | <!-- Use a descriptive title, prefix it with [FIX], [FEATURE] or [ENHANCEMENT] if applicable (use only one) -->
## Description
FIX Issues #906
<!-- Write a detailed description of your changes/additions here -->
<!-- If your PR resolves an issue, please state "Resolves #(issue number)" to help maintainers proces... | diff --git a/snippets/deepClone.md b/snippets/deepClone.md
index 8f87cd688ab..961c12157a1 100644
--- a/snippets/deepClone.md
+++ b/snippets/deepClone.md
@@ -12,7 +12,7 @@ const deepClone = obj => {
Object.keys(clone).forEach(
key => (clone[key] = typeof obj[key] === 'object' ? deepClone(obj[key]) : obj[key])
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The S1 array branch `Array.from({ length: obj.length })` returns an array without the original elements, so cloning a non-empty array such as deepClone({ a: [1,2,3] }) yields { a: [] } instead of { a: [1,2,3] }.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "int... | null |
ChanceSD__PvPManager__624 | ChanceSD/PvPManager | 624 | defect | dcacb318ae5711b054dffa690500d0e830a24e6d | 96f0a03fc14384a746dea1a693c494daedefcc35 | Add custom flag support (Closes #481) | Adds custom WG flag support
Removed region list from config since it can be replaced with flags | diff --git a/pvpmanager/pom.xml b/pvpmanager/pom.xml
index 6429467c3..bb14f07d3 100644
--- a/pvpmanager/pom.xml
+++ b/pvpmanager/pom.xml
@@ -16,7 +16,7 @@
<url>https://github.com/ChanceSD/PvPManager</url>
<properties>
- <config.version>200</config.version>
+ <config.version>201</config.version>
<database.ver... | 2 | 1 | 0 | [{"id": "G0", "claim": "The string concatenation with '+' inside the Log.infoColor call creates unnecessary temporary objects; consider extracting it to a single variable/string literal for better performance.", "category": "performance", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "c... | null |
ChartGPU__ChartGPU__146 | ChartGPU/ChartGPU | 146 | defect | d932c8898c30ff9198c11ace4d1fc76757307959 | 16c26eb17443270ed97956d3cca1d6023f0cc534 | Bug/memory leak investigation | ## Fix Memory Leak on Page Reload (#139)
Addresses OOM errors from unreleased GPU resources on page reload (~728MB leak per reload with 2 scatter charts, 50k points, 4x MSAA).
### Changes
- **Instance registry + auto-dispose**: Module-level `Set` tracks live `ChartGPU` instances. Lazy `pagehide` listener (guarded ... | diff --git a/docs/plans/2026-02-26-oom-fix-auto-dispose-design.md b/docs/plans/2026-02-26-oom-fix-auto-dispose-design.md
new file mode 100644
index 00000000..3a29caf9
--- /dev/null
+++ b/docs/plans/2026-02-26-oom-fix-auto-dispose-design.md
@@ -0,0 +1,60 @@
+# Design: Auto-Dispose on Page Unload (Issue #139 OOM Fix)
+
+... | 1 | 1 | 0 | [{"id": "G0", "claim": "The unused `beforeAll` import binding in src/utils/__tests__/checkWebGPU.test.ts should be removed from the named import list coming from 'vitest', leaving all actually used imports intact.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ChatGPTBox-dev__chatGPTBox__922 | ChatGPTBox-dev/chatGPTBox | 922 | defect | e8984803baae0d46170db02d4d5978e76f7fca49 | f5ca4f403af801d540c70264afa2acea91269ec3 | Handle GPT-5 token params by provider | Use max_completion_tokens for OpenAI GPT-5-family Chat Completions and
keep max_tokens for non-openai or non-GPT-5-family paths.
Observed error on GPT-5.1-family responses:
Unsupported parameter: 'max_tokens' is not supported with this model.
Use 'max_completion_tokens' instead.
GitHub Copilot PR summary:
>... | diff --git a/src/services/apis/custom-api.mjs b/src/services/apis/custom-api.mjs
index 002d1b966..b82e0a157 100644
--- a/src/services/apis/custom-api.mjs
+++ b/src/services/apis/custom-api.mjs
@@ -10,6 +10,7 @@ import { fetchSSE } from '../../utils/fetch-sse.mjs'
import { getConversationPairs } from '../../utils/get-c... | 12 | 2 | 2 | [{"id": "G0", "claim": "getChatCompletionsTokenParams forwards maxResponseTokenLength without validating it (e.g. undefined/null/NaN), which may cause downstream API errors without actionable context; add validation that it is a non-negative integer, throwing an error if it is not.", "category": "correctness", "verdict... | null |
ChatGPTNextWeb__NextChat__5769 | ChatGPTNextWeb/NextChat | 5,769 | defect | 14f751965f7a55bb9896f1a02c066591e8b22057 | b844045d231658b9e40fa0582936c6746e7a7ef4 | Custom model names can include the `@` symbol by itself. | To specify the model's provider, append it after the model name using `@` as before.
This format supports cases like `google vertex ai` with a model name like `claude-3-5-sonnet@20240620`.
For instance, `claude-3-5-sonnet@20240620@vertex-ai` will be split by `split(/@(?!.*@)/)` into:
`[ 'claude-3-5-sonnet@2024... | diff --git a/app/api/common.ts b/app/api/common.ts
index b4c792d6ff0..322dedeedfe 100644
--- a/app/api/common.ts
+++ b/app/api/common.ts
@@ -71,7 +71,7 @@ export async function requestOpenai(req: NextRequest) {
.filter((v) => !!v && !v.startsWith("-") && v.includes(modelName))
.forEach((m) => {
... | 7 | 2 | 0 | [{"id": "G0", "claim": "The duplicated split logic should be written as one general utility method (placed in utils/chat or utils/model) and covered with unit tests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The defaultModel parsing should ... | null |
ChatGPTNextWeb__NextChat__5883 | ChatGPTNextWeb/NextChat | 5,883 | defect | 83cea3a90d115f9564d96f6a6af400f467f2d3b4 | 1a678cb4d832fe47f5d04e614bb267907bbf2677 | fix model leak issue | #### 💻 变更类型 | Change Type
<!-- For change type, change [ ] to [x]. -->
- [ ] feat <!-- 引入新功能 | Introduce new features -->
- [x] fix <!-- 修复 Bug | Fix a bug -->
- [ ] refactor <!-- 重构代码(既不修复 Bug 也不添加新功能) | Refactor code that neither fixes a bug nor adds a feature -->
- [ ] perf <!-- 提升性能的代码变更 | A c... | diff --git a/app/api/alibaba.ts b/app/api/alibaba.ts
index 894b1ae4c04..20f6caefa8d 100644
--- a/app/api/alibaba.ts
+++ b/app/api/alibaba.ts
@@ -8,7 +8,7 @@ import {
import { prettyObject } from "@/app/utils/format";
import { NextRequest, NextResponse } from "next/server";
import { auth } from "@/app/api/auth";
-imp... | 12 | 1 | 1 | [{"id": "G0", "claim": "The pull request inverts the model-availability logic across many API files but ships no unit tests; unit tests should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The old isModelAvailableInServer function in app/util... | null |
ChatGPTNextWeb__NextChat__5919 | ChatGPTNextWeb/NextChat | 5,919 | defect | 83cea3a90d115f9564d96f6a6af400f467f2d3b4 | a433d1606cc9f24cec7f7cc0a947e416373a5d7b | feat: runtime configuration of vision-capable models | #### 💻 变更类型 | Change Type
<!-- For change type, change [ ] to [x]. -->
- [x] feat <!-- 引入新功能 | Introduce new features -->
- [ ] fix <!-- 修复 Bug | Fix a bug -->
- [ ] refactor <!-- 重构代码(既不修复 Bug 也不添加新功能) | Refactor code that neither fixes a bug nor adds a feature -->
- [ ] perf <!-- 提升性能的代码变更 | A c... | diff --git a/app/constant.ts b/app/constant.ts
index 25c8d98eae3..fe38fb1fe40 100644
--- a/app/constant.ts
+++ b/app/constant.ts
@@ -291,6 +291,21 @@ export const DEFAULT_TTS_VOICES = [
"shimmer",
];
+export const VISION_MODEL_REGEXES = [
+ /vision/,
+ /gpt-4o/,
+ /claude-3/,
+ /gemini-1\.5/,
+ /gemini-exp/,... | 5 | 3 | 2 | [{"id": "G0", "claim": "If NEXT_PUBLIC_VISION_MODELS is undefined, empty, or improperly formatted, envVisionModels may be undefined or contain unintended values; add a default value or additional validation to handle it robustly.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduce... | null |
Chatterino__chatterino2__5965 | Chatterino/chatterino2 | 5,965 | defect | 96feff6e5ca9436d18f8e68cb00b877f2ce7d534 | dfbf7fe57de528bc4b240f54a5a2c12bc7d163de | feat: add snapshot tests for eventsub messages | <!--
Please include a summary of what you've changed and what issue is fixed.
In the case of a bug fix, please include steps to reproduce the bug so the pull request can be tested.
If this PR fixes an issue on GitHub, mention this here to automatically close it: "Fixes #1234.".
-->
Like with IRC mess... | diff --git a/mocks/include/mocks/TwitchIrcServer.hpp b/mocks/include/mocks/TwitchIrcServer.hpp
index d218192b30a..559a79bcd5e 100644
--- a/mocks/include/mocks/TwitchIrcServer.hpp
+++ b/mocks/include/mocks/TwitchIrcServer.hpp
@@ -45,8 +45,27 @@ class MockTwitchIrcServer : public ITwitchIrcServer
ChannelPtr getCha... | 1 | 1 | 1 | [{"id": "G0", "claim": "QStringView has no member 'slice', so `subcategory.slice(0, subcategory.indexOf('/'))` fails to compile; the test should use `sliced` (the suggested `subcategory.sliced(0, subcategory.indexOf('/'))`).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
Chatterino__chatterino2__5974 | Chatterino/chatterino2 | 5,974 | defect | f540be3446605391ebf58b1e1c2b44a5137f69ff | e8feff8b30f7d1a2f577e34cac7948143c3a3e19 | chore(eventsub): add operator== and indicator for shared chat | <!--
Please include a summary of what you've changed and what issue is fixed.
In the case of a bug fix, please include steps to reproduce the bug so the pull request can be tested.
If this PR fixes an issue on GitHub, mention this here to automatically close it: "Fixes #1234.".
-->
To not confuse moder... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c264e761171..a083d63142e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -29,7 +29,7 @@
- Bugfix: Fixed channel point redemptions with messages not showing up if PubSub is disconnected. (#5948)
- Bugfix: Fixed the input font not immediately updating when zooming in/out. ... | 3 | 3 | 2 | [{"id": "G0", "claim": "Moderation actions that happen in the other room during a shared chat session do take effect in your chat, so it would make sense to show them still instead of ignoring them, with an extra piece of text like ' for the duration of the shared chat session'.", "category": "correctness", "verdict": ... | null |
Chatterino__chatterino2__6106 | Chatterino/chatterino2 | 6,106 | defect | 95a9115d82338694a4f1136f31e9596ff4bac3e6 | a2ebc7ccc66c93f0c9031a871c8883ee69925152 | fix: make reply-cancel button less coarse-grained | -------
Fixes #6099. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e578e4e9b5e..d252b95739c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@
- Bugfix: Fixed the channel name input not being focused when opening the select-channel dialog. (#6096)
- Bugfix: Fixed inputs in dialogs not having a border around and padding in them... | 2 | 2 | 0 | [{"id": "G0", "claim": "Retain the old button size by disabling the margin, i.e. setFixedWidth/setFixedHeight to 12*scale with setEnableMargin(false) instead of the 24*scale fixed size.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Apply the suggested s... | null |
Chatterino__chatterino2__6181 | Chatterino/chatterino2 | 6,181 | defect | 555b921f658f2b8832499654e2bf60d90f53c78d | b524b2bcb5aaf91e4ef18d1202ca83002032fd2a | fix: don't include blocked users in join/part messages | Users who are blocked no longer show up in the "Users joined:" or "Users parted:" messages
Fixes #2505
The biggest chunk of code of this fix comes from adding user logins to the list of blocks. There are some container types that allow for use of multiple keys (basically keeping the same type of logic we use with... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 19a0e36935b..62957f79ee9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,7 @@
- Bugfix: Fixed the emote popup erroneously logging messages to the `Other` directory. (#6165)
- Bugfix: Handle <kbd>CMD</kbd> + <kbd>BACKSPACE</kbd> behavior explicitly in main chat ... | 2 | 2 | 2 | [{"id": "G0", "claim": "In blockUserLocally the login is inserted into the ignoresUserIds_ set; it should be inserted into ignoresUserLogins_ (per the attached suggestion).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Moderator (and broadcaster) s... | null |
Chatterino__chatterino2__6186 | Chatterino/chatterino2 | 6,186 | defect | 034a476a5993cc848b5011c19ce5850e5edf6df7 | 25842c59608132c3f296431fe2c71e4bf7a1bcd6 | Do not hide WebSocket API when missing permission | <!--
Please include a summary of what you've changed and what issue is fixed.
In the case of a bug fix, please include steps to reproduce the bug so the pull request can be tested.
If this PR fixes an issue on GitHub, mention this here to automatically close it: "Fixes #1234.".
-->
To try use this code... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f07f78738d9..44068456a15 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,7 +6,7 @@
- Minor: Added cached emotes fallback when fetching from a provider fails. (#6125)
- Minor: Add an option for the reduced opacity of message history. (#6121)
- Minor: Make paused chat ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new assertion passes the raw Lua string to EXPECT_ANY_THROW instead of executing it, so the expression result is unused (clang-diagnostic-unused-value) and the intended throw check never runs the script.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
Chatterino__chatterino2__6238 | Chatterino/chatterino2 | 6,238 | defect | 8acca1c241db169a682c4712154145f5fc92e0d4 | 4f19e9eb1cf0ed3f5aed9defacecf2e535ded5f8 | feat: implement display name specializations for enums | Currently not implemented anywhere, but I've tested implementing it for a setting and it works as expected.
Example implementation (put in same file/namespace as the enum itself)
```c++
constexpr chatterino::qmagicenum::customize_t qmagicenumDisplayName(
TabStyle value) noexcept
{
switch (value)
{
... | diff --git a/src/singletons/Settings.hpp b/src/singletons/Settings.hpp
index 467b9b4749a..1bdb496ecac 100644
--- a/src/singletons/Settings.hpp
+++ b/src/singletons/Settings.hpp
@@ -15,6 +15,7 @@
#include "controllers/nicknames/Nickname.hpp"
#include "controllers/sound/ISoundController.hpp"
#include "singletons/Toast... | 3 | 3 | 0 | [{"id": "G0", "claim": "clang-tidy warns that the lambda parameter 'newText' is unused; it should be unnamed (e.g. `(const auto & /*newText*/)`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "An enum used with this new facility generates two ta... | null |
Chatterino__chatterino2__6272 | Chatterino/chatterino2 | 6,272 | defect | 7f9dfd4aea70a59e1e6efbd68d0ae77f482301ab | a3504dd86beaa8742beefbe622204b6580bf2f72 | fix: don't post contents of unknown commands to chat | This PR ensures that messages that start with `/` and don't match a command don't get their contents posted to chat.
Behaviour before this PR:
1. Post `/bann weeb123 123 for being a bad person` in chat
2. Observe your user posting `weeb123 123 for being a bad person` in chat
Behaviour after this PR:
1. Post `/... | diff --git a/src/common/ChatterinoSetting.hpp b/src/common/ChatterinoSetting.hpp
index fb4a536ce39..84242838f27 100644
--- a/src/common/ChatterinoSetting.hpp
+++ b/src/common/ChatterinoSetting.hpp
@@ -130,7 +130,7 @@ class EnumStringSetting : public pajlada::Settings::Setting<QString>
return this->getEnum();
... | 1 | 1 | 0 | [{"id": "G0", "claim": "clang-tidy warns that the file-scope 'static' function isUnknownCommand should be moved to an anonymous namespace instead.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
Chatterino__chatterino2__6362 | Chatterino/chatterino2 | 6,362 | defect | 7e7c4112d70260ef6d3297c2185f945bc5d22c1b | 88b56656e2b7fd139feefcb828c510e4033b150c | Add emote completion widget filter for only zero-width emotes using :~ | Searching with `:` is unaffected:
<img width="691" height="207" alt="image" src="https://github.com/user-attachments/assets/5d2f904c-8778-4095-b90c-50c2ebf5e208" />
Searching with `:~` will only show zero-width emotes:
<img width="691" height="214" alt="image" src="https://github.com/user-attachments/assets/989501... | diff --git a/src/controllers/completion/strategies/ClassicEmoteStrategy.cpp b/src/controllers/completion/strategies/ClassicEmoteStrategy.cpp
index 134e6e1e9e0..056d7694853 100644
--- a/src/controllers/completion/strategies/ClassicEmoteStrategy.cpp
+++ b/src/controllers/completion/strategies/ClassicEmoteStrategy.cpp
@@ ... | 6 | 5 | 2 | [{"id": "G0", "claim": "Use a std::ranges version of remove_if instead of the iterator-pair std::remove_if in ClassicEmoteStrategy and SmartEmoteStrategy.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The lambda's EmoteItem parameter is copied ... | null |
Chatterino__chatterino2__6516 | Chatterino/chatterino2 | 6,516 | defect | 33f6383122490298ad022645a32c47b44b879409 | 6274d3fceb1de7bf82640a027af49da6f34c7edf | refactor: turn `Emotes` into `EmoteController` | <!--
Please include a summary of what you've changed and what issue is fixed.
In the case of a bug fix, please include steps to reproduce the bug so the pull request can be tested.
If this PR fixes an issue on GitHub, mention this here to automatically close it: "Fixes #1234.".
-->
In Chatterino, "cont... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 565569ce781..21cd3700a1e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,7 @@
- Dev: Correct handling of eventsubs without any account. (#6503)
- Dev: Removed dependency to Qt5 Compatibility module by updating libcommuni. (#6500)
- Dev: Merged emote element fl... | 3 | 2 | 0 | [{"id": "G0", "claim": "The Application accessor can keep the name `getEmotes` instead of being renamed to `getEmoteController`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new EmoteController accessors should get back the `get` prefixes ... | null |
Chatterino__chatterino2__6519 | Chatterino/chatterino2 | 6,519 | defect | c5b0669812e7c45065c2c23a138e428eddf7293a | 4e5d64df58357d16f5ab06028090f907cf77ce31 | fix: compilation error with Clang 21 | <!--
Please include a summary of what you've changed and what issue is fixed.
In the case of a bug fix, please include steps to reproduce the bug so the pull request can be tested.
If this PR fixes an issue on GitHub, mention this here to automatically close it: "Fixes #1234.".
-->
The range of `MyOpen... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e3f0f96ee4d..1a34e1bf3d6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@
- Minor: Fixed usercard resizing improperly without recent messages. (#6496)
- Minor: Added setting for character limit of deleted messages. (#6491)
- Minor: Added link support to plug... | 1 | 1 | 0 | [{"id": "G0", "claim": "The CHANGELOG entry should be a Dev entry and should clarify that the compilation error is in the test.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Chatterino__chatterino2__6594 | Chatterino/chatterino2 | 6,594 | defect | b63739e792d977b43ab4be2007aa661d704c6b38 | 3b8394564fdcfb1004e377b55c79e588c14bcaf4 | feat(plugins): add display name change event to `Channel` | <!--
Please include a summary of what you've changed and what issue is fixed.
In the case of a bug fix, please include steps to reproduce the bug so the pull request can be tested.
If this PR fixes an issue on GitHub, mention this here to automatically close it: "Fixes #1234.".
-->
The main purpose o... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index bea8f974e0f..6f0e86b417a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@
- Minor: Added a menu action to sort tabs alphabetically. (#6551)
- Minor: Fixed "edit hotkey" dialog opening like a normal window. (#6540)
- Minor: Added a setting to show the strea... | 11 | 10 | 3 | [{"id": "G0", "claim": "As written the change fails to compile: ConnectionManager.cpp uses std::ranges::remove_if without including <algorithm> (clang-tidy reports 'no member named remove_if in namespace std::ranges').", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id":... | null |
Chatterino__chatterino2__6625 | Chatterino/chatterino2 | 6,625 | defect | c67953d14ffb712bc341ee32f553c0607f80372a | 020211cd9630b592dc88d621e6212dbb57d95696 | feat: show BTTV Pro badges | <!--
Please include a summary of what you've changed and what issue is fixed.
In the case of a bug fix, please include steps to reproduce the bug so the pull request can be tested.
If this PR fixes an issue on GitHub, mention this here to automatically close it: "Fixes #1234.".
-->
BTTV badges are br... | diff --git a/benchmarks/src/RecentMessages.cpp b/benchmarks/src/RecentMessages.cpp
index 4888d3e11b9..6df4e458727 100644
--- a/benchmarks/src/RecentMessages.cpp
+++ b/benchmarks/src/RecentMessages.cpp
@@ -9,6 +9,7 @@
#include "mocks/Logging.hpp"
#include "mocks/TwitchIrcServer.hpp"
#include "mocks/UserData.hpp"
+#in... | 2 | 1 | 0 | [{"id": "G0", "claim": "Add a comment above the BadgeBttv flag, like the 7TV one, saying it occupies its own badge slot (without enumerating badge types).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The badge tooltip should read \"BetterTTV Pro... | null |
Chatterino__chatterino2__6687 | Chatterino/chatterino2 | 6,687 | defect | 75d35077a277e13129fbc8c4c9d6275bfaecf901 | 192eb75aff58d0f74d7bc5cf4e313cad6bb2d582 | feat(plugins): add readonly window layout access | <!--
Please include a summary of what you've changed and what issue is fixed.
In the case of a bug fix, please include steps to reproduce the bug so the pull request can be tested.
If this PR fixes an issue on GitHub, mention this here to automatically close it: "Fixes #1234.".
-->
This implements the ... | diff --git a/docs/chatterino.d.ts b/docs/chatterino.d.ts
index 30261827e86..1239ca1c9c5 100644
--- a/docs/chatterino.d.ts
+++ b/docs/chatterino.d.ts
@@ -534,6 +534,62 @@ declare namespace c2 {
}
function current_account(): TwitchAccount;
+
+ class Split implements IWeakResource {
+ is_valid(): boo... | 7 | 5 | 2 | [{"id": "G0", "claim": "Open question: reading the user's open channels through the new window API is not locked behind any permission — consider whether it should be.", "category": "security", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Undo the change that moved ChannelRef::... | null |
Chatterino__chatterino2__6701 | Chatterino/chatterino2 | 6,701 | defect | 95bc67fea05a3d8aba190e6f8f4e1d737797f40b | 59ee455b4e28c7dc043e88533c5644967bcbaa18 | chore: add unit tests for XDGDirectory | <!--
Please include a summary of what you've changed and what issue is fixed.
In the case of a bug fix, please include steps to reproduce the bug so the pull request can be tested.
If this PR fixes an issue on GitHub, mention this here to automatically close it: "Fixes #1234.".
-->
| diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index bbedbe88d9e..bfbbdc4c6b9 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -35,6 +35,7 @@ set(test_SOURCES
${CMAKE_CURRENT_LIST_DIR}/src/InputCompletion.cpp
${CMAKE_CURRENT_LIST_DIR}/src/XDGDesktopFile.cpp
${CMAKE_CURRENT_LIST_D... | 2 | 1 | 0 | [{"id": "G0", "claim": "TempEnv's constructor should take the QString by value and move it into the member (plus include <utility>) to avoid an unnecessary copy.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The destructor's member access should us... | null |
Chatterino__chatterino2__6746 | Chatterino/chatterino2 | 6,746 | defect | f4f49742c164ff0ad09bfc7a97b414656f2eb86e | 1216ee4435995f2555481001c3980f1cf8aacbe8 | fix(http): Send multipart body for `PUT` | Not all request types had the same body handling - `PUT` requests couldn't send a multipart body. With this PR, they have the same handling.
I also added tests for the body in the request types. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 90753e23e47..1e8d9e759e7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -89,6 +89,7 @@
- Dev: Refactored types used for emoji parsing. (#6714)
- Dev: `LinkParser` now parses `QStringView`s. (#6715)
- Dev: Cleaned up `AccountController` connections. (#6735)
+- Dev: Unif... | 2 | 2 | 1 | [{"id": "G0", "claim": "The custom sendCustomRequest-based dispatch should be replaced so supported request types go through QNetworkAccessManager's built-in methods, with the special case kept as a separate method or a NetworkRequestType::Custom.", "category": "design", "verdict": "supported", "priority": "P1", "scope... | null |
Chatterino__chatterino2__6804 | Chatterino/chatterino2 | 6,804 | defect | 43ac9c38db3a1a8e1a6c882a7fa7967f25e0ec60 | 9c3680b7c3237d92b4849a0795c93a29fef4922a | refactor(websockets): Balance IPv4 and IPv6 attempts | Since #6631, we try to connect to all resolved hosts.
However, we don't control the order. At least on Windows, the results are usually grouped into IPv4 and IPv6 (i.e. either all v4 records followed by v6 or vice versa). When v6 records come first and the machine fails to connect over v6 because the connection times ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6fd50e178df..e0c51050cb9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -110,6 +110,7 @@
- Dev: Updated `pajlada-settings` to v0.5.0. (#6797)
- Dev: Updated `pajlada-serialize` to v0.2.1. (#6797)
- Dev: Updated `pajlada-signals` to v0.1.1. (#6797)
+- Dev: Balance IPv4 ... | 5 | 3 | 1 | [{"id": "G0", "claim": "Pass the 24-byte `boost::system::error_code` by const reference rather than by value in `onTcpHandshake`.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Check the optional returned by `advanceEntry()`/`currentEntry()` before ... | null |
Chatterino__chatterino2__6877 | Chatterino/chatterino2 | 6,877 | defect | 1bc6e5aa718379652dcce530f7f88cf615948320 | 223c7eb26b54d15fb87a20cf8e9447992cb18401 | Use environment variables for test API addresses | Instead of hardcoding the addresses for the test API servers, make it possible to set them via environment variables. PUBSUB_WSS_ADDR replaces 127.0.0.1:9050, HTTPBOX_ADDR replaces 127.0.0.1:9051, and PUBSUB_WS_ADDR replaces 127.0.0.1:9052.
I think this change also obsoletes `CHATTERINO_TEST_USE_PUBLIC_HTTPBIN` but ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 65af7e3b3ce..8ecaa72a461 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,8 @@
## Unversioned
+- Dev: Added `PUBSUB_WSS_ADDR`, `HTTPBOX_ADDR`, and `PUBSUB_WS_ADDR` environment variables to set test API server addresses. (#6877)
+
## 2.5.5
- Minor: Update em... | 6 | 4 | 1 | [{"id": "G0", "claim": "clang-tidy (chatterino-explicit-this) suggests using explicit 'this->' for the lua member accesses it flagged in tests/src/Plugins.cpp (e.g. '(*this->lua)[\"DoReq\"]' and 'this->lua->set(...)').", "category": "style", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1",... | null |
Chatterino__chatterino2__6909 | Chatterino/chatterino2 | 6,909 | defect | 6ccb74f9450e66b59ad9f5b08dbb5e41ea12a383 | fc58490643bf0d3287d74b0409285f8a9c5c84a3 | Allow plugins to clone existing elements | <!--
Please include a summary of what you've changed and what issue is fixed.
In the case of a bug fix, please include steps to reproduce the bug so the pull request can be tested.
If this PR fixes an issue on GitHub, mention this here to automatically close it: "Fixes #1234.".
-->
You can do stuff lik... | diff --git a/docs/lua-meta/globals.lua b/docs/lua-meta/globals.lua
index 09e340a75d9..0cfa284a338 100644
--- a/docs/lua-meta/globals.lua
+++ b/docs/lua-meta/globals.lua
@@ -538,8 +538,8 @@ function c2.Message:elements() end
--- Add an element to this message.
---
----@param init MessageElementInit The element to ad... | 11 | 9 | 2 | [{"id": "G0", "claim": "The clone() doc comment should not say \"Used for Lua plugins\" because the method is useful for other things as well.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Every clone() repeats setLink/setTooltip/setTrailingSpace... | null |
CherryHQ__cherry-studio__10034 | CherryHQ/cherry-studio | 10,034 | defect | 4a72d4039408c1e53db165ec33edeea51cf60468 | 52a0081359ef17b5ccdab9393ca97ee35b8fbb3b | feat: add font size and table of contents settings to RichEditor | - Introduced font size customization in the RichEditor component, allowing users to adjust the font size for better readability.
- Added a toggle for displaying a table of contents in the editor settings.
- Updated localization files to include new settings descriptions.
- Enhanced the NotesSettings component with a... | diff --git a/src/renderer/src/assets/styles/richtext.css b/src/renderer/src/assets/styles/richtext.css
index c6afcf4011c..547a5e17bb5 100644
--- a/src/renderer/src/assets/styles/richtext.css
+++ b/src/renderer/src/assets/styles/richtext.css
@@ -5,6 +5,7 @@
min-height: 120px;
overflow-wrap: break-word;
word-bre... | 4 | 4 | 0 | [{"id": "G0", "claim": "The new star button should either use Hero UI's Tooltip now, or a follow-up PR should be started to migrate all Tooltips uniformly.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The styled-components used here (the new StarButton... | null |
CherryHQ__cherry-studio__10817 | CherryHQ/cherry-studio | 10,817 | defect | cf2f2fd707af9b6a275ae3a668017e9b2e673114 | 71a1cabd24b9947763287c5f55bda1c775c03bac | feat: enhance proxy bypass rules with comprehensive matching | Features Implemented:
1. Domain Matching:
- Exact domain match: example.com
- Wildcard subdomain: *.example.com (matches all subdomains)
- Leading dot notation: .example.com (treated as *.example.com)
2. IP Address Matching:
- Single IPv4: 192.168.1.100
- IPv4 with port: 192.168.1.100:8... | diff --git a/package.json b/package.json
index 1dad6a9f5a3..fda4c7eca9f 100644
--- a/package.json
+++ b/package.json
@@ -280,6 +280,7 @@
"husky": "^9.1.7",
"i18next": "^23.11.5",
"iconv-lite": "^0.6.3",
+ "ipaddr.js": "^2.2.0",
"isbinaryfile": "5.0.4",
"jaison": "^2.0.2",
"jest-styled-c... | 4 | 2 | 0 | [{"id": "G0", "claim": "Use the stable, widely used `minimatch` library instead of the hand-rolled matching, both for wildcard domain patterns and for wildcard-IP rules.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A bare-domain pattern like `example.com... | null |
CherryHQ__cherry-studio__11379 | CherryHQ/cherry-studio | 11,379 | defect | 0f1a487bb04d7b3b7bfc752d81821a684c8dab63 | 105513a180a5afcb4c9d5d56d21475d37b2afa83 | Fix Poe API reasoning parameters for GPT-5 and reasoning models | ### What this PR does
Before this PR:
- Poe API reasoning parameters (chain-of-thought length) were appended as text to user messages (`--reasoning_effort low`)
- Parameters were ignored by Poe API, all requests used default short chain-of-thought
- No effect regardless of reasoning effort settings
After this ... | diff --git a/src/renderer/src/aiCore/legacy/clients/openai/OpenAIApiClient.ts b/src/renderer/src/aiCore/legacy/clients/openai/OpenAIApiClient.ts
index ad873318559..a8cf8ce40fd 100644
--- a/src/renderer/src/aiCore/legacy/clients/openai/OpenAIApiClient.ts
+++ b/src/renderer/src/aiCore/legacy/clients/openai/OpenAIApiClien... | 7 | 6 | 5 | [{"id": "G0", "claim": "The Poe reasoning parameters must be sent in the flat format Poe supports (extra_body: { reasoning_effort } and extra_body: { thinking_budget }) rather than as a top-level reasoning_effort or nested under extra_body.google.thinking_config as the PR currently does.", "category": "correctness", "v... | null |
CherryHQ__cherry-studio__11505 | CherryHQ/cherry-studio | 11,505 | defect | 0836eef1a6a5bf95782315de891e39fa4153c0b3 | 49d26261b6c0c0e1fd00af3bfc92cffc7377984d | fix: preserve openrouter reasoning with web search | ### What this PR does
Before this PR:
- For OpenRouter models, enabling both reasoning and web search caused the plugin’s provider options to overwrite the existing reasoning payload (due to a shallow merge), so models like Opus‑4.5 never received the thinking settings.
After this PR:
- Provider options are dee... | diff --git a/packages/aiCore/src/core/options/__tests__/factory.test.ts b/packages/aiCore/src/core/options/__tests__/factory.test.ts
new file mode 100644
index 00000000000..7323a83f06b
--- /dev/null
+++ b/packages/aiCore/src/core/options/__tests__/factory.test.ts
@@ -0,0 +1,40 @@
+import { describe, expect, it } from '... | 3 | 3 | 1 | [{"id": "G0", "claim": "The newly added test file packages/aiCore/src/core/options/__tests__/factory.test.ts might not be executed in CI because the root vitest.config.ts include scope and the CI workflow do not cover packages/aiCore, so the regression tests would not protect anything; the reviewer asked to wire them i... | null |
CherryHQ__cherry-studio__11556 | CherryHQ/cherry-studio | 11,556 | defect | 876f59d650d2b2387a4ae1564e31d27b53b172d0 | 41e444539c152d3e4fa3291f9d062d6416d71d2f | fix: prevent NaN thinking timers | ### What this PR does
Before this PR:
- The home page chat pipeline uses `BlockManager` + `thinkingCallbacks`. That stack records `performance.now()` on `THINKING_START`, falls back to the locally measured elapsed time whenever `thinking_millsec` is missing, and never overwrites the block with `undefined`.
- Quick Ass... | diff --git a/src/renderer/src/pages/home/Messages/Blocks/ThinkingBlock.tsx b/src/renderer/src/pages/home/Messages/Blocks/ThinkingBlock.tsx
index 109562f7d59..32afabb3704 100644
--- a/src/renderer/src/pages/home/Messages/Blocks/ThinkingBlock.tsx
+++ b/src/renderer/src/pages/home/Messages/Blocks/ThinkingBlock.tsx
@@ -102... | 3 | 3 | 3 | [{"id": "G0", "claim": "The THINKING_COMPLETE handler should reset `thinkingBlockId` to null after completing the thinking block (as done in ActionUtils.ts), otherwise a subsequent THINKING_START chunk in the same stream may reuse the old block ID instead of creating a new thinking block.", "category": "correctness", "... | null |
CherryHQ__cherry-studio__11605 | CherryHQ/cherry-studio | 11,605 | defect | fb45d94efbe06b954f4d4c72c152fab25891105c | f84b96a56cc1aa4ed498d8f69deb13698f39b01f | Fix custom parameters placement for Vercel AI Gateway | ### What this PR does
Before this PR:
- Provider ID was inconsistently named as 'ai-gateway' across the codebase
- Custom parameters added via assistant model settings (e.g., `tools`) were incorrectly nested inside `providerOptions.gateway` for Vercel AI Gateway
- Web search plugin was not properly supported for AI Ga... | diff --git a/packages/aiCore/src/core/plugins/built-in/webSearchPlugin/helper.ts b/packages/aiCore/src/core/plugins/built-in/webSearchPlugin/helper.ts
index a50356130d0..61e6f49b81f 100644
--- a/packages/aiCore/src/core/plugins/built-in/webSearchPlugin/helper.ts
+++ b/packages/aiCore/src/core/plugins/built-in/webSearch... | 11 | 6 | 4 | [{"id": "G0", "claim": "The reviewer asks that web search tool switching not dispatch on a provider-id case/if-chain but simply use the WebSearchPluginConfig directly, since a gateway provider can invoke these providers' tools.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"... | null |
CherryHQ__cherry-studio__11611 | CherryHQ/cherry-studio | 11,611 | defect | 3e6dc5619680ef5b56aa9be52e6beee9d3a1caea | 139978dae243170fee5b6580c333d84535c1b870 | fix: ollama url | fix: #11599
Based on ollama docs:
<img width="1210" height="572" alt="CleanShot 2025-12-01 at 18 47 19@2x" src="https://github.com/user-attachments/assets/9c74c2b0-e677-4dff-b24a-e71962c8788e" />
<img width="1150" height="522" alt="CleanShot 2025-12-01 at 18 48 12@2x" src="https://github.com/user-attachments/asset... | diff --git a/src/renderer/src/aiCore/provider/providerConfig.ts b/src/renderer/src/aiCore/provider/providerConfig.ts
index 3ed3633d7c6..e000588bd86 100644
--- a/src/renderer/src/aiCore/provider/providerConfig.ts
+++ b/src/renderer/src/aiCore/provider/providerConfig.ts
@@ -99,6 +99,8 @@ export function formatProviderApi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Ollama integration should switch to the community-maintained ollama-ai-sdk provider (ollama-ai-provider-v2), since the current OpenAI-completions compatibility is sloppy and makes controlling the thinking process difficult, with #11612 supported along with it.", "category": "design", "verdic... | null |
CherryHQ__cherry-studio__11631 | CherryHQ/cherry-studio | 11,631 | defect | 3e6dc5619680ef5b56aa9be52e6beee9d3a1caea | 18777b38724c87871e71ac4743834f7a587ec687 | fix(settings): fix wrong type caused by as assertion in OpenAI settings | ### What this PR does
Before this PR:
- The `Selector` component in OpenAI settings was using `as` type assertions to force string values (including "undefined") into the `OpenAISummaryText` and `OpenAIVerbosity` types
- When users selected options, the literal string "undefined" could be stored instead of actual `und... | diff --git a/src/renderer/src/aiCore/legacy/clients/BaseApiClient.ts b/src/renderer/src/aiCore/legacy/clients/BaseApiClient.ts
index e755ce3f208..92f24b4abef 100644
--- a/src/renderer/src/aiCore/legacy/clients/BaseApiClient.ts
+++ b/src/renderer/src/aiCore/legacy/clients/BaseApiClient.ts
@@ -9,6 +9,7 @@ import {
impor... | 3 | 3 | 1 | [{"id": "G0", "claim": "Migration 180's verbosity check sets `state.settings.openAI.summaryText = undefined` instead of `.verbosity`, so users with corrupted `verbosity: 'undefined'` are not fixed and their valid `summaryText` is reset.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "in... | null |
CherryHQ__cherry-studio__11761 | CherryHQ/cherry-studio | 11,761 | defect | f8c33db450f4b7b980b52ad621f0aee82bd6518f | af50bc534e7a3358a6292bfd9bf84d6bb261f261 | fix: remove cloneDeep to prevent stack overflow with base64 images | ### What this PR does
Before this PR:
Sending requests with multiple base64 images causes "maximum call stack exceeded" errors due to media type detection with regex recursively
<img width="1038" height="321" alt="image" src="https://github.com/user-attachments/assets/71d71f29-94e2-4b99-b7fe-8b4904da9358" />
... | diff --git a/src/renderer/src/aiCore/prepareParams/__tests__/message-converter.test.ts b/src/renderer/src/aiCore/prepareParams/__tests__/message-converter.test.ts
index 2433192cd0b..170e876493d 100644
--- a/src/renderer/src/aiCore/prepareParams/__tests__/message-converter.test.ts
+++ b/src/renderer/src/aiCore/preparePa... | 8 | 8 | 3 | [{"id": "G0", "claim": "The data-URL branch passes the full data URL to the image field while also setting mediaType separately, inconsistent and redundant with the file path, and should instead extract just the base64 data (the reviewer's recommended option 1).", "category": "maintainability", "verdict": "supported", ... | null |
CherryHQ__cherry-studio__11921 | CherryHQ/cherry-studio | 11,921 | defect | a1f0addafb4ab953b39726abe0b7c04ab22df060 | 686dc360f9eac7549de299a2a26738c02bbb2cab | fix: auto-discover and persist Git Bash path on Windows for scoop | - Add autoDiscoverGitBash function to find and cache Git Bash path when needed
- Modify System_CheckGitBash IPC handler to auto-discover and persist path
- Update Claude Code service with fallback auto-discovery mechanism
- Git Bash path is now cached after first discovery, improving UX for Windows users
scoop安装的... | diff --git a/src/main/ipc.ts b/src/main/ipc.ts
index d7e82ff875b..a8136880470 100644
--- a/src/main/ipc.ts
+++ b/src/main/ipc.ts
@@ -6,7 +6,13 @@ import { loggerService } from '@logger'
import { isLinux, isMac, isPortable, isWin } from '@main/constant'
import { generateSignature } from '@main/integration/cherryai'
i... | 9 | 9 | 4 | [{"id": "G0", "claim": "Calling validateGitBashPath on the value returned by autoDiscoverGitBash is redundant because the function already returns a validated path, so discoveredPath should be assigned directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
CherryHQ__cherry-studio__12089 | CherryHQ/cherry-studio | 12,089 | defect | 09e58d37560a6ffd61c819dacd6ae7ac2429a00f | e55805f200df47324bf9de6e4a60364bf9432591 | fix(ollama): improve reasoningEffort handling in providerOptions | <!-- Template from https://github.com/kubevirt/kubevirt/blob/main/.github/PULL_REQUEST_TEMPLATE.md?-->
<!-- Thanks for sending a pull request! Here are some tips for you:
1. Consider creating this PR as draft: https://github.com/CherryHQ/cherry-studio/blob/main/CONTRIBUTING.md
-->
### What this PR does
**Before thi... | diff --git a/.yarn/patches/ollama-ai-provider-v2-npm-1.5.5-8bef249af9.patch b/.yarn/patches/ollama-ai-provider-v2-npm-1.5.5-8bef249af9.patch
index ea143815394..c306bef6e54 100644
--- a/.yarn/patches/ollama-ai-provider-v2-npm-1.5.5-8bef249af9.patch
+++ b/.yarn/patches/ollama-ai-provider-v2-npm-1.5.5-8bef249af9.patch
@@ ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The comment added for gpt-oss models misstates the accepted think values by including boolean, and the reviewer asks whether boolean is actually supported.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "For gpt-oss models, ... | null |
CherryHQ__cherry-studio__12735 | CherryHQ/cherry-studio | 12,735 | defect | a9ba2d5f54e21f2db3c9ea3b810991324d41d0df | 96b71b616ef81ca950b1aaf45c013ca5ed247273 | fix: prevent MCP multimodal tool results from exceeding API message size limits | ### What this PR does
**Before this PR:**
When MCP tools return images (e.g. screenshot tools, image generation), the entire base64 image data (~6-8MB) was serialized into the tool result message sent back to the model. This caused two problems:
1. **Gemini**: Image data was stuffed inside `functionResponse` a... | diff --git a/src/renderer/src/aiCore/utils/mcp.ts b/src/renderer/src/aiCore/utils/mcp.ts
index 7d3be9ac968..8b3afaf1eeb 100644
--- a/src/renderer/src/aiCore/utils/mcp.ts
+++ b/src/renderer/src/aiCore/utils/mcp.ts
@@ -1,11 +1,15 @@
+import type { LanguageModelV2ToolResultOutput } from '@ai-sdk/provider'
import { logger... | 6 | 6 | 2 | [{"id": "G0", "claim": "mcpResultToModelOutput builds a full content object (~50 lines) that toModelOutput only uses as a truthy check and then discards, returning the text summary instead, so the media-part construction is dead code and result.content is iterated twice; replace it with a simple hasMultimodalContent bo... | null |
CherryHQ__cherry-studio__13269 | CherryHQ/cherry-studio | 13,269 | defect | afa4f4f70936c1ca8864aea5b0fcd5d1e4aecafd | f19842ce6284464a2282d0c2a49ec522a571ccf5 | feat(migration): add Dexie settings unified data source and auto-generation | ### What this PR does
Before this PR:
The v2 migration system only supports ElectronStore and Redux as data sources for preference migration. Dexie IndexedDB `settings` table (a simple KV store used by the renderer for translate settings, pinned models, etc.) has no migration path.
After this PR:
- Adds `DexieS... | diff --git a/packages/shared/data/preference/preferenceSchemas.ts b/packages/shared/data/preference/preferenceSchemas.ts
index 46f91a2f286..f2f1dd17437 100644
--- a/packages/shared/data/preference/preferenceSchemas.ts
+++ b/packages/shared/data/preference/preferenceSchemas.ts
@@ -1,6 +1,6 @@
/**
* Auto-generated pre... | 5 | 2 | 1 | [{"id": "G0", "claim": "Consider adding a getAll(): Map<string, unknown>-style method to DexieSettingsReader in a follow-up, to support bulk inspection during debugging/logging (non-blocking).", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "dexieSettings ... | null |
CherryHQ__cherry-studio__13340 | CherryHQ/cherry-studio | 13,340 | defect | def2b799ba2526dd01c94920a8e5aecdbe4701c8 | d4ac2dcf7db5e15131aa56efe80212918cddaaac | feat(migration): migrate codeTools Redux slice to v2 preference with layered preset | ### What this PR does
Before this PR:
The `codeTools` Redux slice stored per-tool settings (selected models, environment variables, directories) in separate `Record<toolId, value>` maps with a design flaw — `directories` and `currentDirectory` were global instead of per-tool.
After this PR:
- Migrates all `codeTools`... | diff --git a/packages/shared/data/preference/preferenceSchemas.ts b/packages/shared/data/preference/preferenceSchemas.ts
index 46f91a2f286..c1b4cf6cc84 100644
--- a/packages/shared/data/preference/preferenceSchemas.ts
+++ b/packages/shared/data/preference/preferenceSchemas.ts
@@ -28,6 +28,7 @@
import { MEMORY_FACT_E... | 12 | 11 | 4 | [{"id": "G0", "claim": "The preset IDs in PRESETS_CODE_TOOLS should reuse the legacy `codeTools` enum from `@shared/config/constant` instead of hardcoded strings, so the two lists cannot drift.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
CherryHQ__cherry-studio__13575 | CherryHQ/cherry-studio | 13,575 | defect | 3f9cb07cbef0ab20edf72f1236556de4d14f1099 | 1bf3b3eb2192d691db074b3d1a3cdcfa7c826b77 | fix: add budgetTokens fallback for Agent thinking compatibility | ### What this PR does
Before this PR:
`getAnthropicReasoningParams()` could return `{ thinking: { type: 'enabled' } }` without `budgetTokens` when `findTokenLimit()` couldn't determine a model's token limit. The Claude Agent SDK then silently converted this to `--thinking adaptive`, which non-Anthropic upstream provi... | diff --git a/src/renderer/src/aiCore/utils/reasoning.ts b/src/renderer/src/aiCore/utils/reasoning.ts
index 1d13d4dd6d2..e9a1d7c8c1b 100644
--- a/src/renderer/src/aiCore/utils/reasoning.ts
+++ b/src/renderer/src/aiCore/utils/reasoning.ts
@@ -551,6 +551,19 @@ export function getOpenAIReasoningParams(
return {}
}
+/... | 1 | 1 | 1 | [{"id": "G0", "claim": "A follow-up test covering the unknown-token-limit fallback path would still be valuable to make sure the regression does not come back later.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
CherryHQ__cherry-studio__13593 | CherryHQ/cherry-studio | 13,593 | defect | 21a8c625cb16f9f0d7b9caa293d6350e52a376e7 | 1d933f15bde89f631bcbbb63c6c7d2a534b072f5 | feat: upgrade MiniMax default model to M2.7 | ## Summary
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to both minimax and minimax-global provider model lists
- Set MiniMax-M2.7 as the new default model (first in list)
- Keep all previous models (M2.5, M2.1, M2) as available alternatives
- Update function calling regex to support M2.7 and all M2.x variants
- Add M... | diff --git a/src/renderer/src/config/models/__tests__/reasoning.test.ts b/src/renderer/src/config/models/__tests__/reasoning.test.ts
index 04872af7ed4..12c7923edc7 100644
--- a/src/renderer/src/config/models/__tests__/reasoning.test.ts
+++ b/src/renderer/src/config/models/__tests__/reasoning.test.ts
@@ -348,6 +348,8 @@... | 3 | 2 | 1 | [{"id": "G0", "claim": "The function under test (isInterleavedThinkingModel) is deprecated, so the newly added test cases for it are unnecessary and should not be added.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Test cases should be added for isFun... | null |
CherryHQ__cherry-studio__13809 | CherryHQ/cherry-studio | 13,809 | defect | 2919d093c7fd2ad688fa7fef306eca7bf59c66bb | 1571b7b75840e6ac502817c52d20bad02f83a7c1 | fix(aiCore): remove openai-compatible providers from PDF native support list | ### What this PR does
Before this PR:
- `PDF_NATIVE_PROVIDER_TYPES` included `'openai'`, `'new-api'`, and `'gateway'` types, assuming all OpenAI-compatible providers support native PDF file input via the `file` part type.
- Sending a PDF to providers like Moonshot/Kimi (which have `type: 'openai'`) resulted in a 400 e... | diff --git a/src/renderer/src/aiCore/plugins/__tests__/pdfCompatibilityPlugin.test.ts b/src/renderer/src/aiCore/plugins/__tests__/pdfCompatibilityPlugin.test.ts
index d9d51d70565..110361da970 100644
--- a/src/renderer/src/aiCore/plugins/__tests__/pdfCompatibilityPlugin.test.ts
+++ b/src/renderer/src/aiCore/plugins/__te... | 1 | 1 | 1 | [{"id": "G0", "claim": "new-api providers may route to models that cannot handle file parts, so the pull request should additionally handle the model endpoint for new-api instead of treating the whole provider type as natively PDF-capable.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ... | null |
CherryHQ__cherry-studio__13898 | CherryHQ/cherry-studio | 13,898 | defect | 536025c8cf031b91fac8403244be9ea93e5ace3c | c9dcc3bfc91afdce15efafeba77750b5b6593b9d | fix: reset migrator state before each migration retry | <!-- Template from https://github.com/kubevirt/kubevirt/blob/main/.github/PULL_REQUEST_TEMPLATE.md?-->
<!-- Thanks for sending a pull request! Here are some tips for you:
1. Consider creating this PR as draft: https://github.com/CherryHQ/cherry-studio/blob/main/CONTRIBUTING.md
-->
<!--
⚠️ Important: Redux/In... | diff --git a/src/main/data/migration/v2/core/MigrationEngine.ts b/src/main/data/migration/v2/core/MigrationEngine.ts
index 46328f054d5..9aadeafa0ae 100644
--- a/src/main/data/migration/v2/core/MigrationEngine.ts
+++ b/src/main/data/migration/v2/core/MigrationEngine.ts
@@ -152,6 +152,10 @@ export class MigrationEngine {... | 6 | 5 | 4 | [{"id": "G0", "claim": "reset() should be declared abstract in BaseMigrator instead of a no-op default, so the compiler forces every migrator to implement it rather than relying on developer memory.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "McpServe... | null |
CherryHQ__cherry-studio__13940 | CherryHQ/cherry-studio | 13,940 | defect | 0d4a43d53bf96efac6b8d1ef615fdb301f5a4b32 | 23a59cb130977780a84161305b6289af958129fd | fix(migration): resolve dangling parentId in ChatMigrator for deleted user messages | ### What this PR does
Before this PR:
ChatMigrator produces foreign key violations (`message.parentId → message`) when the source data contains multi-model response messages whose originating user message has been deleted. This blocks the entire v2 migration with the error:
```
Foreign key check failed: 2 violation(s... | diff --git a/src/main/data/migration/v2/migrators/ChatMigrator.ts b/src/main/data/migration/v2/migrators/ChatMigrator.ts
index 8bc9eea66f8..6a274faa192 100644
--- a/src/main/data/migration/v2/migrators/ChatMigrator.ts
+++ b/src/main/data/migration/v2/migrators/ChatMigrator.ts
@@ -457,6 +457,22 @@ export class ChatMigra... | 10 | 5 | 0 | [{"id": "G0", "claim": "The validate-check comment says \"self-references\" but the SQL checks for dangling foreign keys, so the comment should be reworded to \"references\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The prepareTopic docstrin... | null |
CherryHQ__cherry-studio__14032 | CherryHQ/cherry-studio | 14,032 | defect | da3ce01df3226399d3b457429f11169bbf3b74f3 | a88da793d4d029a32551293b20effb616f062065 | feat(aiCore): add createAgent factory for ToolLoopAgent with plugin pipeline | ### What this PR does
Before this PR:
Using `ToolLoopAgent` required calling AI SDK directly, bypassing aiCore's provider resolution (extensionRegistry) and plugin pipeline (middleware, reasoning extraction, etc.).
After this PR:
`@cherrystudio/ai-core` exports a `createAgent()` factory that resolves the model via ex... | diff --git a/.changeset/aicore-create-agent.md b/.changeset/aicore-create-agent.md
new file mode 100644
index 00000000000..1db85bda671
--- /dev/null
+++ b/.changeset/aicore-create-agent.md
@@ -0,0 +1,5 @@
+---
+'@cherrystudio/ai-core': patch
+---
+
+Add `createAgent` factory and `PluginEngine.resolveModel` for ToolLoop... | 10 | 9 | 3 | [{"id": "G0", "claim": "RuntimeExecutor.resolveModel was escalated from private to public, exposing an internal implementation detail as public API that lets any consumer bypass the plugin pipeline's middleware application; keep it private and expose the plugin factory instead.", "category": "design", "verdict": "suppo... | null |
CherryHQ__cherry-studio__14036 | CherryHQ/cherry-studio | 14,036 | defect | 2e7b605b5b8ba1640017baf011bf7906646de47b | 462d839bfb3f7d3d87f5a0117fdb99203cc4bea1 | fix(models): add Ollama gemma4 format support for capability detection | ### What this PR does
Before this PR:
- Gemma 4 model capability detection only worked for GenAI format (`gemma-4-*`)
- Users deploying Gemma 4 locally via Ollama (`gemma4:*` format) did not get correct capability detection for reasoning, vision, and function calling
After this PR:
- Both GenAI (`gemma-4-*`) and Olla... | diff --git a/src/renderer/src/config/models/__tests__/reasoning.test.ts b/src/renderer/src/config/models/__tests__/reasoning.test.ts
index c5161318718..90a69a5cdf0 100644
--- a/src/renderer/src/config/models/__tests__/reasoning.test.ts
+++ b/src/renderer/src/config/models/__tests__/reasoning.test.ts
@@ -2771,3 +2771,62... | 3 | 2 | 1 | [{"id": "G0", "claim": "The two duplicated `describe('Gemma 4 Models')` blocks in vision.test.ts should be removed (keeping the first, which has the Gemma 2 regression test), and a Gemma 3 positive regression test should be added because the vision regex change could affect Gemma 3 matching.", "category": "testing", "v... | null |
CherryHQ__cherry-studio__14112 | CherryHQ/cherry-studio | 14,112 | defect | 8eee600dd0a3bb89b06d60f18c22c504e6bd7404 | ceb1ea65fd0f7217d1926fa50f8b8b1a7de281bb | hotfix(channels): toggle single channel no longer reconnects all channels | ### What this PR does
Before this PR:
Toggling a single channel's active state (on/off) in the frontend triggers `syncAgent()`, which disconnects **all** channels for that agent and reconnects only the active ones. This causes unnecessary reconnection churn for unrelated channels.
After this PR:
The `updateChannel`... | diff --git a/src/main/apiServer/routes/agents/handlers/agents.ts b/src/main/apiServer/routes/agents/handlers/agents.ts
index 7c1a75fb426..60d14d23d35 100644
--- a/src/main/apiServer/routes/agents/handlers/agents.ts
+++ b/src/main/apiServer/routes/agents/handlers/agents.ts
@@ -18,7 +18,6 @@ function syncSchedulerIfNeede... | 3 | 2 | 0 | [{"id": "G0", "claim": "Calling syncChannel on a channel already deleted from the DB (in removeOrphanChannel in handlers.ts and claw.ts) is semantically unintuitive; consider extracting a disconnectChannel(channelId) or adding a comment to syncChannel explaining that on a deleted channel the effect is disconnect-only."... | null |
CherryHQ__cherry-studio__14172 | CherryHQ/cherry-studio | 14,172 | defect | 4c264de12f4920c79469272c0d274534141ea8ec | 791293cd1eaa45e82bc7bf1d3b908457826a80a2 | fix(knowledge): support Ollama knowledge embeddings | ### What this PR does
Before this PR:
- Creating a knowledge base with an Ollama embedding model such as `nomic-embed-text` could fail during initialization with `Cannot read properties of undefined (reading '0')`.
After this PR:
- Knowledge base initialization keeps using `@cherrystudio/embedjs-ollama` instead of a ... | diff --git a/src/main/knowledge/embedjs/embeddings/EmbeddingsFactory.ts b/src/main/knowledge/embedjs/embeddings/EmbeddingsFactory.ts
index e9f459fd6c7..cf2fb74d1fe 100644
--- a/src/main/knowledge/embedjs/embeddings/EmbeddingsFactory.ts
+++ b/src/main/knowledge/embedjs/embeddings/EmbeddingsFactory.ts
@@ -1,9 +1,9 @@
im... | 3 | 2 | 1 | [{"id": "G0", "claim": "The adapter forces `truncate` to false for every /api/embed request (since EmbeddingsFactory never passes an override), changing the previous behavior from truncating long inputs to failing when a chunk exceeds the model context window, so `truncate` should be left undefined unless the caller ex... | null |
CherryHQ__cherry-studio__14229 | CherryHQ/cherry-studio | 14,229 | defect | a39073eddc2561660f81847e50c34d02d79337a1 | 13f5946db21dc7264d8ed8505687987136ba3ba0 | feat(migration): migrate llm model preferences to v2 with UniqueModelId format | ### What this PR does
Before this PR:
5 legacy Redux `llm` slice fields (`defaultModel`, `topicNamingModel`, `quickModel`, `translateModel`, `quickAssistantId`) were still pending in the v2 migration classification, so they had no complete migration path into v2 Preferences.
After this PR:
- 4 legacy model fields a... | diff --git a/packages/shared/data/bootConfig/bootConfigSchemas.ts b/packages/shared/data/bootConfig/bootConfigSchemas.ts
index 08923905d7f..35f5a82e07a 100644
--- a/packages/shared/data/bootConfig/bootConfigSchemas.ts
+++ b/packages/shared/data/bootConfig/bootConfigSchemas.ts
@@ -1,6 +1,6 @@
/**
* Auto-generated boo... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new preference key should be named 'feature.quick_assistant.assistant_id' rather than 'feature.quick_assistant.id' — quick_assistant is the feature name, and the 'assistant' part should not be omitted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.