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
Modernizr__Modernizr__2669
Modernizr/Modernizr
2,669
defect
fa15c642f362aed20c1cbc363b55776e2c912f4b
bd2a6149fdbf55d49422ceb7dc9317ccc8c151c4
Mediastream feature detect
With reference to issue #2577 @Markel @rejas @patrickkettner Please let me know if there are any fixes to be done
diff --git a/feature-detects/mediastream.js b/feature-detects/mediastream.js new file mode 100644 index 0000000000..c1a5b03ac5 --- /dev/null +++ b/feature-detects/mediastream.js @@ -0,0 +1,20 @@ +/*! +{ + "name": "MediaStream API", + "property": "mediarecorder", + "caniuse": "mediarecorder", + "tags": ["mediarecord...
4
4
1
[{"id": "G0", "claim": "Add \"media\" as a tag to the mediastream detect's metadata, alongside \"mediarecorder\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move feature-detects/mediastream.js into a subdirectory (rejas agreed on feature-detec...
null
Modernizr__Modernizr__2671
Modernizr/Modernizr
2,671
defect
fa15c642f362aed20c1cbc363b55776e2c912f4b
e37e55b0bc75cd943c6945099c09cf52d113cafe
Add a|area[ping] detection
Fixes #2484
diff --git a/feature-detects/a/aping.js b/feature-detects/a/aping.js new file mode 100644 index 0000000000..d8914ee6d7 --- /dev/null +++ b/feature-detects/a/aping.js @@ -0,0 +1,19 @@ +/*! +{ + "name": "a[ping] Attribute", + "property": "aping", + "caniuse": "ping", + "tags": ["media", "attribute"], + "builderAlias...
1
1
0
[{"id": "G0", "claim": "Add an \"authors\" tag to the metadata of the new a[ping] and area[ping] feature detects.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Mojang__brigadier__124
Mojang/brigadier
124
defect
a6c4baa1b639da62f7f0df62aa61de713e2136c8
f3311ac2a988633da90095e01aca4daf49cc6dc0
Fix wrong redirect behavior (MC-256419)
## Overview Brigadier set the variable `foundCommand` to true [HERE](https://github.com/Mojang/brigadier/blob/master/src/main/java/com/mojang/brigadier/CommandDispatcher.java#L234) even if no `Command<S>` was executed, and this cause a serious problem. An example to this is in minecraft: if you execute the comman...
diff --git a/src/main/java/com/mojang/brigadier/CommandDispatcher.java b/src/main/java/com/mojang/brigadier/CommandDispatcher.java index ca24830ba..bb69c4e15 100644 --- a/src/main/java/com/mojang/brigadier/CommandDispatcher.java +++ b/src/main/java/com/mojang/brigadier/CommandDispatcher.java @@ -231,7 +231,6 @@ public ...
1
1
1
[{"id": "G0", "claim": "`foundCommand` should still be set to true when a redirect modifier's `apply()` returns zero results, as the removed line did so that cases like `/execute as` with an empty selector do not produce an error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
Molunerfinn__PicGo__1405
Molunerfinn/PicGo
1,405
defect
43a21de38097b4c8d8c1e82f6e4aff8953e00071
37e91927d54a4c4de7298f68cb7444cedb748c49
:bug: Fix(gui): migrate renderer electron access to preload bridge
## Summary - migrate renderer-side Electron and Node runtime access to the preload `bridgeApi` - enable `contextIsolation`, wire all windows to preload, and bundle preload i18n usage so sandboxed preload can load successfully - align renderer bridge tests with the new preload bridge access pattern ## Testing - pnpm ch...
diff --git a/electron.vite.config.ts b/electron.vite.config.ts index d1efc5714..d0a521c77 100644 --- a/electron.vite.config.ts +++ b/electron.vite.config.ts @@ -1,7 +1,5 @@ import { defineConfig, externalizeDepsPlugin } from 'electron-vite' import vue from '@vitejs/plugin-vue' -// temp for webUtils -import electronRe...
3
2
2
[{"id": "G0", "claim": "In the preload `ipc.once` wrapper, `untrackListener` runs only after `listener(...args)` returns, so if the listener throws the entry stays in `listenerMap` (stale mapping/memory leak and potentially incorrect behavior for later `off` calls); it should be wrapped in try/finally so `untrackListen...
null
MongoEngine__mongoengine__1020
MongoEngine/mongoengine
1,020
defect
5fa5284b5876a6af88ef78e0fab8065fea80b20b
dfc7f35ef1717049a2d26d1bf5a9754f016ae4de
improve _created status when switch collection and db
this feature is useful when we update the switched collection and want to send signals. e.g: we have a template collection named "user", we have collections create from "user" named "user__1","user__2","user__N". when we update "user__N", we have to set self._created = False after call `switch_collection()`, this i...
diff --git a/AUTHORS b/AUTHORS index f64093d81..42082278a 100644 --- a/AUTHORS +++ b/AUTHORS @@ -224,3 +224,5 @@ that much better: * Matthieu Rigal (https://github.com/MRigal) * Charanpal Dhanjal (https://github.com/charanpald) * Emmanuel Leblond (https://github.com/touilleMan) + * Breeze.Kay (https://github.com/...
4
4
2
[{"id": "G0", "claim": "The pull request should include a test covering exactly the described switch_db/switch_collection _created scheme (and the test_sharing_connections test should also check the keep_created flags), otherwise it cannot be merged.", "category": "testing", "verdict": "supported", "priority": "P1", "s...
null
MongoEngine__mongoengine__1237
MongoEngine/mongoengine
1,237
defect
b32006441847298405f5be7711477a88163ae064
eb6edce8cd583c2cc29afb1c393a34a7791a1872
Raise TypeError when `__in`-operator used with a Document
Currently doing a query like `BlogPost.objects(authors__in=author).count()`, where `author` is a single MongoEngine-`Document`, raises an obscure error: ``` raise ValidationError(message, errors=errors, field_name=field_name) mongoengine.errors.ValidationError: u'id' is not a valid ObjectId, it must be a 12-byte input...
diff --git a/mongoengine/queryset/transform.py b/mongoengine/queryset/transform.py index 1f18c4295..0708e0684 100644 --- a/mongoengine/queryset/transform.py +++ b/mongoengine/queryset/transform.py @@ -4,6 +4,7 @@ from bson import SON from mongoengine.base.fields import UPDATE_OPERATORS +from mongoengine.base import...
4
4
2
[{"id": "G0", "claim": "The in/nin/all/near operators should raise a TypeError for any non-iterable value, not just for a BaseDocument, with the special BaseDocument case (which is iterable but misused here) kept and commented.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
MongoEngine__mongoengine__1497
MongoEngine/mongoengine
1,497
defect
5f43c032f2778af7f9c13c32c8cec4e7756569d6
ffbb2c96896a184032807ab00dbcc0ca89ece77a
added a feature to save object data in order
I'm so sorry that I closed #1494 because I remove remote branch of previous PR by mistake. I corrected the things that you mentioned. Cloud you please review this patch, @wojcikstefan?
diff --git a/mongoengine/dereference.py b/mongoengine/dereference.py index 59204d4d6..c11449b9b 100644 --- a/mongoengine/dereference.py +++ b/mongoengine/dereference.py @@ -1,3 +1,4 @@ +from collections import OrderedDict from bson import DBRef, SON import six @@ -201,6 +202,10 @@ def _attach_objects(self, items, d...
9
4
3
[{"id": "G0", "claim": "The tests should be expanded to verify that the ordered document is actually stored in order in the database (queried via raw PyMongo with CodecOptions(document_class=OrderedDict)) and that the order is maintained after doc.reload().", "category": "testing", "verdict": "supported", "priority": "...
null
MongoEngine__mongoengine__1858
MongoEngine/mongoengine
1,858
defect
9ad959a47882f2ee4c745dbdef85fd7aea0e8c66
157589f670a5dc13c091fcd8a08e62399e00878b
Fix index creation error that was swallowed by hasattr under python2
Fixes #1688 A lot of things are happening when calling hasattr(collection, 'objects'), and since hasattr swallows any exception under python2, it could hide nasty things, including index creation errors
diff --git a/mongoengine/dereference.py b/mongoengine/dereference.py index 18b365ccd9..7d1ca35b86 100644 --- a/mongoengine/dereference.py +++ b/mongoengine/dereference.py @@ -133,7 +133,11 @@ def _fetch_objects(self, doc_type=None): """ object_map = {} for collection, dbrefs in self.reference...
1
1
1
[{"id": "G0", "claim": "CI fails with a linter error (unexpected indentation) on the lines the pull request adds to _fetch_objects in mongoengine/dereference.py, so the added code should be reformatted to pass the linter.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
MongoEngine__mongoengine__1976
MongoEngine/mongoengine
1,976
defect
2c6a744848380054cfd4697daef2b51126c5e769
56d9f7a8af1b628c52c69dfa23a6d4374d2a2ac3
Bring back _cls and _id fields just as they return in pymongo
Closes https://github.com/MongoEngine/mongoengine/issues/1973 and should align the logic to work the same as in pymongo when using as_pymongo
diff --git a/mongoengine/queryset/base.py b/mongoengine/queryset/base.py index 862a18269..8ae884222 100644 --- a/mongoengine/queryset/base.py +++ b/mongoengine/queryset/base.py @@ -188,7 +188,7 @@ def __getitem__(self, key): ) if queryset._as_pymongo: - return queryset._ge...
2
2
1
[{"id": "G0", "claim": "Keep part of the removed _get_as_pymongo logic so that .only('field1').as_pymongo() still returns the \"id\" (consistent with mongoengine .only) and .exclude('id', 'field1').as_pymongo() does not return the \"id\", and make sure both cases are tested.", "category": "correctness", "verdict": "sup...
null
MongoEngine__mongoengine__2031
MongoEngine/mongoengine
2,031
defect
827de7634596806b70ee28a56bf15cad29b2ad33
8bcf62fa6db224c95c14b1e046b8c45716f52ba0
Fail fast when db name is invalid
So, the issue is that if you specify db name incorrectly, mongoengine doesn't fail immediately, instead it fails upon your first attempt to store/read anything. Which is not obvious and could create some impression that there is something wrong with the document, because saving the document failed in the first place, n...
diff --git a/AUTHORS b/AUTHORS index 21b0ec64b3..45a754cc38 100644 --- a/AUTHORS +++ b/AUTHORS @@ -251,3 +251,4 @@ that much better: * Gleb Voropaev (https://github.com/buggyspace) * Paulo Amaral (https://github.com/pauloAmaral) * Gaurav Dadhania (https://github.com/GVRV) + * Yurii Andrieiev (https://github.com/y...
4
3
0
[{"id": "G0", "claim": "The new import should use six.string_types instead of bson.string_type to stay consistent with the rest of the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The TypeError message should stay closer to pymongo's...
null
MongoEngine__mongoengine__2103
MongoEngine/mongoengine
2,103
defect
a4fe091a513a9fdc91ce2e45670b543643380b96
8e69008699d20268956b6c9f3b2406e5d110c6d8
Drop support for positional arguments when instantiating a document
For example, if you had the following class: ```py class Person(Document): name = StringField() age = IntField() ``` You could instantiate an object of such class by doing one of the following: 1. `new_person = Person('Tom', 30)` 2. `new_person = Person('Tom', age=30)` 3. `new_person = Person(name='T...
diff --git a/docs/changelog.rst b/docs/changelog.rst index e82cc1246..3754b010a 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,8 @@ Changelog Development =========== - (Fill this out as you fix issues and develop your features). +- BREAKING CHANGE: Drop support for positional arguments when inst...
3
3
1
[{"id": "G0", "claim": "The auto-id fallback loop should use itertools.count() with a for loop instead of a manual counter with a while True loop.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "existing_db_fields should be a set comprehension in...
null
MongoEngine__mongoengine__2112
MongoEngine/mongoengine
2,112
defect
2769967e1e3390d1c99bd666f846a3fbaa0061c2
9d061fd18ceb0a4493b2e3df1f5961d2ceed7f41
Better management of the automatic "_cls" field
See the detailed commit messages. I tried to provide all the context/rationale in there.
diff --git a/docs/changelog.rst b/docs/changelog.rst index d053a8db2d..77ff22074c 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,10 @@ Changelog Development =========== - (Fill this out as you fix issues and develop your features). +- BREAKING CHANGE: "class_check" and "read_preference" keyword ...
3
1
0
[{"id": "G0", "claim": "bagerard asks the author to elaborate the use case for the new clear_cls_query method, suggesting that querying on the parent class would be the same and more explicit.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The two breaking...
null
MongoEngine__mongoengine__2193
MongoEngine/mongoengine
2,193
defect
138e759161380097c10421265920ff4cf431352c
fec7a711be49b4a7a4fda08450526534202585f5
Add ability for dict keys to have "." or "$" in MongoDB >= 3.6
Starting in MongoDB >= 3.6, it is valid for dictionary keys to have "$" or "." in them as long as they don't start with "$" [Source](https://docs.mongodb.com/manual/reference/limits/#Restrictions-on-Field-Names) Relevant Issue: #1594 (Currently closed, but should be re-opened)
diff --git a/mongoengine/fields.py b/mongoengine/fields.py index f8f527a333..c3d9374077 100644 --- a/mongoengine/fields.py +++ b/mongoengine/fields.py @@ -41,6 +41,7 @@ from mongoengine.connection import DEFAULT_CONNECTION_NAME, get_db from mongoengine.document import Document, EmbeddedDocument from mongoengine.erro...
1
1
1
[{"id": "G0", "claim": "Test cases are missing for the pull request's new MONGODB >= 3.6 key-validation behaviour: a test for the new branch in DictField.validate that rejects keys starting with \"$\", and a test that a dict with dot and dollar keys can be stored when MONGO >= 3.6.", "category": "testing", "verdict": "...
null
MongoEngine__mongoengine__2256
MongoEngine/mongoengine
2,256
defect
7c533394fdbc267ce6588e43c11d47a0d62a9de2
a3f9016ae938a91871657373ade2970a0fc157d1
Allow setting read_concern
Expose the read_concern setting through a read_concern method on the QuerySet and a read_concern argument on the update method. Associated issue: https://github.com/MongoEngine/mongoengine/issues/2255
diff --git a/mongoengine/context_managers.py b/mongoengine/context_managers.py index 1592ceef4..6891e21da 100644 --- a/mongoengine/context_managers.py +++ b/mongoengine/context_managers.py @@ -14,6 +14,7 @@ "no_sub_classes", "query_counter", "set_write_concern", + "set_read_write_concern", ) @@ -...
4
3
1
[{"id": "G0", "claim": "set_read_write_concern should take the read concern as a dict rather than a ReadConcern instance, to be consistent with the write_concerns dict argument.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added for se...
null
MongoEngine__mongoengine__2401
MongoEngine/mongoengine
2,401
defect
9f82a02ddf412872cb4411663946363a0ec14826
bf1d04e399062a77580385ea452cb19b2a5f4e97
Bugfix #2154
Fix for https://github.com/MongoEngine/mongoengine/issues/2154 Inside the function def `_save_update()`, we have the logic that adds the shard key to the query. This is not only needed for `update_one()` of the pymongo lib, but also for `find_one_and_replace()`, which is used in `_save_create()`. Therefore it mak...
diff --git a/mongoengine/document.py b/mongoengine/document.py index 4a57d511d..801c8df80 100644 --- a/mongoengine/document.py +++ b/mongoengine/document.py @@ -464,9 +464,9 @@ def _save_create(self, doc, force_insert, write_concern): # insert_one will provoke UniqueError alongside save does not ...
3
2
1
[{"id": "G0", "claim": "A test case should be added in tests/document/test_instance.py covering saving a (new) document with a shard key, as the PR's save-create change is untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The changelog should be ...
null
MongoEngine__mongoengine__2477
MongoEngine/mongoengine
2,477
defect
d033e3b133a6678fe49647510c696f3744e3ee7a
80a3b1c88cd8747b7fe4cd7203a3f2d654b7df0e
Feature: "allow_disk_use"
Fixes #2468
diff --git a/mongoengine/queryset/base.py b/mongoengine/queryset/base.py index c4a7e7710..c5193ed9d 100644 --- a/mongoengine/queryset/base.py +++ b/mongoengine/queryset/base.py @@ -64,6 +64,7 @@ def __init__(self, document, collection): self._ordering = None self._snapshot = False self._timeo...
2
2
1
[{"id": "G0", "claim": "The docstring of the new allow_disk_use method misspells \"wether\" where it should read \"whether\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new allow_disk_use method has no test making use of it, so a basic tes...
null
MongoEngine__mongoengine__2521
MongoEngine/mongoengine
2,521
defect
cc85165b0c6d10ce87efd5f3046c4d25d071e294
51dc48ee8f8c0cd02f87c5b6a6565f0c56dd36bf
implement Decimal128Field
Perhaps this have been named `NumberDecimalField`? updates #1981 ping @janste63
diff --git a/mongoengine/fields.py b/mongoengine/fields.py index 7b2fe47ff..e6267445b 100644 --- a/mongoengine/fields.py +++ b/mongoengine/fields.py @@ -12,6 +12,7 @@ import gridfs import pymongo from bson import SON, Binary, DBRef, ObjectId +from bson.decimal128 import Decimal128 from bson.int64 import Int64 from...
4
3
2
[{"id": "G0", "claim": "The separate int and float isinstance checks in Decimal128Field.to_mongo should be combined into one condition.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new Decimal128Field needs test coverage; please add a dedi...
null
MongoEngine__mongoengine__2569
MongoEngine/mongoengine
2,569
defect
5fe9436ea7bd2f47812b017104285210848a1276
9bc8e7b3b78c5f8415771633a13444f0aef9f2d2
Transactions via an internal global session var
An implementation of one of my proposals, resolves #2248 - [Add support for transactions using global sessions](https://github.com/MongoEngine/mongoengine/issues/2248#issuecomment-908504024) * Maintain state of session when entering and exiting transaction * Update any collection methods used in mongoengine that a...
diff --git a/.github/workflows/start_mongo.sh b/.github/workflows/start_mongo.sh index 800004c87..8bf8ca8fb 100644 --- a/.github/workflows/start_mongo.sh +++ b/.github/workflows/start_mongo.sh @@ -5,5 +5,6 @@ MONGODB=$1 mongodb_dir=$(find ${PWD}/ -type d -name "mongodb-linux-x86_64*") mkdir $mongodb_dir/data -$mong...
17
13
6
[{"id": "G0", "claim": "At minimum the docs would need to mirror pymongo's statement that sessions are neither fork-safe nor thread-safe.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The global `_session` is not thread-safe: running run_in_trans...
null
MongoEngine__mongoengine__2578
MongoEngine/mongoengine
2,578
defect
811dc12db58f5379d5350c7d413cd8f093910d85
04a049f4ce2c8538d21f8a8c754e84d50ba91478
Update with aggregation pipeline
Update with aggregation pipeline I add support to update with aggregation pipeline The only option to do that is create new parameter to the update query and enforce use __raw__ if someone find way to use update with aggregation with mongoengine it will be brilliant thanks https://docs.mongodb.com/manu...
diff --git a/docs/guide/querying.rst b/docs/guide/querying.rst index 1cf5ec3c6..7471aa158 100644 --- a/docs/guide/querying.rst +++ b/docs/guide/querying.rst @@ -218,12 +218,36 @@ However, this doesn't map well to the syntax so you can also use a capital S ins Raw queries ----------- -It is possible to provide a raw...
2
1
1
[{"id": "G0", "claim": "The .github/workflows/github-actions.yml file needs to be updated at line 56 to use PYMONGO_3_9 instead of PYMONGO_3_6.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The aggregation_update=True parameter is not really needed a...
null
MongoEngine__mongoengine__2614
MongoEngine/mongoengine
2,614
defect
8af88780370920389a9436682c5029f32d888631
389fe1ef62efb1edfd03aa393b10aa05797a7e72
pymongo 4.0 support
This change follows up on top of #2600 and includes the following updates: - merge master - fixes for `GEOHAYSTACK` removal - fixes for `max_pool_size` move - fixes for `map_reduce` and `inline_map_reduce` removals - fixes for `eval` removal - fall back to the `pythonLegacy` UUID encoding for compatability with...
diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 66533c13d..d75bdb1a0 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -21,6 +21,7 @@ env: PYMONGO_3_9: 3.9 PYMONGO_3_11: 3.11 PYMONGO_3_12: 3.12 + PYMONGO_4_0: 4.0 ...
2
2
1
[{"id": "G0", "claim": "The pymongo>=4 branch should be tested separately from the legacy branch so the test actually reaches db.list_collection_names() instead of calling get_db() unconditionally inside one pytest.raises block.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
MongoEngine__mongoengine__2797
MongoEngine/mongoengine
2,797
defect
356e7720c1d9d638ff97f59ef36fe2c7c9b0817d
0aa8a1ecfe4ed735e0369b07af2b87490ba95166
feat: Add Timeseries Collection Support
This pull request introduces support for timeseries collections in MongoEngine, addressing issue #2661. With the addition of a 'timeseries' option in the Document meta dictionary, users can now easily create and manage timeseries collections. This enhancement aligns with MongoDB 5.0's timeseries feature, providing bett...
diff --git a/mongoengine/document.py b/mongoengine/document.py index 3fddec36d..b8837034e 100644 --- a/mongoengine/document.py +++ b/mongoengine/document.py @@ -220,6 +220,8 @@ def _get_collection(cls): # Get the collection, either capped or regular. if cls._meta.get("max_size") or cls._meta.g...
4
3
3
[{"id": "G0", "claim": "_get_timeseries_collection also creates a new collection when none exists, so its _get_... name is misleading.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request removes the InvalidCollectionError check for a...
null
MongoEngine__mongoengine__655
MongoEngine/mongoengine
655
defect
f099dc6a379e890e1cffdff6deaf6e7b32f6dbab
3faf3c84be55f709d828ea7837db988c56b0239e
Avoid to open all documents from cursors in an if stmt
Using a cursos in an if statement: ``` cursor = Collection.objects if cursor: (...) ``` Will open all documents, because there are not an `__nonzero__` method. This change check only one document (if present) and returns `True` or `False`.
diff --git a/mongoengine/queryset/base.py b/mongoengine/queryset/base.py index c2ad027eb..823bc1643 100644 --- a/mongoengine/queryset/base.py +++ b/mongoengine/queryset/base.py @@ -154,6 +154,15 @@ def __getitem__(self, key): def __iter__(self): raise NotImplementedError + def __nonzero__(self): + ...
4
4
1
[{"id": "G0", "claim": "The new __nonzero__ is wrong: a queryset containing data should be truthy regardless of cursor position, but the test (and implementation) treats a partially consumed cursor as falsy.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null
MongoEngine__mongoengine__927
MongoEngine/mongoengine
927
defect
c888e461ba290098006131c9a2bd1e2caff74874
649e631ee636019093b206dc15e4504800102e06
mark_as_changed issue
fix mark_as_changed: rm lower level changed fields otherwise may cause conflict update error this issue appears when retrieve from db ``` python In [34]: class Foo(mongoengine.Document): bar = mongoengine.DictField() ....: In [35]: Foo.objects.delete() Out[35]: 1 In [36]: foo = Foo() In [37]: foo.save(...
diff --git a/mongoengine/base/document.py b/mongoengine/base/document.py index bcd761720..6a3b6b54f 100644 --- a/mongoengine/base/document.py +++ b/mongoengine/base/document.py @@ -303,7 +303,7 @@ def to_mongo(self, use_db_field=True, fields=None): """ if not fields: fields = [] - ...
4
3
0
[{"id": "G0", "claim": "The copy of `self._changed_fields` iterated over is unexplained, and it is inconsistent to call the non-copied list's `remove` with fields taken from the copy.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Two small tests sh...
null
MontFerret__ferret__393
MontFerret/ferret
393
defect
09a7c584ebd969d13ebf2680a799ddf45dc9d1e7
95698ca3fbfbda5301991af6207416be54805df6
Make FQL keywords case-insensitive
Closes #286
diff --git a/go.mod b/go.mod index 040ad07bc..d52946afb 100644 --- a/go.mod +++ b/go.mod @@ -3,14 +3,18 @@ module github.com/MontFerret/ferret go 1.13 require ( + github.com/BurntSushi/toml v0.3.1 // indirect github.com/PuerkitoBio/goquery v1.5.0 github.com/antchfx/htmlquery v1.0.0 github.com/antchfx/xpath v1...
3
3
2
[{"id": "G0", "claim": "The PR should make namespace and function names work regardless of case (namespaces and functions on both cases).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "RegisterLib does not register the datetime functions even though...
null
MontFerret__ferret__524
MontFerret/ferret
524
defect
94f13c66af9612c093f6eb28232a113411560217
fa420a74815ee9bfb26a257966963dd90f487703
allow context cancellation in WAIT
While investigating issue https://github.com/MontFerret/ferret/issues/518, I noticed that when pressing CTRL+C during `WAIT()` would not cause the program to stop instantly, but only at the end of the duration. You can now press CTRL+C when waiting and the stopping will happen instantly. NOTE: I am not sure about th...
diff --git a/pkg/stdlib/utils/wait.go b/pkg/stdlib/utils/wait.go index d6a8cbc8e..6cd8ef601 100644 --- a/pkg/stdlib/utils/wait.go +++ b/pkg/stdlib/utils/wait.go @@ -2,6 +2,7 @@ package utils import ( "context" + "errors" "time" "github.com/MontFerret/ferret/pkg/runtime/core" @@ -10,7 +11,7 @@ import ( // ...
1
1
0
[{"id": "G0", "claim": "When the context is cancelled while waiting, Wait can return ctx.Err() instead of a newly created \"context cancelled\" error.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
MontFerret__ferret__775
MontFerret/ferret
775
defect
9b7a9a27043dd42dd0475903a99d1877aad3892f
5a6dea5fa0ec94eea65b798d56b2fe8016c92dcb
Add to_binary function
This PR adds the missing `TO_BINARY` ferret function. Let me know if there should be any changes to docs or other edits I missed :)
diff --git a/pkg/stdlib/types/lib.go b/pkg/stdlib/types/lib.go index 38e4deccd..e2bdbec50 100644 --- a/pkg/stdlib/types/lib.go +++ b/pkg/stdlib/types/lib.go @@ -14,6 +14,7 @@ func RegisterLib(ns core.Namespace) error { "TO_STRING": ToString, "TO_DATETIME": ToDateTime, "TO_ARRAY": ToArray...
3
3
0
[{"id": "G0", "claim": "The test file should use a `_test`-suffixed test package name (types_test) so the tests exercise the package's public API and encapsulation is respected.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's added cod...
null
MontFerret__ferret__800
MontFerret/ferret
800
defect
6063ebd72763475f3694917997ff77e0f5e8d87d
6bfa3942b7ca03a1cc4c0b7cc8ebeba87f0fd662
Fix critical bugs in arrays module and add comprehensive test coverage
This PR addresses several critical bugs found in the `pkg/stdlib/arrays` module and significantly improves test coverage to prevent regressions. ## Bugs Fixed ### 1. **RemoveValue** - Incorrect limit handling The `RemoveValue` function had incorrect logic for handling edge cases with the limit parameter: - **Limit of...
diff --git a/pkg/stdlib/arrays/bug_fixes_test.go b/pkg/stdlib/arrays/bug_fixes_test.go new file mode 100644 index 000000000..ab1b08477 --- /dev/null +++ b/pkg/stdlib/arrays/bug_fixes_test.go @@ -0,0 +1,195 @@ +package arrays_test + +import ( + "context" + "testing" + + "github.com/MontFerret/ferret/pkg/runtime" + + . "...
1
1
0
[{"id": "G0", "claim": "The test suite should be reorganized to follow Go idioms: move the tests for each function into a dedicated *_test.go file named after that function, group related behaviors there, and use descriptive test function names such as TestRemoveValue_Basic and TestRemoveValue_EdgeCases.", "category": ...
null
MontFerret__ferret__802
MontFerret/ferret
802
defect
053ed22ed33aabbd2da0d43fec96e692c1a1f0ce
dde8a892f82710eca80942d7b152d44ce95383ea
Add comprehensive test coverage and fix bounds checking bug in pkg/file
This PR addresses the missing test coverage in the `pkg/file` package and fixes a critical bounds checking bug discovered during testing. ## Changes Made ### Test Coverage - **Before**: 0.0% test coverage - **After**: 94.9% test coverage with 149 comprehensive test assertions - Added test files for all 5 source files...
diff --git a/pkg/file/helpers_test.go b/pkg/file/helpers_test.go new file mode 100644 index 000000000..11f6d637b --- /dev/null +++ b/pkg/file/helpers_test.go @@ -0,0 +1,111 @@ +package file + +import ( + "testing" + + . "github.com/smartystreets/goconvey/convey" +) + +func TestSkipWhitespaceForward(t *testing.T) { + Co...
1
1
1
[{"id": "G0", "claim": "The pull request's change to Source.LocationAt is not fixing a bug: treating an offset exactly at the start of a line as the start of that line is wrong, because the intended behavior is that such an offset (past the first line) belongs to the end of the previous line, so the original `i > 0` gu...
null
MontFerret__ferret__807
MontFerret/ferret
807
defect
b38083fa0d43667900efcd194ae5a0a2160ca9f7
a6e9b28d95a85e24e8814212a5eac7d372277222
Fix bugs and add comprehensive test coverage in pkg/stdlib/math
This PR fixes several critical bugs in the math package and significantly improves test coverage from 69.5% to 73.2%. ## Bugs Fixed ### 1. Min/Max/Median functions now maintain backward compatibility The `Min`, `Max`, and `Median` functions were modified to skip non-numeric values (like `None`, `False`, strings) inst...
diff --git a/pkg/stdlib/math/abs_test.go b/pkg/stdlib/math/abs_test.go index 4af1577e9..f26f1aa6a 100644 --- a/pkg/stdlib/math/abs_test.go +++ b/pkg/stdlib/math/abs_test.go @@ -36,4 +36,21 @@ func TestAbs(t *testing.T) { So(out, ShouldEqual, 5.1) }) }) + + Convey("Should return error when value is not numeric"...
2
2
2
[{"id": "G0", "claim": "Min and Max should not break backward compatibility: they should skip non-number values instead of returning None when the array contains non-number values.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Median should not break ba...
null
MontFerret__ferret__810
MontFerret/ferret
810
defect
1e5f0514bc8a4de30ce44703107a100af344f639
c5367a1815fd2fe36a2326e1c65e2945e753fe57
Fix bugs and add comprehensive test coverage for pkg/stdlib/io (91.5% coverage achieved)
This PR addresses critical bugs in the `pkg/stdlib/io` package and significantly improves test coverage from 59.6% to 91.5%, exceeding the 80% coverage requirement. ## Bug Fixes ### Fixed Critical Type Validation Bug in `parseParams` Function The main issue was in `pkg/stdlib/io/fs/write.go` where the `parseParams` ...
diff --git a/pkg/stdlib/io/fs/lib_test.go b/pkg/stdlib/io/fs/lib_test.go new file mode 100644 index 000000000..e9a0192c1 --- /dev/null +++ b/pkg/stdlib/io/fs/lib_test.go @@ -0,0 +1,40 @@ +package fs_test + +import ( + "testing" + + . "github.com/smartystreets/goconvey/convey" + + "github.com/MontFerret/ferret/pkg/runti...
1
1
1
[{"id": "G0", "claim": "parseParams must accept both TypeObject and TypeMap, since Object implements the Map interface — changing validation to only TypeObject rejects Map parameters that were previously valid.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
MontFerret__ferret__811
MontFerret/ferret
811
defect
5971ac4a713175ee65090cbb877687fd8b8c57a5
9d0451bc2c780d46bc27c1db3577f2f68d7b0a9b
Fix bugs and add comprehensive test coverage for pkg/stdlib/collections
This PR fixes bugs and significantly improves test coverage for the `pkg/stdlib/collections` package, addressing issues with the existing test suite and adding comprehensive testing for all collection functions. ## Issues Fixed ### Critical Bug Fix - **Fixed broken test in `reverse_test.go`**: The existing test was c...
diff --git a/coverage.html b/coverage.html new file mode 100644 index 000000000..90225c8e4 --- /dev/null +++ b/coverage.html @@ -0,0 +1,299 @@ + +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <title>collections: Go Coverage Report</title> + <style> + body ...
2
2
0
[{"id": "G0", "claim": "The committed coverage.html file's purpose should be explained (questioning why a generated report is in the repository).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The redundant .html coverage report file should be r...
null
MontFerret__ferret__813
MontFerret/ferret
813
defect
5971ac4a713175ee65090cbb877687fd8b8c57a5
382da1d8bdde7724d7dafb8ff2bd9950c188ea40
Fix week comparison bug and improve test coverage in datetime package
- [x] Fix week comparison bug and improve test coverage in datetime package - [x] Add comprehensive test files with proper coverage - [x] Address PR feedback from code review: - [x] Fix `additionalTests` pattern in `diff_test.go` - merge into main test slice instead of separate array - [x] Convert `helpers_test.go`...
diff --git a/pkg/stdlib/datetime/compare_test.go b/pkg/stdlib/datetime/compare_test.go index 664a610ac..d31f53623 100644 --- a/pkg/stdlib/datetime/compare_test.go +++ b/pkg/stdlib/datetime/compare_test.go @@ -98,6 +98,25 @@ func TestDateCompare(t *testing.T) { runtime.NewString("days"), }, }, + &testCase{ ...
4
4
0
[{"id": "G0", "claim": "diff_test.go should append the extra test cases directly to the main tcs slice instead of creating a separate additionalTests list.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The testCase.Do helper in helpers_test.go ...
null
MontFerret__ferret__828
MontFerret/ferret
828
defect
f1b994c65fbe0ec2b4bd3e3f90497d3af446a5aa
edb420402f363d81e1bdfacee854018c0305f546
Introduce memory management for function caching
This pull request introduces several significant refactorings and improvements to the function registry and VM internals, focusing on function collection management, error handling, and memory/register management. The main changes include a redesign of the function registry to better handle variable and fixed-arity fun...
diff --git a/pkg/compiler/internal/helpers.go b/pkg/compiler/internal/helpers.go index 5ac3e564e..d18e0b491 100644 --- a/pkg/compiler/internal/helpers.go +++ b/pkg/compiler/internal/helpers.go @@ -84,8 +84,8 @@ func getFunctionName(ctx fql.IFunctionCallContext) runtime.String { // ) // } // -// if fn, exists := ...
1
1
1
[{"id": "G0", "claim": "The call4 fallback call should pass all four arguments (arg1, arg2, arg3, arg4) to FnV instead of only three.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
MontFerret__ferret__865
MontFerret/ferret
865
defect
e6ad8c57fe838fa6f03ff223f9d697c4ba544852
a36d92fecc5cea422afd60daeb321c0efd7db467
Program serialization
This pull request adds support for JSON serialization and deserialization (marshalling and unmarshalling) of the bytecode `Program` and its related structures, ensuring that compiled programs can be round-tripped through JSON without loss of information. It also introduces a comprehensive integration test to verify thi...
diff --git a/pkg/bytecode/aggregate_plan.go b/pkg/bytecode/aggregate_plan.go index 799afef1a..f7a61227f 100644 --- a/pkg/bytecode/aggregate_plan.go +++ b/pkg/bytecode/aggregate_plan.go @@ -15,9 +15,9 @@ const ( ) type AggregatePlan struct { - Keys []runtime.String - Kinds []AggregateKind - Index map[string]int + K...
2
2
0
[{"id": "G0", "claim": "Source.UnmarshalJSON should include a nil pointer check at the beginning of the method for consistency with Program.UnmarshalJSON and a clearer error message.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The CatchTable JSON...
null
MontFerret__ferret__868
MontFerret/ferret
868
defect
e9b51313414ff19c22588e57d012c60c1bd2739c
a363d47d71f2aad38e476b5738a0889bb11200fc
Next sdk encoding
This pull request refactors and improves the encoding and decoding logic for Go structs and runtime values in the SDK. The changes focus on simplifying the code structure, improving type safety and error handling, and ensuring correct handling of deeply nested structures. Comprehensive tests have been added to verify t...
diff --git a/pkg/sdk/decode.go b/pkg/sdk/decode.go index 97e45c868..c2ed25f43 100644 --- a/pkg/sdk/decode.go +++ b/pkg/sdk/decode.go @@ -17,21 +17,11 @@ var timeType = reflect.TypeOf(time.Time{}) // Target must be a non-nil pointer. // It uses tags (ferret or json) for struct fields and supports unwrapping values tha...
3
1
1
[{"id": "G0", "claim": "Removing TestEncodeByKey drops coverage for tag edge-cases such as when both ferret and json tags are present on a field and ferret should take precedence, so a small assertion should be added to the remaining TestEncode cases to keep that behavior covered.", "category": "testing", "verdict": "u...
null
MontFerret__ferret__869
MontFerret/ferret
869
defect
b4d4b6dade9a67b62bd1aea1d733b7abd010cc41
b17e85eb38c7ebe1bf8391e6dd3db2804ab83d7d
feat: support binding and encoding of anonymous embedded structs
This pull request significantly improves the handling of anonymous embedded structs and pointers in the SDK's decoding and encoding logic. The changes ensure that embedded structs are properly bound and encoded inline, and that embedded pointers are only allocated when matching input keys are present. Comprehensive tes...
diff --git a/pkg/sdk/decode.go b/pkg/sdk/decode.go index 7b4dbaffd..35ac59f66 100644 --- a/pkg/sdk/decode.go +++ b/pkg/sdk/decode.go @@ -40,6 +40,7 @@ func bindValue(src runtime.Value, dst reflect.Value) error { if src == runtime.None { dst.Set(reflect.Zero(dst.Type())) + return nil } @@ -59,6 +60,7 @@ fu...
3
3
2
[{"id": "G0", "claim": "In bindStructEntries, the anonymous embedded pointer branch always allocates a fresh struct and overwrites any pre-existing non-nil embedded pointer, dropping previously-set embedded fields on partial updates; it should bind into the existing pointer's element and allocate only when the pointer ...
null
MontFerret__ferret__886
MontFerret/ferret
886
defect
eaddd13c1e113b11e3b24ab7e29772651303babb
6dd97ff56a4f8870afacc0f2a56e285327daae0b
refactor: rename FILTER keyword to WHEN in event handling syntax
This pull request makes a small but important change to the `filterClause` in the `FqlParser.g4` grammar file. The keyword used to start an `eventFilterClause` has been changed from `Filter` to `When`. This update likely aligns the grammar with changes in the query language's syntax or improves clarity for users.
diff --git a/pkg/parser/antlr/FqlParser.g4 b/pkg/parser/antlr/FqlParser.g4 index d355d75fa..d17d55f24 100644 --- a/pkg/parser/antlr/FqlParser.g4 +++ b/pkg/parser/antlr/FqlParser.g4 @@ -266,7 +266,7 @@ filterClause ; eventFilterClause - : Filter {p.pushImplicitCurrent()} expression {p.popImplicitCurrent()} + ...
3
1
1
[{"id": "G0", "claim": "The formatter still prints FILTER for EventFilterClause (pkg/formatter/internal/clause.go:27), so formatted queries containing WAITFOR EVENT filters become unparsable; update it to emit WHEN and consider adding a formatter test covering WAITFOR EVENT ... WHEN ....", "category": "correctness", "v...
null
MontFerret__ferret__887
MontFerret/ferret
887
defect
a3924aa7bc3b06bb76c9c89f573fe41374338c15
1f80ca1cab38ebd2d42c5fcb24e0972c32b8c494
Fix/formatter
This pull request introduces several enhancements and bug fixes to the FQL formatter, focusing on improved handling of structured literals, better multiline formatting, and more accurate inline fitting logic. The changes impact how arrays, objects, and argument lists are formatted, especially when comments or structure...
diff --git a/pkg/formatter/internal/engine.go b/pkg/formatter/internal/engine.go index 6e286bdd3..e19922000 100644 --- a/pkg/formatter/internal/engine.go +++ b/pkg/formatter/internal/engine.go @@ -7,24 +7,26 @@ import ( "github.com/MontFerret/ferret/v2/pkg/file" ) -type engine struct { - *context - trivia *tri...
4
3
2
[{"id": "G0", "claim": "Case()'s newline normalization appends \"\\n\\n\" even when expected already ends with a single \"\\n\" (producing \"\\n\\n\\n\") and its else-if branch is unreachable; it should instead leave a \"\\n\\n\" suffix untouched, append one \"\\n\" to a single trailing \"\\n\", and append \"\\n\\n\" w...
null
MontFerret__ferret__894
MontFerret/ferret
894
defect
fcd64ca70edf1c1b4fcde07be8f481776da8d64a
77ad15ad61f8b340d436aa212c24488e0549dc03
Feat/result api update
This pull request refactors the `Result` type in the Ferret query engine to provide a more ergonomic and unified API for handling query results. The changes consolidate the result types into a single struct, introduce new convenience methods, and remove the old helper functions. The update also touches related code to ...
diff --git a/Makefile b/Makefile index 24dec4109..faef3cdea 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ doc: # http://golang.org/cmd/go/#hdr-Run_gofmt_on_package_sources fmt: - go fmt ${DIR_PKG}/... ${DIR_INTEG}/... ${DIR_E2E}/... && \ + go fmt ./... && \ goimports -w -local github.com/MontFerret ${DIR...
4
4
1
[{"id": "G0", "claim": "`*it.closeCalls++` is not valid Go syntax and will fail to compile; increment the pointed-to int instead, e.g. `(*it.closeCalls)++`.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`First` returns `nil, err` on non-EOF errors ...
null
MontFerret__ferret__897
MontFerret/ferret
897
defect
70350e33a315130ce079dc5de1b790c56f30f8a2
e6dfa72a480eeb73438b1686c68039e5a399d1bc
refactor: extract CloserSet to deduplicate closer tracking
## Summary Extract the closer tracking mechanics into a new `CloserSet` type to eliminate duplication between `DeferredClosers` and `Result`. ## Changes - **New**: `CloserSet` in `pkg/vm/internal/mem/closer_set.go` - a reusable ordered, deduplicated collection of comparable `io.Closer` instances with operations: -...
diff --git a/pkg/vm/internal/mem/closer_set.go b/pkg/vm/internal/mem/closer_set.go new file mode 100644 index 000000000..536ffe137 --- /dev/null +++ b/pkg/vm/internal/mem/closer_set.go @@ -0,0 +1,91 @@ +package mem + +import ( + "errors" + "io" + "reflect" +) + +// CloserSet is an ordered, deduplicated collection of co...
2
2
0
[{"id": "G0", "claim": "Result.AdoptValue does redundant work: it calls mem.TrackedCloserOf, which already validates non-nil and comparability, and then immediately calls r.set.Add, which repeats the same reflect.TypeOf(...).Comparable() validation; the reviewer suggests removing the double-check via a plain type asser...
null
MontFerret__ferret__912
MontFerret/ferret
912
defect
160ebad6bd50f153453e120f6d909f5b83322917
4379518f2ec9b1e75835802225ff44c2a0ea94f8
feat: add range error, NewStringOf function, and enhanced type handli…
This pull request extends the runtime's ability to convert various Go types into internal `Value` representations, with a focus on better support for unsigned integers and generic maps. It also introduces a utility for creating `String` values from any type and adds a new error for out-of-range values. Some commented-o...
diff --git a/pkg/runtime/errors.go b/pkg/runtime/errors.go index cf5b4dee8..adcc3d2bd 100644 --- a/pkg/runtime/errors.go +++ b/pkg/runtime/errors.go @@ -20,6 +20,7 @@ var ( ErrTimeout = errors.New("operation timed out") ErrNotImplemented = errors.New("not implemented") ErrNotSupported ...
5
4
3
[{"id": "G0", "claim": "In the map[any]any branch of ValueOf, Errorf formats a non-string key with %q, which renders as %!q(...) and loses useful context; use %v (or convert the key) instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ErrRan...
null
MontFerret__ferret__916
MontFerret/ferret
916
defect
e4fc80863dea4d5f5506cc871548a2bb42130997
915d8662b29c7c9fc399bcf423071d414eb6c63b
refactor: added missing param options
This pull request introduces a comprehensive overhaul of how parameters are managed and passed to the engine and session layers, making parameter handling more flexible and type-safe. It adds new option constructors for setting parameters, improves merging and conversion logic, and significantly expands test coverage t...
diff --git a/compat/runtime/runtime.go b/compat/runtime/runtime.go index a0c568727..594899e2e 100644 --- a/compat/runtime/runtime.go +++ b/compat/runtime/runtime.go @@ -106,7 +106,7 @@ func toSessionOptions(o *Options) []ferret.SessionOption { params[k] = parsed } - opts = append(opts, ferret.WithSessionParam...
10
7
6
[{"id": "G0", "claim": "WithSessionParams changing from runtime.Params to map[string]any is a breaking API change for existing callers, so restore the old signature (or add a deprecated wrapper) and introduce a new name for the map variant.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "int...
null
MontFerret__ferret__917
MontFerret/ferret
917
defect
e68453ab193b499e9c45c423c7ad027953057c0c
b0c99dcdd6fa19e518d7f7071477cb959f934599
refactor: allow empty parameters in options functions
This pull request focuses on improving the robustness and flexibility of option handling in the `ferret` package by modifying how nil and empty values are treated in various option functions. The main changes ensure that passing empty maps or slices to option setters is handled gracefully (by becoming a no-op), while s...
diff --git a/engine_options.go b/engine_options.go index 27f5a79e6..6c0fdef23 100644 --- a/engine_options.go +++ b/engine_options.go @@ -3,6 +3,7 @@ package ferret import ( "fmt" "io" + "strings" "github.com/MontFerret/ferret/v2/pkg/bytecode/artifact" "github.com/MontFerret/ferret/v2/pkg/compiler" @@ -63,8 +...
4
4
4
[{"id": "G0", "claim": "WithModules() no longer returns an error when called with no modules, but the existing test TestEngineNewReturnsOptionError still asserts that New(WithModules()) fails with \"modules cannot be empty\", so the test (and any public contract/docs) should be updated to match the new no-op behavior, ...
null
MontiCore__monticore__150
MontiCore/monticore
150
defect
47040544d268674f57981a7cebd444d9e45727e1
d0de4874e56ac51a750f8dedfc000763c90e9a58
Add parentheses to pretty printer conditions (monticore/monticore#4630)
Fixes `A | B ("a")` failing in case the A alternative was used
diff --git a/monticore-generator/src/main/java/de/monticore/codegen/prettyprint/PrettyPrinterGenerationVisitor.java b/monticore-generator/src/main/java/de/monticore/codegen/prettyprint/PrettyPrinterGenerationVisitor.java index 39b4964b3f..c7202d6376 100644 --- a/monticore-generator/src/main/java/de/monticore/codegen/pr...
1
1
0
[{"id": "G0", "claim": "The test setup should call LogStub.init() instead of the LogStub.initPlusLog() the pull request introduced.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
MontiCore__monticore__168
MontiCore/monticore
168
defect
50321e229020c22778c5569682db7452406f86d9
d7195fccbd733901435a34a8ff4d8c595cfeabc8
Fix/terminal attribute order
In addition to #167 Interfaces with ast-present terminals (such as `InfixExpressions`) result in multiple attributes within the CD. The last attribute used to be kept, resulting in `BooleanAndOpExpression implements Expression <120>, InfixExpression = left:Expression operator:"&&" right:Expression;` having th...
diff --git a/monticore-generator/src/main/java/de/monticore/codegen/mc2cd/manipul/RemoveRedundantAttributesManipulation.java b/monticore-generator/src/main/java/de/monticore/codegen/mc2cd/manipul/RemoveRedundantAttributesManipulation.java index 5d46bcf3c5..46e6b46072 100644 --- a/monticore-generator/src/main/java/de/mo...
2
1
0
[{"id": "G0", "claim": "Mark the attribute-preference tie-breaking logic in isAttrPreferred as a heuristic (e.g. in a comment), since its behavior is not easy to anticipate.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Log the preference decisio...
null
MontiCore__monticore__212
MontiCore/monticore
212
defect
a7b4eaa2ffb0c535a787b9515a6da1e0dd014761
8c8e5e518d8a47f1336523bea4ccc2a71d6b3350
Fix symbol surrogate equals
Symbols should be usable without knowing that surrogates exist. A surrogate therefore loads its delegate when needed to provide access to the members of the actual symbol. For `equals(Object)`, this was so far not the case. This merge request fixes this problem. However, the fix is not straight forward. One may call...
diff --git a/monticore-generator/src/main/java/de/monticore/codegen/cd2java/_symboltable/symbol/SymbolDecorator.java b/monticore-generator/src/main/java/de/monticore/codegen/cd2java/_symboltable/symbol/SymbolDecorator.java index 29f2959d4e..4fb685294e 100644 --- a/monticore-generator/src/main/java/de/monticore/codegen/...
3
3
0
[{"id": "G0", "claim": "The default getThis() should not be added on the public ISymbol interface level; if added in each generated symbol instead it can be protected.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The generated getThis() method should n...
null
MontiCore__monticore__54
MontiCore/monticore
54
defect
b805a343731e9c60246c1f5a6a8babb734bea9f9
51b5ddf8b74f050cfcf83f96739a894d6ee11c3c
Symbol DeSer: Fix subscopes & add SymTypeExpression generation
* FIX implicit scope-spanning symbols not having their spanned scope added as subscopes to their enclosing scope (and thus remove the need for OOSymbols#Method spanning a scope) * Add DeSer generation for SymTypeExpression attributes
diff --git a/monticore-generator/src/main/java/de/monticore/codegen/cd2java/_symboltable/serialization/BITSer.java b/monticore-generator/src/main/java/de/monticore/codegen/cd2java/_symboltable/serialization/BITSer.java index f7909a6726..224cdfdcc0 100644 --- a/monticore-generator/src/main/java/de/monticore/codegen/cd2j...
3
1
0
[{"id": "G0", "claim": "The newly registered SymTypeExpression DeSer strategy is keyed only by the fully-qualified class name, so it may not work for non-qualified SymTypeExpression attribute types in the grammar.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
MontiCore__monticore__56
MontiCore/monticore
56
defect
2fd712d0ef215831caab727fb913b39a3013a662
74f11423909fcf948631595d5f36edc631b896ef
#4188 Stream Constructor Expression Revision
- Added semantic predicate to bind stream constructor together - Capitalized stream types keywords for consistency with Set expressions
diff --git a/monticore-grammar/src/main/grammars/de/monticore/expressions/StreamExpressions.mc4 b/monticore-grammar/src/main/grammars/de/monticore/expressions/StreamExpressions.mc4 index a1d04ab6cb..b382ddafc4 100644 --- a/monticore-grammar/src/main/grammars/de/monticore/expressions/StreamExpressions.mc4 +++ b/monticor...
2
2
0
[{"id": "G0", "claim": "The javadoc line should not read \"the default timing stream-type is (timed) event\" — revert to the original wording \"the default timing is (timed)\" (or use an alternative such as \"stream timing\"), since \"timing stream-type\" wrongly implies timing relates directly to streams only.", "cate...
null
MoonshotAI__checkpoint-engine__28
MoonshotAI/checkpoint-engine
28
defect
716c0dad98b1c1c42fac42539899460ae52f6cc5
c840c3462bb79c5e1e962df026716366e09894ed
feat: optimize _update_per_bucket_p2p logic
Resolve #25 Merge _update_per_bucket_p2p with _update_per_bucket. Topology-awared receiver assignment strategy implemented to make full use of bandwidth
diff --git a/checkpoint_engine/ps.py b/checkpoint_engine/ps.py index 37143df..f4225d2 100644 --- a/checkpoint_engine/ps.py +++ b/checkpoint_engine/ps.py @@ -125,6 +125,7 @@ class MemoryBufferMetaList(BaseModel): class DataToGather(MemoryBufferMetaList): host_ip: str device_uuid: str + rdma_device: str ...
19
17
3
[{"id": "G0", "claim": "The new `rdma_device` field should be declared on `MemoryBufferMetaList` instead of the `DataToGather` subclass, so every gathered meta carries it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "load_metas assumes `meta.p2p_store_...
null
MoonshotAI__checkpoint-engine__36
MoonshotAI/checkpoint-engine
36
defect
2ef05a4f41a679c980f4b01befb26c8bf2cffd2f
8585b319b3075b4324a0dbf71c84faaeff1b0c50
A more reasonable way to obtain RDMA devices
resolve: #35 _parse_NCCL_IB_HCA method added, supporting exact match( "=" ), exclude( "^" ) prefix. Port specifications( ":" ) is not supported because mooncake transfer engine doesn't support it yet. https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/env.html#id8
diff --git a/checkpoint_engine/ps.py b/checkpoint_engine/ps.py index e61acf1..f037c5a 100644 --- a/checkpoint_engine/ps.py +++ b/checkpoint_engine/ps.py @@ -303,14 +303,7 @@ def _get_rdma_devices() -> list[str]: return devices_str.split(",") # if PS_P2P_STORE_RDMA_DEVICES is not set, try to use NCCL_IB_HC...
10
10
1
[{"id": "G0", "claim": "The variable name `cnt` is unclear and the prefix-parsing loop logic is complex; rename it (e.g. `prefix_chars_processed`) and simplify the loop.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The conditional expression u...
null
MoonshotAI__checkpoint-engine__43
MoonshotAI/checkpoint-engine
43
defect
a29178282bb1b1425faf6608242d9515ac57026a
b32361545bd048579061b7ab31950f0c9573fa25
fix: force ps to quit when error occur during updating
resolve #38 send an Exception to PS when update_weights_from_ipc execute run failed. _update_per_bucket needs to ensure all processes not to get an Exception before continuing next updating iteration
diff --git a/checkpoint_engine/ps.py b/checkpoint_engine/ps.py index b2263fa..c731c87 100644 --- a/checkpoint_engine/ps.py +++ b/checkpoint_engine/ps.py @@ -991,10 +991,6 @@ def update( if self._rank not in ranks: return self._update_per_bucket(checkpoint_name, req...
9
6
2
[{"id": "G0", "claim": "In S1 the all_reduce is reached only by ranks that received an error response, so ranks without an error would hang; the all_reduce should run for all ranks regardless of error status.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "cl...
null
MoonshotAI__checkpoint-engine__56
MoonshotAI/checkpoint-engine
56
defect
e2b1e1bc06b658c5dcbed4975c1491b0fc758c9e
6071dc8c693f169959d213d9297f648b554ddb41
feat: reuse pin_memory when registering checkpoint
resolve #23 Add a reusable pin memory buffer. In the current implementation, Only one checkpoint is able to use the shared pin memory at the same time. And the pin memory buffer shape is fixed to the shape when it is used for the first time, which cannot be modified latter.
diff --git a/checkpoint_engine/ps.py b/checkpoint_engine/ps.py index 9e78703..d0a4b52 100644 --- a/checkpoint_engine/ps.py +++ b/checkpoint_engine/ps.py @@ -454,6 +454,7 @@ def _register_checkpoint( files: list[str], named_tensors: dict[str, torch.Tensor], rank: int | None = None, + shared_pin_memory:...
15
10
6
[{"id": "G0", "claim": "The docstring of register_checkpoint should document the new use_shared_memory_pool parameter, including that only one checkpoint can use the shared pool at a time and that the pool shape is fixed on first use.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "in...
null
MoonshotAI__checkpoint-engine__58
MoonshotAI/checkpoint-engine
58
defect
67b00200366bfe5b37755bb98dcee10fd5f68b22
52ea4532aa255ca8948343d0621d0efddd16fd94
feat: inplace pin memory for safetensors in /dev/shm/
resolve #60 Safetensors file have aligned storage layout. If safetensors files are in `/dev/shm`, we can pin it inplace without copying it, which will not cost double memory usage.
diff --git a/checkpoint_engine/ps.py b/checkpoint_engine/ps.py index e3f9c56..f64587c 100644 --- a/checkpoint_engine/ps.py +++ b/checkpoint_engine/ps.py @@ -1,6 +1,7 @@ import argparse import concurrent.futures import ctypes +import json import os import pickle import random @@ -18,7 +19,7 @@ import zmq from lo...
12
10
4
[{"id": "G0", "claim": "The pull request uses the private safetensors API `_getdtype`, which may change without notice in future versions; it should use the public API or implement dtype parsing independently to avoid potential breakage.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope"...
null
MoonshotAI__checkpoint-engine__68
MoonshotAI/checkpoint-engine
68
defect
888c3939e461866751eb8133bbeb3479cec5e97e
fc3de6775458ad3710e6984be68ba2794b9f65cc
hotfix: add a switch to disable inplace pinning of tensors
issue #67 Add a switch `use_inplace_pin_memory` in `ParameterServer.register_checkpoint` to control the use of in-place pin memory feature. It is `False` by default
diff --git a/checkpoint_engine/ps.py b/checkpoint_engine/ps.py index 69ec55e..9900056 100644 --- a/checkpoint_engine/ps.py +++ b/checkpoint_engine/ps.py @@ -622,6 +622,7 @@ def _register_checkpoint( named_tensors: dict[str, torch.Tensor], rank: int | None = None, shared_pin_memory: list[MemoryBuffer] | N...
3
3
0
[{"id": "G0", "claim": "The docstring for use_inplace_pin_memory misspells \"crash\" as \"crush\" and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documentation of use_inplace_pin_memory should state that this option is ...
null
MoonshotAI__checkpoint-engine__69
MoonshotAI/checkpoint-engine
69
defect
c9a2c6d25a95248497f94bce84dc6f0728bb051b
91fcc0116aeb4166ce7a3330e9f1f8abf8eb1b45
hotfix: inplace pin memory caused `cudaErrorHostMemoryAlreadyRegistered`
Resolve #67 Manually unregister the memory pinned with `cudaHostRegister` by `cudaHostUnregister` Renamed `test_pin_memory.py` to `test_reuse_pin_memory.py`
diff --git a/checkpoint_engine/ps.py b/checkpoint_engine/ps.py index 9d454b4..4827c33 100644 --- a/checkpoint_engine/ps.py +++ b/checkpoint_engine/ps.py @@ -118,6 +118,7 @@ class MemoryBuffer(BaseModel): buffer: _TorchTensor size: int metas: list[ParameterMeta] + manually_pinned: bool = False cla...
7
5
2
[{"id": "G0", "claim": "Using os.removedirs() for the test cleanup is incorrect because it fails on non-empty directories and also removes parent directories; use shutil.rmtree(dev_shm_dir) or os.rmdir(dev_shm_dir) instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
MoonshotAI__kimi-cli__1593
MoonshotAI/kimi-cli
1,593
defect
e71ae65e244e7426486139ff0a552923dec3d245
d3cd46bdbef05107335f1e97a403fb7bb8ba5ed2
feat(feedback): implement asynchronous feedback submission with error handling
## Summary - add an asynchronous \/feedback command flow that collects user feedback in the shell - submit feedback to the Kimi Code feedback endpoint with session, version, OS, and model metadata - fall back to the GitHub issues page when feedback submission cannot proceed or fails ## Testing - not run in this PR flo...
diff --git a/src/kimi_cli/ui/shell/slash.py b/src/kimi_cli/ui/shell/slash.py index 3c3b588727..55ed2c01cb 100644 --- a/src/kimi_cli/ui/shell/slash.py +++ b/src/kimi_cli/ui/shell/slash.py @@ -394,14 +394,92 @@ def changelog(app: Shell, args: str): @registry.command @shell_mode_registry.command -def feedback(app: She...
5
4
3
[{"id": "G0", "claim": "The network error path only catches aiohttp.ClientError, so an aiohttp request timeout surfacing as asyncio.TimeoutError bypasses the handler and bubbles into _run_slash_command instead of falling back to GitHub Issues.", "category": "correctness", "verdict": "supported", "priority": "P1", "scop...
null
MoonshotAI__kimi-cli__1605
MoonshotAI/kimi-cli
1,605
defect
e71ae65e244e7426486139ff0a552923dec3d245
f0df909a90a9dec9ea01f9dea919a1983ebd9c90
fix(skills): restore --skills-dir override behavior
## Summary - Reverts `resolve_skills_roots` from append to override semantics - When `--skills-dir` is provided, it replaces default user/project skill discovery instead of appending, matching 1.25.0 behavior - Multi-path support (`list[Path]`) is preserved — users can still pass multiple `--skills-dir` flags ## Conte...
diff --git a/src/kimi_cli/skill/__init__.py b/src/kimi_cli/skill/__init__.py index 942e9b374d..b5ab1eaff3 100644 --- a/src/kimi_cli/skill/__init__.py +++ b/src/kimi_cli/skill/__init__.py @@ -90,23 +90,22 @@ async def resolve_skills_roots( """ Resolve layered skill roots in priority order. - Built-in skil...
2
1
1
[{"id": "G0", "claim": "The new if/else logic makes non-empty extra_skills_dirs replace user/project discovery instead of appending, so the existing test test_resolve_skills_roots_appends_extra_dirs, which still asserts the old append behavior, would fail; the test must be updated to the new override semantics (or the ...
null
MoonshotAI__kimi-cli__1609
MoonshotAI/kimi-cli
1,609
defect
e6d1029b52951d7d266b6afcc0f07469fc13aae2
dda40de915fef275b75f2c3de7b80a17a2c91a20
feat(glob): allow Glob tool to access skills directories
## Related Issue N/A — discovered when a skill loaded from `~/.claude/skills/` attempted to use the `Glob` tool to search its own `scripts/` subdirectory and received a "Directory outside workspace" error. ## Description ### Root Cause Skills are discovered from user-level directories (e.g. `~/.claude/skills/`, `~/...
diff --git a/CHANGELOG.md b/CHANGELOG.md index cd011ea6fb..d6c06e2bf4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ Only write entries that are worth mentioning to users. - Shell: Show elapsed time and estimated token count on thinking/composing spinners — the spinner now displays `Thinking... 5s · 31...
2
1
1
[{"id": "G0", "claim": "Glob._validate_directory() compares the canonicalized candidate path against uncanonicalized skills roots, so a symlinked skill root (e.g. ~/.agents/skills -> /mnt/shared/skills) makes is_within_directory() return false and valid skill directories are still rejected as outside the workspace; eac...
null
MoonshotAI__kimi-cli__1628
MoonshotAI/kimi-cli
1,628
defect
8dcf2be7c93e764bd68c11589d1d52ba07056aa7
59217e7ae7dca12bd777fedd1c4cf499b563f9fa
refactor(skills): rename extra_skills_dirs to skills_dirs
The parameter was renamed from `skills_dir` to `extra_skills_dirs` in an earlier refactor, but the actual behavior (override, not append) was restored in #1605. The `extra_` prefix is now misleading — it implies the directories are appended to default discovery, when they actually replace it. Rename to `skills_dirs` t...
diff --git a/src/kimi_cli/app.py b/src/kimi_cli/app.py index 8dfa0f489c..b80138909d 100644 --- a/src/kimi_cli/app.py +++ b/src/kimi_cli/app.py @@ -84,7 +84,7 @@ async def create( # Extensions agent_file: Path | None = None, mcp_configs: list[MCPConfig] | list[dict[str, Any]] | None = None, - ...
3
1
0
[{"id": "G0", "claim": "The test names `test_resolve_skills_roots_empty_extra_dirs` and `test_resolve_skills_roots_extra_dirs_override_discovery` still use `extra_dirs` terminology while the test bodies now document `skills_dirs`; they should be renamed for consistency and grep-ability.", "category": "maintainability",...
null
MoonshotAI__kimi-cli__1654
MoonshotAI/kimi-cli
1,654
defect
ee3ac64560138fb93e706776c89384bd6212da18
781d24f15e1d14336a611aa39a8254cef75562c0
feat(timeout): add timeout protection for Agent tool and HTTP requests
## Description ### Problem When a sub-agent executes web search (SearchWeb/FetchURL), the HTTP request can hang indefinitely because `aiohttp.ClientSession` was created without any timeout configuration (`sock_read` defaults to `None`). This causes background agent tasks to never complete, and the user sees the CLI s...
diff --git a/src/kimi_cli/background/agent_runner.py b/src/kimi_cli/background/agent_runner.py index 75c5c351a3..3c0d055058 100644 --- a/src/kimi_cli/background/agent_runner.py +++ b/src/kimi_cli/background/agent_runner.py @@ -36,6 +36,7 @@ def __init__( subagent_type: str, prompt: str, model...
9
8
3
[{"id": "G0", "claim": "DEFAULT_BACKGROUND_TIMEOUT is defined but never used; wire it into background timeout selection (if intended) or remove it to avoid a dead constant and duplicate source of truth with Config.background.agent_task_timeout_s.", "category": "maintainability", "verdict": "supported", "priority": "P2"...
null
MoonshotAI__kimi-cli__1655
MoonshotAI/kimi-cli
1,655
defect
c6c98a8f1d7b6b9c7df796699aab391e40671629
a2c231474b007fbaeea42840ca6fa3e734dc93b5
fix(grep): replace blocking ripgrepy with async subprocess and improve robustness
## Description The Grep tool was hanging and uninterruptible because `ripgrepy.run()` used synchronous `subprocess.run()`, blocking the asyncio event loop. This PR replaces ripgrepy with direct `asyncio.create_subprocess_exec` and implements several robustness and token-efficiency improvements. ### Core fix - **Async...
diff --git a/src/kimi_cli/tools/file/grep_local.py b/src/kimi_cli/tools/file/grep_local.py index 19dd8d471b..857492fa07 100644 --- a/src/kimi_cli/tools/file/grep_local.py +++ b/src/kimi_cli/tools/file/grep_local.py @@ -4,6 +4,7 @@ """ import asyncio +import os import platform import shutil import stat @@ -14,7 +...
7
4
2
[{"id": "G0", "claim": "RG_BASE_URL downloads the rg executable over plain HTTP, which enables MITM tampering and makes the downloaded binary's integrity unverifiable; switch to HTTPS and ideally verify a pinned checksum/signature.", "category": "security", "verdict": "uncertain", "priority": "P0", "scope": "pre_existi...
null
MoonshotAI__kimi-cli__1658
MoonshotAI/kimi-cli
1,658
defect
33fac6f0d79a8662e295b3f36d17192f5245b7c5
854cee4f88f6a1eed5a13877c8107035fab2d345
fix(auth): improve OAuth error handling for skill execution and title generation (#1635)
## Related Issue Resolve #1635 ## Description OAuth users get a confusing "incorrect API KEY" error when executing skills or other operations after login. This PR improves OAuth error handling across multiple layers: ### Root cause fixes - **Title generation missing OAuth**: `generate_session_title` called `create...
diff --git a/src/kimi_cli/acp/server.py b/src/kimi_cli/acp/server.py index 899f9f214c..c859955861 100644 --- a/src/kimi_cli/acp/server.py +++ b/src/kimi_cli/acp/server.py @@ -2,6 +2,7 @@ import asyncio import sys +import time from datetime import datetime from pathlib import Path from typing import Any, NamedTup...
1
1
1
[{"id": "G0", "claim": "AUTH_EXPIRED (with the \"/login\" message) should be gated on the session actually using the Kimi Code OAuth flow, since for API-key providers a 401 means invalid credentials and the re-login prompt is misleading; otherwise keep CHAT_PROVIDER_ERROR or a generic message.", "category": "correctnes...
null
MoonshotAI__kimi-cli__1659
MoonshotAI/kimi-cli
1,659
defect
a7e14067b11d3f58f6862fabaacb36f0e06ddefc
83b0feda0ebb0890dc5d617f4d24d599044f9c90
fix(diff): prevent event loop blocking and watcher crash during file write (#1607)
## Related Issue Resolve #1607 ## Description Fix the Write/Replace tool freezing issue reported in #1607. Root cause analysis identified three problems: **A. Event loop blocking** — `build_diff_blocks()` runs Python's `difflib.SequenceMatcher` (O(n²)) synchronously inside an async function, blocking the event loop...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d504db525..5f4f14bb37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ Only write entries that are worth mentioning to users. ## Unreleased +- Core: Fix file write/replace tools freezing the event loop — diff computation (`build_diff_blocks`) is now off...
3
1
0
[{"id": "G0", "claim": "The `except Exception:` around `await self._handle_root_hub_message(msg)` can also catch `asyncio.CancelledError`, which can prevent the watcher task from being cancelled cleanly on shutdown; special-case `CancelledError` and re-raise it before logging other exceptions.", "category": "correctnes...
null
MoonshotAI__kimi-cli__1685
MoonshotAI/kimi-cli
1,685
defect
2520fa332d1a039be82a015b1606ce7f0e33e453
ee6975afc1ceb1463f72b8b658833b536ed7c759
feat(session): add /title slash command and unify session state into state.json
## Related Issue Resolve #1536 ## Description Add a `/title` slash command (alias `/rename`) for users to manually set session titles, making it easier to find sessions in `/sessions` list. Along the way, unify all session metadata into `SessionState` (`state.json`), eliminating the split between `metadata.json` and...
diff --git a/src/kimi_cli/session.py b/src/kimi_cli/session.py index e1f50df0f9..ba11e1a5ef 100644 --- a/src/kimi_cli/session.py +++ b/src/kimi_cli/session.py @@ -60,7 +60,9 @@ def subagents_dir(self) -> Path: return path def is_empty(self) -> bool: - """Whether the session has any context histor...
13
5
4
[{"id": "G0", "claim": "The migration deletes the legacy metadata.json before the migrated state is persisted to state.json, so a crash or save failure in between permanently loses the only copy of the legacy metadata; the legacy file should only be removed after state.json has been successfully written.", "category": ...
null
MoonshotAI__kimi-cli__1696
MoonshotAI/kimi-cli
1,696
defect
5832f980caa91d946ae8231fcd5e453240bcf17e
b52b870ab3c6d60cdf3ef47203f4bc005b820ee5
fix(web): add Cache-Control headers to prevent stale-asset 404s after upgrade (#1602)
## Related Issue Resolve #1602 ## Description After a CLI upgrade, browsers may heuristically cache the old `index.html` which references content-hashed asset filenames (e.g. `mermaid-VLURNSYL-D046hmAQ.js`) that no longer exist on disk. This causes 404 errors and a white screen when running `kimi web`. The existing...
diff --git a/src/kimi_cli/web/app.py b/src/kimi_cli/web/app.py index d2cb7ab9fa..013ddfa6a0 100644 --- a/src/kimi_cli/web/app.py +++ b/src/kimi_cli/web/app.py @@ -15,7 +15,9 @@ from fastapi.middleware.cors import CORSMiddleware from fastapi.middleware.gzip import GZipMiddleware from fastapi.staticfiles import Static...
4
1
1
[{"id": "G0", "claim": "The middleware stamps `Cache-Control: public, max-age=31536000, immutable` on every `/assets/` response including 404s, so in the stale-index scenario this change targets a missing hashed chunk can be negatively cached for a year and keep the UI broken until cache eviction; the immutable header ...
null
MoonshotAI__kimi-cli__1697
MoonshotAI/kimi-cli
1,697
defect
5832f980caa91d946ae8231fcd5e453240bcf17e
140d70c08bd5881133cdabe7ace8654665d9c086
fix(shell): respect terminal color capability in render_to_ansi
## Description `render_to_ansi()` hardcoded `color_system="truecolor"`, forcing Rich to emit 24-bit SGR sequences (`\e[48;2;R;G;Bm`) regardless of terminal capability. On terminals that do not support truecolor (e.g. Xshell over SSH with `TERM=xterm-256color`), these sequences are misinterpreted as individual SGR par...
diff --git a/src/kimi_cli/ui/shell/console.py b/src/kimi_cli/ui/shell/console.py index fb59fbe00f..9576260b8e 100644 --- a/src/kimi_cli/ui/shell/console.py +++ b/src/kimi_cli/ui/shell/console.py @@ -95,7 +95,6 @@ def render_to_ansi(renderable: RenderableType, *, columns: int) -> str: temp = Console( file=...
3
3
2
[{"id": "G0", "claim": "The test clears Rich internal caches via private APIs (e.g. Style._add.cache_clear()), making it brittle across Rich releases; prefer making the two tests use different bgcolor values so the color-system detection is isolated without touching private members.", "category": "testing", "verdict": ...
null
MoonshotAI__kimi-cli__1698
MoonshotAI/kimi-cli
1,698
defect
2121c87c17fde41d5dfe63e135aaaa7c1c894976
19aadbb79fa8b405eb027df4503d5f87b23363ab
feat(paste): add env vars to control paste text folding thresholds
## Description Add two environment variables (`KIMI_CLI_PASTE_CHAR_THRESHOLD`, `KIMI_CLI_PASTE_LINE_THRESHOLD`) to control when pasted text in Agent mode is folded into a single-line placeholder like `[Pasted text #1 +10 lines]`. **Motivation:** Some terminals (e.g., XShell over SSH) break CJK input methods after mul...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1081f201fd..940be3abcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Only write entries that are worth mentioning to users. ## Unreleased +- Shell: Add `KIMI_CLI_PASTE_CHAR_THRESHOLD` and `KIMI_CLI_PASTE_LINE_THRESHOLD` environment variables to contro...
5
4
1
[{"id": "G0", "claim": "The test named test_placeholderize_thresholds_respect_env_var_overrides only monkeypatches module-level constants and does not exercise the env-var parsing path introduced by the PR (reading KIMI_CLI_PASTE_*_THRESHOLD via get_env_int() at import time), so it should be renamed to match what it ch...
null
MoonshotAI__kimi-cli__1709
MoonshotAI/kimi-cli
1,709
defect
a92554d4f25ab5220764c35dd838c33431979978
12b5ec88a43ed9e1c3c3b230e79c93fb99dc17e1
fix(diff): align inline highlight offsets with tab-expanded text
<!-- Thank you for your contribution to Kimi Code CLI! Please make sure you already discussed the feature or bugfix you are proposing in an issue with the maintainers. Please understand that if you have not gotten confirmation from the maintainers, your pull request may be closed or ignored without further review du...
diff --git a/CHANGELOG.md b/CHANGELOG.md index df47f2076f..5d8a7b190f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ Only write entries that are worth mentioning to users. ## Unreleased +- Shell: Fix inline diff highlights misaligned on lines containing tabs — the sequence matcher now compares tab-...
5
5
2
[{"id": "G0", "claim": "When the similarity ratio is below the threshold the highlighted Text objects are discarded and _highlight_hunk highlights the same lines again, doubling highlighting work for unpaired lines; store them on the lines (or check the ratio before highlighting) to avoid the redundant pass.", "categor...
null
MoonshotAI__kimi-cli__1723
MoonshotAI/kimi-cli
1,723
defect
42bb38139631fde463d3f33ae663d0e306c0c8c4
8c655b0116d0650c1f3f02acfc187273c8ec24f8
feat(shell): add /undo and /fork commands with session exit resume hint
## Summary - Add `/undo` and `/fork` slash commands for session forking — `/undo` lets users pick a previous turn and fork a new session with the selected message pre-filled for re-editing; `/fork` duplicates the entire session history into a new session; original sessions are always preserved - Extract shared `sessio...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9da067ed27..97c27e4714 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,9 @@ Only write entries that are worth mentioning to users. - Core: Add `merge_all_available_skills` config option — when enabled, skills from all existing brand directories (`~/.kimi/skills/...
6
1
1
[{"id": "G0", "claim": "_copy_referenced_videos() derives fname from a regex that allows path separators and '..', so a crafted wire line like 'uploads/../../somefile' could cause copying arbitrary files outside the uploads directory (path traversal); the candidate path should be normalized and validated to stay within...
null
MoonshotAI__kimi-cli__1728
MoonshotAI/kimi-cli
1,728
defect
c36ef256c98525f32e12690d7f33f984f8bd8d4e
4a92ac13aed8a22e44efb9d57b00b22970bc69db
fix(session): tolerate corrupted startup artifacts
## Summary - tolerate malformed `context.jsonl` records during restore and revert so `--continue` / `--resume` can recover from truncated session history - skip corrupted subagent, background-task, and notification artifacts during startup recovery while falling back to defaults for recoverable state files - add regres...
diff --git a/src/kimi_cli/background/store.py b/src/kimi_cli/background/store.py index ff3552793b..07d262f944 100644 --- a/src/kimi_cli/background/store.py +++ b/src/kimi_cli/background/store.py @@ -4,7 +4,10 @@ import re from pathlib import Path +from pydantic import BaseModel, ValidationError + from kimi_cli.uti...
5
5
5
[{"id": "G0", "claim": "When runtime.json is unreadable, falling back to TaskRuntime() sets updated_at to the current time on every read, so BackgroundTaskManager.recover() never marks the task lost and it remains non-terminal indefinitely, leaking active-task slots; the fallback should use a stable timestamp such as 0...
null
MoonshotAI__kimi-cli__1730
MoonshotAI/kimi-cli
1,730
defect
42bb38139631fde463d3f33ae663d0e306c0c8c4
c2a63b0049cf25c3dfa97d6d6c7b547d9b4d427e
fix: handle subagent exceptions gracefully instead of returning None
## Summary - **Problem**: When a subagent dies from ChatProviderError, APIStatusError, or other unexpected exceptions, the error message is lost during propagation through run_soul_checked → AgentTool, often resulting in users seeing an unhelpful "None" error. Additionally, RunCancelled was incorrectly marked as "fail...
diff --git a/src/kimi_cli/background/agent_runner.py b/src/kimi_cli/background/agent_runner.py index 1625e0642e..1154c18b30 100644 --- a/src/kimi_cli/background/agent_runner.py +++ b/src/kimi_cli/background/agent_runner.py @@ -11,6 +11,7 @@ reset_current_approval_source, set_current_approval_source, ) +from ...
3
2
2
[{"id": "G0", "claim": "The new `final_response is None` failure path runs after `SubagentStop` has already been scheduled with `response=(final_response or '')`, so the stop hook can fire with an empty response even though the run is then marked failed; consider moving the `SubagentStop` scheduling after validating `f...
null
MoonshotAI__kimi-cli__1801
MoonshotAI/kimi-cli
1,801
defect
ba8573d56d0cbab3935a37a79083b47279386c97
acc626068fd2071f7468a99b1b00642c104b28d7
fix(kosong): treat think-only model responses as incomplete response errors
## Summary - When a model response contains only thinking content (ThinkPart) with no text or tool calls — typically caused by stream interruption or output token budget exhaustion during reasoning — the agent loop previously stopped silently with a normal TurnEnd, leaving users with no output and no error. - Now the `...
diff --git a/src/kimi_cli/soul/kimisoul.py b/src/kimi_cli/soul/kimisoul.py index 9365c11b9d..b0adb1b417 100644 --- a/src/kimi_cli/soul/kimisoul.py +++ b/src/kimi_cli/soul/kimisoul.py @@ -80,6 +80,7 @@ StepBegin, StepInterrupted, TextPart, + ThinkPart, ToolResult, TurnBegin, TurnEnd, @@ ...
3
3
2
[{"id": "G0", "claim": "The test's assertions are tightly coupled to the exact wording/format of the injected continuation message (including the <system> rendering) and should assert against a centralized constant or a structural property instead.", "category": "testing", "verdict": "supported", "priority": "P2", "sco...
null
MoonshotAI__kimi-cli__1822
MoonshotAI/kimi-cli
1,822
defect
001c3a49dc5cb791b4182479e6da5153afc420cc
62354966b80847946cc13b124f14c3186588de59
fix(auth): add cross-process file lock for multi-instance token refresh coordination
## Related Issue Follow-up to #1819 and #1821. Adds cross-process coordination for users running multiple kimi-cli instances simultaneously. ## Description Multiple kimi-cli instances (terminal + VS Code + web) share `~/.kimi/credentials/kimi-code.json`. Without coordination, two instances can refresh simultaneously...
diff --git a/src/kimi_cli/auth/oauth.py b/src/kimi_cli/auth/oauth.py index 5c8de336ba..1d039ee8b0 100644 --- a/src/kimi_cli/auth/oauth.py +++ b/src/kimi_cli/auth/oauth.py @@ -4,8 +4,10 @@ import json import os import platform +import random import socket import sys +import tempfile import time import uuid impor...
7
4
2
[{"id": "G0", "claim": "In the OAuthUnauthorized branch of _refresh_tokens, delete_tokens(ref) runs before the in-memory cleanup, so if file deletion raises (e.g. a locked credentials file on Windows or a transient unlink race) the revoked token is left in _access_tokens and later requests can keep using invalid OAuth ...
null
MoonshotAI__kimi-cli__1826
MoonshotAI/kimi-cli
1,826
defect
b1545b532f6c7ce3b39b137708c99c9f35bf43d1
0e59861550db0c63ca3ce845f1551f740ac64975
feat(shell): add blocking update gate on startup
## Summary - Add a blocking update gate before interactive shell startup: when a newer version is cached locally (from the existing background version check), a full-screen prompt appears offering the user three choices: - `[Enter]` — run `uv tool upgrade kimi-cli` immediately and exit - `[q]` — continue without u...
diff --git a/CHANGELOG.md b/CHANGELOG.md index fe6717b836..f8b92422eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Only write entries that are worth mentioning to users. ## Unreleased +- Shell: Add blocking update gate on interactive shell startup — when a newer version is detected (from the exis...
5
5
4
[{"id": "G0", "claim": "_read_key() unconditionally imports the Unix-only termios/tty modules, which raises ModuleNotFoundError/ImportError on Windows and would crash startup when the update gate triggers; add a Windows implementation (e.g. msvcrt.getwch) and/or fall back gracefully when raw-mode key reading is unsuppo...
null
MoonshotAI__kimi-cli__1843
MoonshotAI/kimi-cli
1,843
defect
bbd81d080047780cc1318de9a135c064e16499c9
d03315c7d6e6559aa1a9a23ef7a5edae056741a9
fix(tools): truncate MCP tool output and handle unsupported content types
## Summary - Add 100K character budget to `convert_mcp_tool_result()` — MCP tools like Playwright can return 500KB+ DOM or multi-MB base64, bypassing the 50K limit on built-in tools (`ToolResultBuilder`), causing context overflow (API 400) or wire pipe stalls - Catch `ValueError` from `convert_mcp_content()` for unsup...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f15d4142ac..f9d81cea1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ Only write entries that are worth mentioning to users. ## Unreleased +- Core: Truncate MCP tool output to 100K characters to prevent context overflow — tools like Playwright that ret...
2
1
1
[{"id": "G0", "claim": "The new character budget is only enforced for TextPart, so ImageContent/AudioContent converted by convert_mcp_content into data: URL parts is appended unbounded and multi-megabyte media payloads from MCP tools can still overflow model context/request limits and recreate the turn-stall failures t...
null
MoonshotAI__kimi-cli__1871
MoonshotAI/kimi-cli
1,871
defect
cc5997136b1f89a3a913eea13780f5bf2efcb1e9
8f14eece46d4c7f0b252f29db7dd275280018945
fix(background): keep cancelled task strong reference until runner cleans up
## Description `BackgroundTaskManager.kill()` previously popped the asyncio Task from `_live_agent_tasks` before its cancellation could propagate. Since asyncio holds tasks in a `WeakSet`, dropping the only strong reference let Python's GC reap the still-pending task and trip prompt_toolkit's exception handler with an...
diff --git a/CHANGELOG.md b/CHANGELOG.md index cf05af866c..4581e87a66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Only write entries that are worth mentioning to users. ## Unreleased +- Core: Fix CLI crash on `TaskStop` — stopping a stuck background agent no longer prints `Unhandled exception in...
4
1
1
[{"id": "G0", "claim": "In run()'s cleanup, awaiting approval-update tasks only suppresses CancelledError, so a task finishing with a non-cancellation exception would be re-raised and escape the finally, leaving the background asyncio.Task failed with an unretrieved exception; exceptions during cleanup should be swallo...
null
MoonshotAI__kimi-cli__1890
MoonshotAI/kimi-cli
1,890
defect
934ebbbf0b4df2ad254b2ad6bcaaab9f42f75c5a
a165322d05ba3cf9ef2bb68d55e1f08163f7feba
fix(web): clear stale in-flight prompts on error to prevent session busy deadlock
Clear stale in-flight prompts on error to prevent session busy deadlock When a worker process crashes or an uncaught exception (e.g. SSLError, ConnectionError) escapes _handle_prompt, the prompt response is never sent back, leaving _in_flight_prompt_ids populated and is_busy stuck at True. Any subsequent message is ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index ddf245a0a7..a3410cb73b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ Only write entries that are worth mentioning to users. ## Unreleased +- Web: Fix session recovery after stream errors — when a session process exits or hits a read-loop error, stale ...
1
1
1
[{"id": "G0", "claim": "`errorMessage` is passed to `deriveActivityStatus` inside the `useMemo` callback but is missing from the memo's dependency array, so the activity status indicator keeps showing a stale error message when a new error arrives while the status stays \"error\".", "category": "correctness", "verdict"...
null
MoonshotAI__kimi-cli__1912
MoonshotAI/kimi-cli
1,912
defect
5caaabea266cf23ff2981500f51ea7fceaa54678
147f1d1d8b3dbb55502d8d297466b70d74e11b30
fix(build): set PYINSTALLER_ONEDIR env in Makefile and fix skills path in frozen env
## Summary Fix PyInstaller onedir build mode for built-in skills path resolution. ## Changes - **Makefile**: Pass `PYINSTALLER_ONEDIR=1` env var in `build-bin-onedir` target to align with `kimi.spec` which already reads this variable to switch between onefile/onedir mode. - **src/kimi_cli/skill/__init__.py**: Add `s...
diff --git a/Makefile b/Makefile index 1085184452..74a20b0529 100644 --- a/Makefile +++ b/Makefile @@ -141,7 +141,7 @@ build-bin: build-web build-vis ## Build the standalone executable with PyInstall build-bin-onedir: build-web build-vis ## Build the standalone executable with PyInstaller (one-dir mode). @echo "==> ...
2
2
2
[{"id": "G0", "claim": "Direct access to sys._MEIPASS is not in the sys typeshed stubs and is likely to fail Pyright strict type-checking in CI; prefer getattr (optionally with a cast) after the hasattr check to keep runtime behavior while satisfying Pyright.", "category": "correctness", "verdict": "supported", "priori...
null
MoonshotAI__kimi-cli__1918
MoonshotAI/kimi-cli
1,918
defect
1b31e8175b95a5b6e65f762a7ce7659d64b223b2
d99a011687b4893a6017bcaaaf59feadfd218316
feat(kosong): Opus 4.7 adaptive thinking support and extended effort levels
## Description Adds proper Opus 4.7 adaptive-thinking support to the Anthropic chat provider, extends `ThinkingEffort` with new levels (`xhigh`, `max`) that newer Anthropic and OpenAI models expose, and plumbs `output_config.effort` through both the adaptive and legacy paths. ### Motivation Opus 4.7 rejects the lega...
diff --git a/packages/kosong/src/kosong/chat_provider/__init__.py b/packages/kosong/src/kosong/chat_provider/__init__.py index 0c8fa7fdea..1100ed3c77 100644 --- a/packages/kosong/src/kosong/chat_provider/__init__.py +++ b/packages/kosong/src/kosong/chat_provider/__init__.py @@ -119,8 +119,12 @@ def input(self) -> int: ...
5
4
1
[{"id": "G0", "claim": "The `output_config` field comment should be updated because `output_config.effort` is also sent on the legacy pre-4.6 budget_tokens path, not only as soft guidance for adaptive thinking.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
MoonshotAI__kimi-cli__1996
MoonshotAI/kimi-cli
1,996
defect
712ab52b45defdac817d6047ee5f7b78d9b5d158
ac430c02b2cc32ea4ce31584a265b8c82ab3b0ee
fix(auth): do not delete credentials file on a single refresh 401
## Related Issue Refs #1547, #1350, #1940. Addresses the frequent "Authorization failed. Your session may have expired." symptom that forces OAuth users to `/login` repeatedly during normal use. ## The bug in one sentence `delete_tokens(ref)` removes **whatever the ref currently points to on disk**, not "the refresh...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f4216d2cca..1bdd8ca5c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Only write entries that are worth mentioning to users. ## Unreleased +- Auth: Fix OAuth users being forced to `/login` again after an unrelated refresh-token rotation race — when a c...
6
4
2
[{"id": "G0", "claim": "With delete_tokens(ref) removed, a truly revoked refresh_token stays on disk and the background refresh loop (every 60s) keeps calling the refresh endpoint, hitting the 1s sleep + 401 path repeatedly and emitting warnings/telemetry indefinitely until the user logs in again; add a cooldown/backof...
null
MoonshotAI__kimi-cli__2003
MoonshotAI/kimi-cli
2,003
defect
4dc1764e42fba9dcceb5de15fcae7b6faadbdfbc
4f5294b2c1f2a033e1037e057e02970a8344a303
fix(soul): re-inject yolo reminder after context compaction
## Related Issue N/A ## Description The YoloModeInjectionProvider uses a one-shot `_injected` flag to only emit the non-interactive-mode reminder on the first LLM step after yolo activates. After context compaction, the original reminder message is typically folded into the compaction summary (or dropped entir...
diff --git a/src/kimi_cli/soul/dynamic_injection.py b/src/kimi_cli/soul/dynamic_injection.py index 9eabf320e9..663aec69a0 100644 --- a/src/kimi_cli/soul/dynamic_injection.py +++ b/src/kimi_cli/soul/dynamic_injection.py @@ -36,6 +36,15 @@ async def get_injections( soul: KimiSoul, ) -> list[DynamicInjection...
2
2
2
[{"id": "G0", "claim": "compact_context() awaits provider.on_context_compacted() without exception handling, so a buggy injection provider could raise and abort compaction (skipping the CompactionEnd wire event and telemetry); wrap each call in a per-provider try/except with a logged warning so compaction remains robus...
null
MoonshotAI__kimi-cli__2004
MoonshotAI/kimi-cli
2,004
defect
4dc1764e42fba9dcceb5de15fcae7b6faadbdfbc
b4d424ff241a8467762994288f25dda7becf4723
fix(chat-provider): preserve refreshed OAuth token on connection recovery
Fixes #1971 ## Root Cause When OAuth refreshes the access token, `_apply_access_token()` updates `client.api_key` but not `self._api_key`. If a transient network error triggers `on_retryable_error()` to rebuild the OpenAI client, it uses the stale `self._api_key` — a token that the server has already invalidated upon...
diff --git a/CHANGELOG.md b/CHANGELOG.md index fcc43d0a55..08a0572d4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Only write entries that are worth mentioning to users. ## Unreleased +- Kosong: Fix stale API key after OAuth token refresh in Kimi provider — `on_retryable_error` now reads the curr...
1
1
0
[{"id": "G0", "claim": "docs/en/release-notes/changelog.md is auto-generated from the root CHANGELOG.md via docs/scripts/sync-changelog.mjs, so please regenerate it with npm run sync / make gen-docs instead of editing this file directly, and ensure the committed output matches the root changelog.", "category": "process...
null
MoonshotAI__kimi-cli__2005
MoonshotAI/kimi-cli
2,005
defect
4dc1764e42fba9dcceb5de15fcae7b6faadbdfbc
2a0c877d69859d6e56de8e3f524c5f810bd6f5f7
fix(shell): approval request text input should render caret correctly
<!-- Thank you for your contribution to Kimi Code CLI! Please make sure you already discussed the feature or bugfix you are proposing in an issue with the maintainers. Please understand that if you have not gotten confirmation from the maintainers, your pull request may be closed or ignored without further review du...
diff --git a/CHANGELOG.md b/CHANGELOG.md index fcc43d0a55..9097f1411e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Only write entries that are worth mentioning to users. ## Unreleased +- Shell: Fix approval request feedback text cursor rendering — the block cursor now correctly renders at the act...
3
1
1
[{"id": "G0", "claim": "Changing `buffer_text_provider` to return `Callable[[], tuple[str, int]]` on the publicly re-exported `ApprovalPromptDelegate` is a breaking API change (callers returning `str` would hit an unpacking error); consider keeping backward compatibility by accepting both `Callable[[], str]` and `Calla...
null
MoonshotAI__kimi-cli__2030
MoonshotAI/kimi-cli
2,030
defect
34025f6af57c60de5b039673dfd607f18e2e903b
e19bfc2aada71daa9493861c65820d0e1234929a
fix(kosong/kimi): fill in missing JSON Schema type for MCP tool parameters
## Related Issue Partially resolves #1595 — addresses the "missing type on property" case. The companion "type on anyOf parent" restriction described in that issue is a follow-up. ## Description ### Symptom Moonshot's flavored JSON Schema validator requires every property to declare `type`. MCP servers that emit sp...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 938340fe02..c184bb08f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ Only write entries that are worth mentioning to users. ## Unreleased +- Kosong: Fix Moonshot 400 `At path 'properties.X': type is not defined` when an MCP server exposes tools whose ...
6
6
4
[{"id": "G0", "claim": "The type inference in `_infer_type_from_values` misclassifies mixed boolean+number enums (e.g. [true, 1] or [false, 1.5]) as numeric because booleans are stripped before the integer/number checks, so the inferred type excludes the boolean members and can steer Moonshot away from valid tool-call ...
null
MoonshotAI__kimi-cli__2060
MoonshotAI/kimi-cli
2,060
defect
0c6c9300db0e49efc0c569f8b9d1dc65c2063ad5
13ee6b9e1c4751665c7b234a9fe870a706fa9b68
fix(auth): recover OAuth flows after transient failures
## Related Issue - N/A ## Summary - route connection recovery retries back through the full auth recovery path so a post-timeout 401 can force-refresh OAuth instead of immediately surfacing /login - refresh managed-platform models through OAuthManager and retry once on 401 so startup model sync can recover stale acces...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ba4ad17e3..44ccd7d570 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ Only write entries that are worth mentioning to users. - Kimi: Add `KIMI_MODEL_THINKING_KEEP` environment variable that forwards its value verbatim to the Moonshot API as `thinking.keep`...
2
2
1
[{"id": "G0", "claim": "Construct one OAuthManager once per refresh_managed_models invocation (outside the provider loop) and reuse it for all providers, because creating a new OAuthManager per provider with oauth set repeats the token load and possible storage migration, which is unnecessary overhead.", "category": "p...
null
MoonshotAI__kimi-cli__2078
MoonshotAI/kimi-cli
2,078
defect
b5f48ef2aaf198a96c6f40c3e50793346fda247a
118c1283832d328eb6320dc3f8103aa91e07667c
fix(shell): correct /usage remaining quota display
## Summary Fixes #2019. This updates `/usage` so the displayed `% left` label, progress bar fill, and warning color all use the remaining quota ratio consistently. High remaining quota now renders as green/full, while near-exhausted quota renders yellow or red. Thanks to #2039, #2046, and #1411 for the related repor...
diff --git a/CHANGELOG.md b/CHANGELOG.md index cafc475b20..39d0d83db4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Only write entries that are worth mentioning to users. ## Unreleased +- Shell: Fix `/usage` and `/status` remaining quota rendering — the progress bar, warning colors, and `% left` l...
3
3
2
[{"id": "G0", "claim": "At full remaining quota the ProgressBar is called with completed equal to total, so Rich renders it with the gray default finished_style instead of the green complete_style; the bar should pass finished_style=color.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
MoonshotAI__kimi-cli__2087
MoonshotAI/kimi-cli
2,087
defect
7a8a69ae20f8424076c2d3e55755f17bdd229b6b
2073a15462362d47f1ec8c82f2a513ff5c0f17e3
fix(approval): scope pending requests to turn lifecycle
## Summary - Make approval waits indefinite by default so active foreground/subagent approvals are not auto-rejected after 5 minutes. - Cancel foreground-turn approvals through the existing ApprovalSource/cancel_by_source lifecycle when the owning KimiSoul run exits. - Cancel abandoned KimiCLI.run streams with a...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d3bf5ef07..f25f2122ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Only write entries that are worth mentioning to users. ## Unreleased +- Core: Approval requests no longer auto-timeout after 5 minutes, which previously surfaced as `Rejected by user...
1
1
0
[{"id": "G0", "claim": "When a foreground turn is cancelled while wait_for_response awaits asyncio.shield(waiter) on the new timeout=None path, the waiter is left in self._waiters, so cancel_by_source sets an exception on a future nobody will ever retrieve and asyncio logs a \"Future exception was never retrieved\" war...
null
MoonshotAI__kimi-cli__2102
MoonshotAI/kimi-cli
2,102
defect
316b650e31e7de0ea895eb8ae1bbd1de7a0891f7
fd6035a3522900b595f6e00b0253105e335d206e
fix(web): preserve manual session titles
## Related Issue Refs #2101 ## Description This PR now keeps the existing busy-session protection in place and narrows the fix to two concrete web session issues: - preserve a title finalized by another request or manual rename while `generate-title` is in flight - show toast errors for rename / archive / unarchive...
diff --git a/src/kimi_cli/web/api/sessions.py b/src/kimi_cli/web/api/sessions.py index 205d423305..008db368b1 100644 --- a/src/kimi_cli/web/api/sessions.py +++ b/src/kimi_cli/web/api/sessions.py @@ -106,18 +106,30 @@ def get_runner_ws(ws: WebSocket) -> KimiCLIRunner: return ws.app.state.runner -def get_editabl...
3
2
1
[{"id": "G0", "claim": "Removing the busy guard from state-mutating endpoints (update_session PATCH, generate_session_title) leaves an unlocked read-modify-write of state.json, so a concurrent worker write can be silently rolled back and the endpoints are not safe to invoke while busy without locking/CAS.", "category":...
null
MoonshotAI__kimi-cli__2115
MoonshotAI/kimi-cli
2,115
defect
8ac1f0e1f73baa72e6761a4b509d5c15647c488e
7f2a8da92646028bea0eb38fe084fb2fbe6f0aa8
fix(clipboard): enable clipboard paste on headless Linux over SSH
## Problem When running Kimi CLI on a headless Linux machine (e.g. a remote development server accessed via SSH), the `Ctrl+V` shortcut for pasting clipboard content is completely disabled. This happens because `pyperclip.paste()` fails during initialization when the `DISPLAY` environment variable is not set, causing ...
diff --git a/src/kimi_cli/ui/shell/prompt.py b/src/kimi_cli/ui/shell/prompt.py index 7f78e700de..472b881e8f 100644 --- a/src/kimi_cli/ui/shell/prompt.py +++ b/src/kimi_cli/ui/shell/prompt.py @@ -1484,7 +1484,12 @@ def _(event: KeyPressEvent) -> None: track("shortcut_paste") if self._tr...
1
1
1
[{"id": "G0", "claim": "Returning True from is_clipboard_available() on headless Linux when only xclip/wl-paste is present makes CustomPromptSession instantiate PyperclipClipboard even though pyperclip is broken, so prompt_toolkit's built-in clipboard keybindings (ctrl-k, ctrl-w, ctrl-y) can raise unhandled exceptions ...
null
MoonshotAI__kimi-cli__2126
MoonshotAI/kimi-cli
2,126
defect
a2664006a245eafc4206d8b736acd3cdf92e552e
4a2d1a5102f2b23c262d8798c8bbd0694f4589fd
fix(plugin): support installing from .zip URL
## Summary - `kimi plugin install` now accepts http(s) URLs that point to a `.zip` archive — the file is streamed to a temp dir via `httpx` and then runs through the existing extraction path. - The zip URL branch is checked **before** the git-URL heuristic, so GitHub/GitLab archive links such as `https://github.com/own...
diff --git a/docs/en/customization/plugins.md b/docs/en/customization/plugins.md index f373b498cb..75b7cb996c 100644 --- a/docs/en/customization/plugins.md +++ b/docs/en/customization/plugins.md @@ -34,7 +34,12 @@ kimi plugin install /path/to/my-plugin **Install from a ZIP file** ```sh +# Local ZIP file kimi plugi...
2
1
1
[{"id": "G0", "claim": "If a downloaded or local zip fails to open or extract (e.g. zipfile.BadZipFile from a non-ZIP body served with status 200), _extract_zip_to_plugin raises unhandled — the user sees a Python traceback instead of a CLI error and the temp directory is left behind — so wrap the open/extract in try/ex...
null
MoonshotAI__kimi-cli__2190
MoonshotAI/kimi-cli
2,190
defect
17938161923c6f7550c9f291ff15ed5b1cacc1a9
d5b10f4fb644180428548aa0acb0b9478293c9e0
feat(telemetry): add app_name and build_sha with remote provenance to context
## Summary This PR improves telemetry observability in two areas: compaction trigger attribution and build provenance tracking. --- ### 1. Distinguish manual and manual-with-prompt compaction triggers **Problem:** Previously, both `/compact` without arguments and `/compact <instruction>` emitted `trigger_type=manua...
diff --git a/.gitignore b/.gitignore index 88b175850d..5caef99414 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ uv.toml # Build dependencies src/kimi_cli/deps/bin src/kimi_cli/deps/tmp +src/kimi_cli/_build_info.py # Web build artifacts src/kimi_cli/web/static/assets/ diff --git a/Makefile b/Makefile...
9
3
3
[{"id": "G0", "claim": "kimi.spec's runpy.run_path call runs scripts/inject_build_sha.py with __name__ set to '<run_path>', so its __main__ guard never fires, main() is never called, and the build SHA injection silently does not happen when someone runs pyinstaller kimi.spec directly outside the Makefile targets.", "ca...
null
MoonshotAI__kimi-cli__2226
MoonshotAI/kimi-cli
2,226
defect
b36825b495b4d995f0b377da1b45cec122421dd4
b86cafe8681922c84942e670270c6f7e92d994b0
feat(telemetry): polish event schema with outcome enum, lifecycle tracking and error enrichment
## Summary This PR polishes the telemetry event schema and adds richer observability across tool calls, API errors, compaction and turn lifecycle. --- ### 1. Unify tool_call/tool_error into single event with outcome enum **Problem:** Previously, tool success and failure were tracked by two separate events (tool_cal...
diff --git a/src/kimi_cli/soul/kimisoul.py b/src/kimi_cli/soul/kimisoul.py index f01258207f..4fd213d259 100644 --- a/src/kimi_cli/soul/kimisoul.py +++ b/src/kimi_cli/soul/kimisoul.py @@ -5,7 +5,6 @@ import uuid from collections.abc import Awaitable, Callable, Sequence from dataclasses import dataclass -from functool...
3
1
1
[{"id": "G0", "claim": "`turn_interrupted` reads `self._current_step_no` unconditionally in `KimiSoul.run`'s `finally`, which raises `AttributeError` and masks the original failure when the turn is interrupted before `_agent_loop` is entered (also skipping approval-source cleanup); use a safe fallback such as `getattr(...
null
MoonshotAI__kimi-cli__2241
MoonshotAI/kimi-cli
2,241
defect
ee850e16b47c936f9e05764437eb9dd970651ff8
333c293680d680c71a9ab5a43a0e57588d66ca64
fix(mcp): upgrade FastMCP OAuth storage
## Related Issue Resolve #2203 ## Description Upgrade FastMCP from 2.12.5 to 3.2.4 to avoid the AuthlibDeprecationWarning triggered by the old FastMCP client import path when MCP servers are configured. FastMCP 3.x removed `FileTokenStorage`, so this PR also updates Kimi's MCP OAuth handling to use persistent `OAut...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a75ffb9641..11e2668e95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ Only write entries that are worth mentioning to users. - Shell: Fix missing visual spacing in the shell UI — add blank lines after user input echoes, content blocks, tool call results, n...
1
1
1
[{"id": "G0", "claim": "Wrap the OAuth token probe (has_mcp_oauth_tokens and its storage creation/read) in exception handling so unreadable or failing storage degrades to \"no tokens\" instead of propagating PermissionError/I/O errors that abort callers such as `kimi mcp list` and MCP tool loading.", "category": "corre...
null
MoonshotAI__kimi-cli__2242
MoonshotAI/kimi-cli
2,242
defect
48d70bdbb90268d2c5350818530fd87ef529194e
47877e18c55425c950b9def58c05c3e9fa79b9c0
feat(toolset): add tool call deduplication for same-step and cross-step repeats
## Summary This PR introduces tool call deduplication in the toolset layer to avoid redundant executions when the model issues identical tool calls either within the same step or across consecutive steps. --- ### 1. Tool call deduplication **Problem:** The agent can issue duplicate tool calls in a single step or re...
diff --git a/src/kimi_cli/soul/kimisoul.py b/src/kimi_cli/soul/kimisoul.py index f9faec018d..a3c38c45df 100644 --- a/src/kimi_cli/soul/kimisoul.py +++ b/src/kimi_cli/soul/kimisoul.py @@ -187,8 +187,10 @@ def __init__( self._checkpoint_with_user_message = False self._steer_queue: asyncio.Queue[st...
3
1
1
[{"id": "G0", "claim": "Reset `_last_tool_calls` when a new turn begins in `_turn()`, otherwise the first step of turn N+1 inherits the previous turn's final step's calls and a legitimate repeated tool call is flagged as a cross-step duplicate, injecting the dedup reminder into tool output.", "category": "correctness",...
null
Mord3rca__gamma-launcher__83
Mord3rca/gamma-launcher
83
defect
2deabadba608a95add3d0ac7410920a9e7ac66ac
5f47691b65ec431ccd110d4ff868673fbf6775a0
New mod install
Resolve #68
diff --git a/launcher/commands/check.py b/launcher/commands/check.py index 635ceff..ec6e4fe 100644 --- a/launcher/commands/check.py +++ b/launcher/commands/check.py @@ -3,8 +3,9 @@ from os.path import sep from typing import Iterator, Tuple -from launcher.commands.common import read_mod_maker, parse_moddb_data +from...
1
1
0
[{"id": "G0", "claim": "The pull request's new imports of read_mod_maker should take it from the new launcher.mods module instead of launcher.commands.common, in launcher/commands/check.py and launcher/commands/tests.py.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
MorphiaOrg__morphia__1065
MorphiaOrg/morphia
1,065
defect
73dd55b0ebddc3f6ceaaf16142d4a6a2cb02b7d5
a616b8a047294c2f0f01df82b995d42aa3248947
check for null before trying to convert the result
fixes #1051
diff --git a/morphia/src/main/java/org/mongodb/morphia/DatastoreImpl.java b/morphia/src/main/java/org/mongodb/morphia/DatastoreImpl.java index 1baf228f55a..172e425fdf4 100644 --- a/morphia/src/main/java/org/mongodb/morphia/DatastoreImpl.java +++ b/morphia/src/main/java/org/mongodb/morphia/DatastoreImpl.java @@ -320,17 ...
3
2
1
[{"id": "G0", "claim": "There is a redundant second copy of the options when the write concern is null in the options.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a regression test to ensure that enforceWriteConcern works as expected; the cha...
null
MorphiaOrg__morphia__1066
MorphiaOrg/morphia
1,066
defect
c3bb919bd35b87eac777450d445a89d5240f8d56
199de74ef2c69c1873642ebd8bdfc95a9ae876bf
Deprecate Morphia#useBulkWriteOperations
fixes #1052
diff --git a/morphia/src/main/java/org/mongodb/morphia/DatastoreImpl.java b/morphia/src/main/java/org/mongodb/morphia/DatastoreImpl.java index be1d1bb0d7f..26726a21144 100644 --- a/morphia/src/main/java/org/mongodb/morphia/DatastoreImpl.java +++ b/morphia/src/main/java/org/mongodb/morphia/DatastoreImpl.java @@ -2,7 +2,...
2
2
0
[{"id": "G0", "claim": "Remove the LOG.warning call from setUseBulkWriteOperations, since deprecating it is sufficient and no other deprecated method logs a warning.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "isUseBulkWriteOperations should ...
null
MorphiaOrg__morphia__1222
MorphiaOrg/morphia
1,222
defect
4d001ede8cb17f48b233bb88a128455876ad52f7
d8b790a1e7aa9708b71519a6b67ddac13b4157f9
performance improvement: memoized some logically static properties
this resolves #1221 I added an adhoc unitTest that displays the performance differences. It is "@Ignored" as to not slow down the build.
diff --git a/morphia/src/main/java/org/mongodb/morphia/converters/Converters.java b/morphia/src/main/java/org/mongodb/morphia/converters/Converters.java index 1e9683093ed..853b0898a51 100644 --- a/morphia/src/main/java/org/mongodb/morphia/converters/Converters.java +++ b/morphia/src/main/java/org/mongodb/morphia/conver...
1
1
1
[{"id": "G0", "claim": "org.mongodb.morphia.ext.ExternalMapperExtTest#testExternalMapping is failing with this patch, and the author should dig in to why.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
MorphiaOrg__morphia__1550
MorphiaOrg/morphia
1,550
defect
832084de6206a23c040e937ec1838e173adb43b3
a0fe339df36815d402ea3512372e5990785a40d2
Fixed referencing (and removed embedding) entities
Fixed referencing (and removed embedding) entities if the `@Reference` annotation is not last over a field. Frankly speaking I'm not entirely sure if this is the best fix, because it will break backward compatibility for souls who saved documents with `@Reference`d entities when the `@Reference` annotation wasn't the ...
diff --git a/core/src/main/java/dev/morphia/mapping/MorphiaDefaultsConvention.java b/core/src/main/java/dev/morphia/mapping/MorphiaDefaultsConvention.java index 7677e367193..a2c318b8787 100644 --- a/core/src/main/java/dev/morphia/mapping/MorphiaDefaultsConvention.java +++ b/core/src/main/java/dev/morphia/mapping/Morphi...
6
5
2
[{"id": "G0", "claim": "The wildcard imports the PR added to MorphiaDefaultsConvention.java violate the project's code style/quality checks (`mvn -Pquality` in core), which failed on CI.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The loop in...
null
MorphiaOrg__morphia__3038
MorphiaOrg/morphia
3,038
defect
3ecab7e4edbe6ac3344bac1357a694753f232789
bccf828e3443460b9ddce98355dd108ce09fbe87
Prefer to load custom property codec providers before default codec providers.
Like the PR title says - prefer to load user-defined custom property codec providers before the library default codec providers. This allows users to override default behavior to provide customizable codec logic for `Map` and `Collection` types, as well as their subclasses. Added a test here to validate that the NoO...
diff --git a/core/src/main/java/dev/morphia/mapping/codec/MorphiaCodecProvider.java b/core/src/main/java/dev/morphia/mapping/codec/MorphiaCodecProvider.java index 5c2d0cce3cb..4c02af5f766 100644 --- a/core/src/main/java/dev/morphia/mapping/codec/MorphiaCodecProvider.java +++ b/core/src/main/java/dev/morphia/mapping/cod...
1
1
0
[{"id": "G0", "claim": "The test method name NewMorphiaCodecProvider_NoOpPropertyCodecProviderInConfig_ExpectedOrderOfProvidersReturned is quite a mouthful and would be better with a simpler name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null