instance_id
string
set
string
key_version
string
defect_id
string
title
string
statement
string
kind
string
severity
string
sites
list
evidence
string
counts_if
string
provenance_hunt
bool
provenance_hunt_refs
list
provenance_dataset_refs
list
provenance_reviewer_comments
list
provenance_added_in
string
benchmark_limitation
string
bot_derived_reference
string
repo
string
head_commit
string
comfyanonymous__ComfyUI@4dcd698
rest145
2
D12
TrainSampler swallows the loss RuntimeError and then crashes with UnboundLocalError
In TrainSampler.sample (nodes_train.py:46-51) a RuntimeError from loss_fn is caught, conditionally logged and not re-raised; loss.backward() then raises UnboundLocalError, masking the real error. The matched 'does not require grad' message comes from backward(), not the loss call.
bug
low
[ { "path": "comfy_extras/nodes_train.py", "from_line": 46, "to_line": 51, "role": "cause" } ]
nodes_train.py:46-51.
Must say the exception is swallowed and 'loss' is then undefined.
true
[]
[ "R11" ]
[ "C29", "N3" ]
null
null
null
comfyanonymous/ComfyUI
4dcd698e489da69294ee01de0350a9a02e3e4b41
comfyanonymous__ComfyUI@4dcd698
rest145
2
D13
Plot Loss Graph divides by zero when all losses are equal (e.g. steps=1)
LossGraphNode.plot_loss scales by (max_loss - min_loss) (nodes_train.py:637-638); steps min is 1 (:293), so a one-step run or constant loss raises ZeroDivisionError.
bug
low
[ { "path": "comfy_extras/nodes_train.py", "from_line": 637, "to_line": 638, "role": "cause" } ]
nodes_train.py:637-638; steps min 1 at :293.
Division by zero when min == max. The unused draw_loss_graph has the same bug but only the registered node counts.
true
[]
[ "R17" ]
[ "C30", "C50", "C51", "N1", "N3", "N14", "N19" ]
null
null
null
comfyanonymous/ComfyUI
4dcd698e489da69294ee01de0350a9a02e3e4b41
comfyanonymous__ComfyUI@4dcd698
rest145
2
D14
Resize method 'Pad' stretches the image instead of padding
load_and_process_images treats 'Pad' identically to 'Stretch' (nodes_train.py:107-112: both img.resize((w,h))), distorting aspect ratio despite the option name.
bug
low
[ { "path": "comfy_extras/nodes_train.py", "from_line": 111, "to_line": 112, "role": "cause" } ]
nodes_train.py:108 and :112 identical resize calls.
Must say Pad resizes/stretches rather than pads.
true
[]
[ "R13" ]
[]
null
null
null
comfyanonymous/ComfyUI
4dcd698e489da69294ee01de0350a9a02e3e4b41
comfyanonymous__ComfyUI@4dcd698
rest145
2
D15
The seed input does not make training reproducible: the seeded generator is never used
train() creates and seeds `generator` (nodes_train.py:394-395) but never passes it anywhere: batch selection (torch.randperm :382), sigma sampling (torch.rand :506) and LoRA init (kaiming_uniform_ in lora.py:71) all use the global RNG, contrary to the seed tooltip (:337).
bug
low
[ { "path": "comfy_extras/nodes_train.py", "from_line": 394, "to_line": 395, "role": "cause" }, { "path": "comfy/weight_adapter/lora.py", "from_line": 66, "to_line": 72, "role": "other-site" } ]
generator referenced only at :394-395.
Must say the seed/generator is unused for init/batch/sigma.
true
[]
[]
[ "C5", "C18", "N2", "N15" ]
null
null
null
comfyanonymous/ComfyUI
4dcd698e489da69294ee01de0350a9a02e3e4b41
comfyanonymous__ComfyUI@4dcd698
rest145
2
D16
Training patches (checkpoint forwards) leak onto the shared model if setup fails before the try/finally
patch() replaces forward on modules of mp.model.diffusion_model (nodes_train.py:482-483); model.clone() shares the underlying model. The try/finally that unpatches starts only at :502, so an exception in load_models_gpu (:484) or guider setup (:494-496) leaves checkpoint-wrapped forwards installed for later workflows u...
resource
low
[ { "path": "comfy_extras/nodes_train.py", "from_line": 481, "to_line": 502, "role": "cause" } ]
nodes_train.py:482-484 before `try:` at :502; unpatch only in the finally at :515-517.
Must say the patching happens before the try/finally so failures leave the model patched.
false
[]
[]
[ "C1", "C15" ]
null
null
null
comfyanonymous/ComfyUI
4dcd698e489da69294ee01de0350a9a02e3e4b41
comfyanonymous__ComfyUI@4dcd698
rest145
2
D17
Cosmos blocks take the checkpoint path during ordinary inference because the model is never in eval mode
GeneralDITTransformerBlock.forward checkpoints each block when self.training (blocks.py:799-800), but nn.Module defaults to training=True and ComfyUI never calls eval() on Cosmos diffusion models (model_base.py only at :650/:679 for other models), so every inference step runs torch.utils.checkpoint machinery (RNG-state...
performance
low
[ { "path": "comfy/ldm/cosmos/blocks.py", "from_line": 799, "to_line": 800, "role": "cause" } ]
model_base.py:650/679 are the only diffusion_model.eval() calls.
Must say self.training is True at inference so checkpointing runs there. R2 (no inference path at all) is wrong and does not count.
true
[]
[]
[ "C34", "N3" ]
null
null
null
comfyanonymous/ComfyUI
4dcd698e489da69294ee01de0350a9a02e3e4b41
comfyanonymous__ComfyUI@b55c224
rest145
2
D1
DirectML causal mask is built from uninitialized memory, so CLIP text attention gets garbage/no causal masking
In CLIPTextModel_.forward (comfy/clip_model.py:107-108) the DirectML branch creates `torch.empty(x.shape[1], x.shape[1], ...)` and only calls `.triu_(1)` — without any fill. triu_ zeroes the lower triangle but leaves the strictly upper triangle as whatever uninitialized memory torch.empty returned (often 0, sometimes a...
bug
high
[ { "path": "comfy/clip_model.py", "from_line": 107, "to_line": 108, "role": "cause" }, { "path": "comfy/clip_model.py", "from_line": 112, "to_line": 115, "role": "symptom" } ]
clip_model.py:107-108 `if comfy.model_management.is_directml_enabled(): causal_mask = torch.empty(x.shape[1], x.shape[1], dtype=x.dtype, device=x.device).triu_(1)` vs the other branch `.fill_(float("-inf")).triu_(1)`; the mask is then added to / used as the attention mask (112-115).
Must say the DirectML branch never fills the tensor (torch.empty is uninitialised), so the causal mask's upper triangle is garbage/zero rather than -inf/-max.
true
[]
[ "R1" ]
[ "C1", "C2", "C3", "N1", "N2", "N4", "N3" ]
null
null
null
comfyanonymous/ComfyUI
b55c2247654476fbc744e572ba7a834fd9378745
comfyanonymous__ComfyUI@b55c224
rest145
2
D2
Non-DirectML causal mask silently reverts upstream's -finfo.max fill back to -inf for every device
The else-branch at comfy/clip_model.py:109-110 changes the causal-mask fill for CUDA/CPU/MPS/XPU from `-torch.finfo(x.dtype).max` to `float("-inf")`. The merge base already contained upstream commit 44e19a2 ('Use maximum negative value instead of -inf for masks in text encoders'), which deliberately switched the CLIP c...
bug
low
[ { "path": "comfy/clip_model.py", "from_line": 109, "to_line": 110, "role": "cause" }, { "path": "comfy/clip_model.py", "from_line": 105, "to_line": 105, "role": "other-site" } ]
head clip_model.py:110 `causal_mask = torch.empty(...).fill_(float("-inf")).triu_(1)`; merge base line `causal_mask = torch.empty(...).fill_(-torch.finfo(x.dtype).max).triu_(1)`; clip_model.py:105 `mask = mask.masked_fill(mask.to(torch.bool), -torch.finfo(x.dtype).max)`; commit 44e19a2 (ancestor of the merge base) chan...
Must say the non-DirectML branch changed the fill from -finfo(dtype).max to -inf, i.e. the change leaks beyond DirectML and reverts the previous/upstream value for other devices. The reason given does not need to be exact; note CLIP uses small_input attention (attention_pytorch/attention_basic, attention.py:534-539), s...
false
[]
[]
[ "N3" ]
extension-2026-09-28
null
null
comfyanonymous/ComfyUI
b55c2247654476fbc744e572ba7a834fd9378745
mrdoob__three.js@7388f60
rest145
2
D1
valid-jsdoc is enabled in the ROOT config, so lint-addons / lint-editor / lint-fix now fail on untyped JSDoc outside src/
The rule is added to the root .eslintrc.json (lines 67-76, `root: true`), which every lint target inherits (examples/jsm, docs, editor via editor/.eslintrc.json extending it, test, utils, manual, playground). Only src/ was cleaned up. Existing JSDoc elsewhere has untyped tags that requireParamType/requireReturnType rej...
build
medium
[ { "path": ".eslintrc.json", "from_line": 67, "to_line": 76, "role": "cause" }, { "path": "examples/jsm/controls/ArcballControls.js", "from_line": 1204, "to_line": 1210, "role": "symptom" }, { "path": "editor/js/commands/AddObjectCommand.js", "from_line": 4, "to_li...
package.json:53-63 lint-core `eslint src`, lint-addons `eslint examples/jsm ...`, lint-editor `eslint editor ...`, lint-fix runs them all; only .eslintrc.json and editor/.eslintrc.json exist, so the root rules apply everywhere. ArcballControls.js:1209 `@returns The operation ...` (no type); AddObjectCommand.js:5 `@para...
Must say the rule, enabled at the root, will flag code outside src (examples/addons/editor/...) that was not updated, breaking those lint scripts. Comments about individual JSDoc types inside src do not count.
true
[]
[]
[]
null
null
null
mrdoob/three.js
7388f600209ce8a98f7211cd0e93a170b6e98d61
mrdoob__three.js@7388f60
rest145
2
D2
getViewBounds documents minTarget/maxTarget as {number} though they are Vector2 outputs
The newly added JSDoc at PerspectiveCamera.js:115-117 types minTarget and maxTarget as {number}, but the method calls `minTarget.set(...).multiplyScalar(...)` / `maxTarget.set(...)` (lines 123, 127) and getViewSize passes Vector2 instances (line 140). The PR's stated goal is correct JSDoc for editor/type tooling; this ...
maintainability
low
[ { "path": "src/cameras/PerspectiveCamera.js", "from_line": 115, "to_line": 117, "role": "cause" } ]
head PerspectiveCamera.js:116 `@param {number} minTarget`; :123 `minTarget.set( _v3.x, _v3.y ).multiplyScalar( - distance / _v3.z );`
Must say minTarget/maxTarget should be Vector2 (objects) rather than number.
true
[]
[ "R1" ]
[ "C1", "C3", "C10", "N1", "N7", "N8" ]
null
null
null
mrdoob/three.js
7388f600209ce8a98f7211cd0e93a170b6e98d61
mrdoob__three.js@7388f60
rest145
2
D3
fromCubemap documents renderTarget as type {null}, i.e. says no render target can be passed
src/extras/PMREMGenerator.js:164 documents `@param {null} [renderTarget=null]` for fromCubemap, while the parameter is forwarded to _fromTexture, which uses a supplied target as the output (`renderTarget || this._allocateTargets()`), and WebGLCubeUVMaps passes a cached target. The sibling fromEquirectangular (line 148)...
maintainability
low
[ { "path": "src/extras/PMREMGenerator.js", "from_line": 162, "to_line": 165, "role": "cause" } ]
PMREMGenerator.js:164 `@param {null} [renderTarget=null] - Optional render target.`; :169 `return this._fromTexture( cubemap, renderTarget );`
Must say the {null} type is wrong / should include WebGLRenderTarget.
true
[]
[ "R3" ]
[ "C2", "C5", "C7", "N4", "N5", "N7" ]
null
null
null
mrdoob/three.js
7388f600209ce8a98f7211cd0e93a170b6e98d61
CherryHQ__cherry-studio@5644b00
rest145
2
D1
Link conversion now runs on every OpenAI-compatible response, not only web-search ones, so ordinary Markdown links (and tool-use payloads) get rewritten into citations
Before the PR, link conversion ran only inside `if (assistant.enableWebSearch)` (base OpenAIProvider.ts ~595-607). The PR pipes every streamed response through convertLinksMiddleware (OpenAIProvider.ts:544-546), which calls convertLinks on every text-delta with no condition (convertLinksMiddleware.ts:16-21). So in ordi...
bug
high
[ { "path": "src/renderer/src/middleware/convertLinksMiddleware.ts", "from_line": 16, "to_line": 21, "role": "cause" }, { "path": "src/renderer/src/providers/AiProvider/OpenAIProvider.ts", "from_line": 544, "to_line": 546, "role": "cause" }, { "path": "src/renderer/src/prov...
convertLinksMiddleware.ts:20 `textDelta: convertLinks(chunk.textDelta)` inside `if (chunk.type === 'text-delta')` with no web-search check; OpenAIProvider.ts:544 `await convertLinksMiddleware<OpenAIStreamChunk>().wrapStream(...)` with no enableWebSearch guard; the deleted base branch `if (assistant.enableWebSearch) { i...
Must say the conversion is now unconditional / applied to non-web-search responses (ordinary links rewritten, or tool arguments altered). A comment only about @ts-expect-error or typing of textDelta does not count; a comment only about lost provider-specific converters is D4; a comment only about the missing reset is D...
true
[]
[]
[ "C4", "C12", "C20", "C39", "N5", "N18", "N19", "N20" ]
null
null
null
CherryHQ/cherry-studio
5644b00b87e07fa1acd84d4ec93f9f2fb1205090
CherryHQ__cherry-studio@5644b00
rest145
2
D2
Text from an unmatched '[' onward is held in convertLinks' buffer and never emitted, now on every response, truncating TEXT_DELTA and TEXT_COMPLETE
convertLinks keeps everything from the last '[' (or '([') that does not start a complete `[text](url)` link in a module-level buffer and returns only the prefix before it (linkConverter.ts:164-192). convertLinksMiddleware has no flush() (convertLinksMiddleware.ts:14-26) and nothing drains the buffer when the 'finish' c...
data
high
[ { "path": "src/renderer/src/middleware/convertLinksMiddleware.ts", "from_line": 14, "to_line": 26, "role": "cause" }, { "path": "src/renderer/src/utils/linkConverter.ts", "from_line": 164, "to_line": 192, "role": "other-site" }, { "path": "src/renderer/src/providers/AiPro...
linkConverter.ts:178-186 `} else if (buffer[i] === '[') { ... const match = /^\[([^\]]+)\]\(([^)]+)\)/.exec(substring); if (!match) { safePoint = i; break } }` then :191-192 `const safeBuffer = buffer.substring(0, safePoint); buffer = buffer.substring(safePoint)`; the TransformStream in convertLinksMiddleware.ts define...
Counts if the comment says buffered/incomplete-link text is never flushed at end of stream (response truncated), or that text after an unmatched bracket is withheld. Near-miss that must not count: the missing flush in extractReasoningMiddleware (D5).
true
[]
[]
[ "C3", "C14", "C30", "C38", "N1", "N3", "N20" ]
null
null
null
CherryHQ/cherry-studio
5644b00b87e07fa1acd84d4ec93f9f2fb1205090
CherryHQ__cherry-studio@5644b00
rest145
2
D3
convertLinks is never reset per response, so buffer, citation counter and URL map leak across responses (and mix between concurrent streams)
The old call passed `isFirstChunk` as convertLinks' resetCounter, clearing the module-level linkCounter, buffer and urlToCounterMap at the start of each response. convertLinksMiddleware.ts:20 calls `convertLinks(chunk.textDelta)` with no reset, so a new answer continues the previous answer's citation numbering, inherit...
bug
medium
[ { "path": "src/renderer/src/middleware/convertLinksMiddleware.ts", "from_line": 20, "to_line": 20, "role": "cause" }, { "path": "src/renderer/src/utils/linkConverter.ts", "from_line": 1, "to_line": 6, "role": "other-site" }, { "path": "src/renderer/src/utils/linkConverter...
linkConverter.ts:2-6 module-level `let linkCounter = 1`, `let buffer = ''`, `let urlToCounterMap`; :124-128 reset only `if (resetCounter)`; base code `convertLinks(delta.content || '', isFirstChunk)`; head convertLinksMiddleware.ts:20 omits the argument.
Must say state is not reset / shared across responses or streams (numbering or buffered text carried over). A comment only saying conversion is unconditional is D1.
true
[]
[]
[ "C10", "C32", "C40", "N12", "N21", "N22", "N20" ]
null
null
null
CherryHQ/cherry-studio
5644b00b87e07fa1acd84d4ec93f9f2fb1205090
CherryHQ__cherry-studio@5644b00
rest145
2
D4
Provider-specific web-search citation converters (OpenRouter, Zhipu, Hunyuan) are dropped
The old web-search branch chose convertLinksToOpenRouter, convertLinksToZhipu, or convertLinksToHunyuan (the latter resolving `[N](@ref)` against chunk.search_info.search_results) per provider. The PR removes those imports and calls only generic convertLinks (convertLinksMiddleware.ts:20), which does not understand `[r...
bug
medium
[ { "path": "src/renderer/src/middleware/convertLinksMiddleware.ts", "from_line": 1, "to_line": 21, "role": "cause" }, { "path": "src/renderer/src/providers/AiProvider/OpenAIProvider.ts", "from_line": 544, "to_line": 546, "role": "other-site" } ]
Diff deletes `import { convertLinks, convertLinksToHunyuan, convertLinksToOpenRouter, convertLinksToZhipu } from '@renderer/utils/linkConverter'` and the branch that selected them; at head, `git grep convertLinksToZhipu` finds only linkConverter.ts and its test.
Must name the loss of per-provider (Zhipu/Hunyuan/OpenRouter) citation conversion.
true
[]
[]
[ "C7", "C42", "N8", "N11", "N20" ]
null
null
null
CherryHQ/cherry-studio
5644b00b87e07fa1acd84d4ec93f9f2fb1205090
CherryHQ__cherry-studio@5644b00
rest145
2
D5
extractReasoningMiddleware has no flush, so a partial-tag tail held in its buffer is dropped at stream end
When the buffer ends with a possible prefix of the next tag (e.g. text ending in '<' or '<thi'), the transform keeps it in `buffer` (extractReasoningMiddleware.ts:81-96) waiting for the next chunk. The TransformStream defines only `transform` (:56-99), and the 'finish' chunk is passed straight through (:58-60), so that...
data
low
[ { "path": "src/renderer/src/middleware/extractReasoningMiddleware.ts", "from_line": 56, "to_line": 99, "role": "cause" } ]
extractReasoningMiddleware.ts:94-96 `} else { buffer = buffer.slice(startIndex); break }`; TransformStream literal has no flush().
Must mention the missing flush / buffered partial-tag text lost at stream end in the reasoning middleware.
true
[]
[ "R10" ]
[ "C16", "C18", "C26", "C28", "N6", "N15", "N17", "N20" ]
null
null
null
CherryHQ/cherry-studio
5644b00b87e07fa1acd84d4ec93f9f2fb1205090
CherryHQ__cherry-studio@5644b00
rest145
2
D6
TEXT_COMPLETE, tool processing and BLOCK_COMPLETE now run only on a 'finish' chunk, so a stream that ends without finish_reason is never finalized
The old code ran processToolUses and emitted BLOCK_COMPLETE after the for-await loop unconditionally. Now the generator yields 'finish' only when finish_reason is non-empty (OpenAIProvider.ts:525-528), and processToolUses + BLOCK_COMPLETE live only inside `case 'finish'` (:638-651). A provider stream that closes withou...
bug
medium
[ { "path": "src/renderer/src/providers/AiProvider/OpenAIProvider.ts", "from_line": 638, "to_line": 651, "role": "cause" }, { "path": "src/renderer/src/providers/AiProvider/OpenAIProvider.ts", "from_line": 513, "to_line": 530, "role": "other-site" } ]
Base: `} // End of for await loop ... await processToolUses(content, idx) ... onChunk({ type: ChunkType.BLOCK_COMPLETE, ...})` after the loop; head: those calls only at :639-651 inside `case 'finish'`, and the generator yields finish only `if (!isEmpty(finishReason))`.
Must say finalization (BLOCK_COMPLETE and/or tool processing) no longer happens when the stream ends without a finish chunk / on pause. Note the pause flag is only set in commented-out code at head (TopicsTab.tsx:99), so the finish-less EOF from an OpenAI-compatible provider is the live path.
false
[]
[]
[ "C15", "C27", "C29", "N2", "N7", "N13", "N20" ]
null
null
null
CherryHQ/cherry-studio
5644b00b87e07fa1acd84d4ec93f9f2fb1205090
opencv__opencv@e546382
rest145
2
D1
Generic 'IHDR chunk shall be first' error is logged for every read_chunk failure, misdiagnosing truncated input and malformed IHDR lengths
read_chunk() returns 0 not only for an unexpected chunk type but also when the stream is too short (readFromStreamOrBuffer fails, grfmt_png.cpp:735-737 and :781-783) or when an IHDR chunk has a length other than 13 (:741-744). readHeader treats any id != id_IHDR, including 0, as 'IHDR is not first' and logs 'IHDR chunk...
maintainability
low
[ { "path": "modules/imgcodecs/src/grfmt_png.cpp", "from_line": 290, "to_line": 296, "role": "cause" }, { "path": "modules/imgcodecs/src/grfmt_png.cpp", "from_line": 733, "to_line": 745, "role": "other-site" } ]
grfmt_png.cpp:294 `CV_LOG_IF_ERROR(NULL, id != id_CgBI, "IHDR chunk shall be first, this data may be broken");` reached with id==0; read_chunk:736 `if (!readFromStreamOrBuffer(&size_id, 8)) return 0;`, :741-744 `if (id == id_IHDR) { if (size != 8 + 13 + 4) return 0; }`.
Must say the new error message also fires for read_chunk's 0 return (truncated data / wrong IHDR length), not only for a non-IHDR first chunk, so it is misleading. Log wording/grammar remarks (R1) and test typos do not count.
true
[]
[]
[ "N2" ]
null
null
null
opencv/opencv
e546382fc1cbb61a7679c0511303729844a70111
opencv__opencv@79afad9
rest145
2
D1
JavaStreamReader caches the constructing thread's JNIEnv* and reuses it on other threads; the finalizer-thread destructor or a read from a worker thread is undefined behaviour or a crash
JavaStreamReader stores the JNIEnv* it was constructed with (videoio_converters.hpp:18, modules/videoio/misc/java/src/cpp/videoio_converters.cpp:3) and reuses it in read() (modules/videoio/misc/java/src/cpp/videoio_converters.cpp:20-25), seek() (modules/videoio/misc/java/src/cpp/videoio_converters.cpp:33) and the destr...
concurrency
medium
[ { "path": "modules/videoio/misc/java/src/cpp/videoio_converters.hpp", "from_line": 18, "to_line": 18, "role": "cause" }, { "path": "modules/videoio/misc/java/src/cpp/videoio_converters.cpp", "from_line": 3, "to_line": 14, "role": "cause" }, { "path": "modules/videoio/misc...
modules/videoio/misc/java/src/cpp/videoio_converters.cpp:3 `JavaStreamReader::JavaStreamReader(JNIEnv* _env, jobject _obj) : env(_env)`; :13 `env->DeleteGlobalRef(obj);`; :23 `env->CallLongMethod(obj, m_read, jBuffer, size);`. gen_dict.json builds it inside the constructor's JNI call: `auto n_%(n)s = makePtr<JavaStream...
A finding must say that caching the JNIEnv* (thread-local) and using it later — from another thread or from the finalizer/destructor — is invalid, and suggest storing JavaVM* with GetEnv/Attach or an equivalent. Comments only about local-ref leaks or missing NULL checks do not count.
true
[]
[ "R7", "R13" ]
[ "C6", "C12", "C20", "C22", "N5", "N14", "N19", "N16" ]
null
null
null
opencv/opencv
79afad939ecfaa332af0541db473fa94f8f425b6
opencv__opencv@79afad9
rest145
2
D2
Java exceptions thrown by the user's read()/seek() are never checked, so later JNI calls run with an exception pending and garbage is returned
JavaStreamReader::read calls the Java read() via CallLongMethod (modules/videoio/misc/java/src/cpp/videoio_converters.cpp:23) and then immediately calls GetByteArrayRegion (modules/videoio/misc/java/src/cpp/videoio_converters.cpp:24) and DeleteLocalRef without checking ExceptionCheck(). If the user's implementation thr...
bug
low
[ { "path": "modules/videoio/misc/java/src/cpp/videoio_converters.cpp", "from_line": 23, "to_line": 26, "role": "cause" }, { "path": "modules/videoio/misc/java/src/cpp/videoio_converters.cpp", "from_line": 33, "to_line": 33, "role": "other-site" } ]
modules/videoio/misc/java/src/cpp/videoio_converters.cpp:23-26: `jlong res = env->CallLongMethod(obj, m_read, jBuffer, size); env->GetByteArrayRegion(jBuffer, 0, static_cast<jsize>(size), ...); env->DeleteLocalRef(jBuffer); return res;` — no ExceptionCheck/ExceptionClear anywhere in the file.
Must name the missing exception check after the Java callback (CallLongMethod) in read/seek. An exception check after NewByteArray (R10) is a different point: NewByteArray failure is already handled by the NULL check at :21. That is a near-miss and does not count. C11 is credited for its secondary clause ('if Java thro...
true
[]
[]
[ "C11", "N12", "N3", "N16" ]
null
null
null
opencv/opencv
79afad939ecfaa332af0541db473fa94f8f425b6
opencv__opencv@79afad9
rest145
2
D3
vector_VideoCaptureAPIs_to_List caches a FindClass local reference in a static, so later calls use a dead local ref
modules/videoio/misc/java/src/cpp/videoio_converters.cpp:43 stores `env->FindClass("java/lang/Integer")` (a local reference valid only for the current native frame) in a function-static jclass, and line 49 passes it to NewObject on every later call. After the first JNI call returns, the local ref is freed; the next Vid...
bug
low
[ { "path": "modules/videoio/misc/java/src/cpp/videoio_converters.cpp", "from_line": 43, "to_line": 49, "role": "cause" } ]
videoio_converters.cpp:39 `static jclass juArrayList = ARRAYLIST(env);` vs :43 `static jclass jInteger = env->FindClass("java/lang/Integer");`; opencv_java.hpp:30 `#define ARRAYLIST(ENV) static_cast<jclass>(ENV->NewGlobalRef(ENV->FindClass("java/util/ArrayList")))`. The same pattern exists in dnn_converters.cpp:69 (cop...
Must say the cached Integer jclass is a local reference that must be promoted to a global ref (NewGlobalRef). The GetObjectClass local-ref leak in the constructor (R8, C17) is a different, harmless point.
false
[]
[]
[ "C2", "C25", "N21", "N16" ]
null
null
null
opencv/opencv
79afad939ecfaa332af0541db473fa94f8f425b6
opencv__opencv@79afad9
rest145
2
D4
The new stream test's seek() ignores SEEK_CUR/SEEK_END, so the test fails when MSMF is the chosen stream backend
testConstructorStream's IStreamReader.seek (modules/videoio/misc/java/test/VideoCaptureTest.java:119-131) only moves the file pointer for origin 0 and otherwise returns the current position. The test picks the first available stream-buffered backend; MSMF sizes the stream with `stream->seek(0, SEEK_END)` then `seek(0, ...
build
low
[ { "path": "modules/videoio/misc/java/test/VideoCaptureTest.java", "from_line": 119, "to_line": 131, "role": "cause" } ]
VideoCaptureTest.java:123-125 `if (origin == 0) f.seek(offset); return f.getFilePointer();`; cap_msmf.cpp:1279 `data.resize((size_t)stream->seek(0, SEEK_END));`. FFmpeg's AVIO only forwards SEEK_SET after avio_seek normalisation, so the FFmpeg path passes.
Must say the test reader does not implement SEEK_END/SEEK_CUR (and that a backend using them fails). Comments only about closing the RandomAccessFile (C18) do not count.
false
[]
[]
[ "C1", "C14", "N7", "N16" ]
null
null
null
opencv/opencv
79afad939ecfaa332af0541db473fa94f8f425b6
nextcloud__server@51b5ea9
rest145
2
D1
ICrypto usage docs now show `\OCP\Server::getCrypto()`, a method that does not exist
lib/public/Security/ICrypto.php:16-17 replaced `\OC::$server->getCrypto()` with `\OCP\Server::getCrypto()->encrypt(...)` in both usage examples. `OCP\Server` (lib/public/Server.php) only exposes the static `get(string $serviceName)`; there is no getCrypto(). The public API documentation now tells app developers to call...
maintainability
low
[ { "path": "lib/public/Security/ICrypto.php", "from_line": 16, "to_line": 17, "role": "cause" }, { "path": "lib/public/Server.php", "from_line": 26, "to_line": 38, "role": "other-site" } ]
ICrypto.php:16 ` * $encryptWithDefaultPassword = \OCP\Server::getCrypto()->encrypt('EncryptedText');` and :17 the same with a password; lib/public/Server.php declares only `public static function get(string $serviceName)`.
Must say Server::getCrypto() does not exist / the example should use Server::get(ICrypto::class). The IEventDispatcher-import nit in AFilesDocument (R1, C3, C4, C6) does not count.
true
[]
[ "R2" ]
[ "C1", "C5", "C8", "N1", "N8", "N9" ]
null
null
null
nextcloud/server
51b5ea92ccb5f4683b0f52840a01031e1ed0baa3
lvgl__lvgl@e526b2a
rest145
2
D1
Grid dsc_array parsers under-allocate by one int: heap overflow on every value
Both new grid descriptor parsers count spaces (n tokens -> n-1 spaces) and allocate (item_cnt + 1) ints, then write all n tokens plus LV_GRID_TEMPLATE_LAST, i.e. n+1 ints into n slots. Every well-formed value, even a single track like "100", writes one int past the malloc block (src/others/xml/parsers/lv_xml_obj_parser...
bug
high
[ { "path": "src/others/xml/parsers/lv_xml_obj_parser.c", "from_line": 896, "to_line": 920, "role": "cause" }, { "path": "src/others/xml/lv_xml_style.c", "from_line": 286, "to_line": 309, "role": "cause" } ]
for(i = 0; value[i] != '\0'; i++) if(value[i] == ' ') item_cnt++; int32_t * dsc_array = lv_malloc((item_cnt + 1) * sizeof(int32_t)); ... while(sub_value) { dsc_array[item_cnt] = ...; item_cnt++; } dsc_array[item_cnt] = LV_GRID_TEMPLATE_LAST; (obj_parser.c:903-920, style.c:293-309). lv_xml_split_str returns every token...
Must say the allocation is one element short (counts separators, not tokens, so no room for the terminator) and overflows. Either site counts. Generic 'validate bounds'/'sub_value[1] out of bounds' remarks (R14) do not count.
true
[]
[ "R10", "R13" ]
[ "C3", "C16", "C21", "C35", "C43", "C45", "N8", "N11", "N12", "N17" ]
null
null
{"bots": ["cubic"], "dataset_refs": ["R10", "R13"], "references": ["src/others/xml/lv_xml_style.c:293-293:1dcd1d2a8153", "src/others/xml/parsers/lv_xml_obj_parser.c:903-903:fcca13d6cb0c"], "hunt": true, "note": "Not scored. The cited AACR reference is a reworded review-bot comment from the original PR; the defect itsel...
lvgl/lvgl
e526b2a1faa4672eeb3610b466ecc25b1abb220b
lvgl__lvgl@e526b2a
rest145
2
D2
Span *_text_fmt setters never free the previous owned text: leak per call / per bound-subject update
lv_span_set_text_fmt and lv_spangroup_set_span_text_fmt free the old text only when `span->txt == NULL && span->static_flag` (lv_span.c:216, 274), which never frees a real allocation; the owned previous string is then overwritten. The new span_text_observer_cb calls lv_spangroup_set_span_text_fmt on every subject notif...
resource
medium
[ { "path": "src/widgets/span/lv_span.c", "from_line": 216, "to_line": 221, "role": "cause" }, { "path": "src/widgets/span/lv_span.c", "from_line": 274, "to_line": 279, "role": "cause" }, { "path": "src/others/observer/lv_observer.c", "from_line": 1190, "to_line": 1...
if(span->txt == NULL && span->static_flag) { lv_free(span->txt); } span->static_flag = 0; span->txt = text; Compare lv_spangroup_delete_span (lv_span.c:150): if(cur_span->txt && cur_span->static_flag == 0) lv_free(cur_span->txt).
Must identify the wrong/inverted free condition leaking the previous text. A comment only about va_end is D3. C41 (share the two copies) is a refactor suggestion, excluded.
true
[]
[ "R25" ]
[ "C4", "C19", "C57", "N2", "N3", "N7", "N22", "N19" ]
null
null
null
lvgl/lvgl
e526b2a1faa4672eeb3610b466ecc25b1abb220b
lvgl__lvgl@e526b2a
rest145
2
D3
Span *_text_fmt return on allocation failure without va_end
In lv_span_set_text_fmt and lv_spangroup_set_span_text_fmt, `if(text == NULL) return;` precedes va_end(args) (lv_span.c:212, 270), so the va_start'ed list is not ended on the OOM path: undefined behaviour per the C standard.
bug
low
[ { "path": "src/widgets/span/lv_span.c", "from_line": 209, "to_line": 214, "role": "cause" }, { "path": "src/widgets/span/lv_span.c", "from_line": 267, "to_line": 272, "role": "cause" } ]
va_start(args, fmt); char * text = lv_text_set_text_vfmt(fmt, args); LV_ASSERT_MALLOC(text); if(text == NULL) return; va_end(args);
Must mention va_end skipped on the early return. R25 also raises this point but is filed under D2 (its more severe half).
true
[]
[ "R24" ]
[ "C5", "C18", "C54", "N19" ]
null
null
{"bots": ["cubic"], "dataset_refs": ["R24"], "references": ["src/widgets/span/lv_span.c:212-214:e28b302c8c81"], "hunt": true, "note": "Not scored. The cited AACR reference is a reworded review-bot comment from the original PR; the defect itself was checked against the code."}
lvgl/lvgl
e526b2a1faa4672eeb3610b466ecc25b1abb220b
lvgl__lvgl@e526b2a
rest145
2
D4
Textarea schema renamed to placeholder_text but the parser only accepts placeholder
xmls/lv_textarea.xml:9 now advertises `placeholder_text` (was `placeholder`), while lv_xml_textarea_apply only handles `placeholder` (src/others/xml/parsers/lv_xml_textarea_parser.c:59). XML written against the schema silently leaves the placeholder unset.
contract
medium
[ { "path": "xmls/lv_textarea.xml", "from_line": 9, "to_line": 9, "role": "cause" }, { "path": "src/others/xml/parsers/lv_xml_textarea_parser.c", "from_line": 59, "to_line": 59, "role": "other-site" } ]
xmls/lv_textarea.xml:9 <prop name="placeholder_text" .../> (base: name="placeholder"); textarea_parser.c:59 else if(lv_streq("placeholder", name)) lv_textarea_set_placeholder_text(item, value);
Must say schema and parser now disagree on the attribute name (either fix direction counts).
true
[]
[ "R33" ]
[ "C24", "C27" ]
null
null
null
lvgl/lvgl
e526b2a1faa4672eeb3610b466ecc25b1abb220b
lvgl__lvgl@e526b2a
rest145
2
D5
Grid dsc_array parsers cast away const and destructively split the caller's attribute string
Both new parsers do `char * value_buf = (char *)value;` and call lv_xml_split_str, which writes '\0' over each separator. The attribute value is `const char *` owned by the caller: lv_xml_create() with string-literal attrs writes into read-only memory (crash), and any reused attribute value is truncated to its first to...
bug
medium
[ { "path": "src/others/xml/parsers/lv_xml_obj_parser.c", "from_line": 905, "to_line": 907, "role": "cause" }, { "path": "src/others/xml/lv_xml_style.c", "from_line": 295, "to_line": 297, "role": "cause" } ]
char * value_buf = (char *)value; ... const char * sub_value = lv_xml_split_str(&value_buf, ' '); lv_xml_split_str writes *src_next = '\0'.
Must point at mutating the const input (read-only literal crash / corrupting the attribute).
true
[]
[ "R11" ]
[ "C9", "C13", "C20", "C38", "C53", "C56", "N1", "N6", "N24", "N19" ]
null
null
{"bots": ["cubic"], "dataset_refs": ["R11"], "references": ["src/others/xml/lv_xml_style.c:295-295:7af1724605fc"], "hunt": true, "note": "Not scored. The cited AACR reference is a reworded review-bot comment from the original PR; the defect itself was checked against the code."}
lvgl/lvgl
e526b2a1faa4672eeb3610b466ecc25b1abb220b
lvgl__lvgl@e526b2a
rest145
2
D6
grid_update early return leaks row arrays when calc_cols fails
calc() allocates c->y/c->h in calc_rows then returns LV_RESULT_INVALID if calc_cols finds no column descriptor (lv_grid.c:237-244). The new `if(res != LV_RESULT_OK) return;` (lv_grid.c:193-194) skips calc_free, leaking both arrays on every layout pass of a grid with rows but no column template.
incomplete-fix
low
[ { "path": "src/layouts/grid/lv_grid.c", "from_line": 193, "to_line": 194, "role": "cause" }, { "path": "src/layouts/grid/lv_grid.c", "from_line": 237, "to_line": 244, "role": "other-site" } ]
calc_rows: c->y = lv_malloc(...); c->h = lv_malloc(...); calc: if(calc_cols(cont, calc_out) == LV_RESULT_INVALID) return LV_RESULT_INVALID; grid_update: lv_result_t res = calc(cont, &c); if(res != LV_RESULT_OK) return;
Must say the early return skips calc_free and leaks partially allocated calc arrays. The empty-grid stale-size regression of the same line is D12.
true
[]
[ "R5" ]
[ "C7", "C29", "C44", "N19" ]
null
null
null
lvgl/lvgl
e526b2a1faa4672eeb3610b466ecc25b1abb220b
lvgl__lvgl@e526b2a
rest145
2
D7
Tabview tab_button XML element crashes when the index attribute is omitted
lv_xml_tabview_tab_button_create passes lv_xml_get_value_of(attrs, "index") straight into lv_xml_atoi (lv_xml_tabview_parser.c:99-100); lv_xml_get_value_of returns NULL for a missing attribute and lv_xml_atoi dereferences it, so <lv_tabview-tab_button/> without index is a NULL dereference.
bug
low
[ { "path": "src/others/xml/parsers/lv_xml_tabview_parser.c", "from_line": 99, "to_line": 100, "role": "cause" } ]
const char * index_str = lv_xml_get_value_of(attrs, "index"); int32_t index_int = lv_xml_atoi(index_str);
Must mention a missing/NULL index attribute leading to a crash.
true
[]
[ "R20" ]
[ "C6", "C10", "C12", "N4" ]
null
null
{"bots": ["cubic"], "dataset_refs": ["R20"], "references": ["src/others/xml/parsers/lv_xml_tabview_parser.c:100-100:b7badbdb1330"], "hunt": true, "note": "Not scored. The cited AACR reference is a reworded review-bot comment from the original PR; the defect itself was checked against the code."}
lvgl/lvgl
e526b2a1faa4672eeb3610b466ecc25b1abb220b
lvgl__lvgl@e526b2a
rest145
2
D8
Span text binding keeps a raw span pointer; deleting the span leaves a dangling observer (UAF)
lv_spangroup_bind_span_text stores the span in the observer user_data but ties the observer only to the spangroup object (lv_observer.c:831-836). lv_spangroup_delete_span frees the span (lv_span.c:155) while the group lives; the next subject notification calls lv_spangroup_set_span_text[_fmt] on freed memory.
bug
low
[ { "path": "src/others/observer/lv_observer.c", "from_line": 829, "to_line": 838, "role": "cause" } ]
user_data->element = span; lv_observer_t * observer = lv_subject_add_observer_obj(subject, span_text_observer_cb, obj, user_data); nothing unsubscribes in lv_spangroup_delete_span.
Must mention span deletion while bound -> dangling pointer / use-after-free.
true
[]
[ "R17" ]
[ "C23", "C28", "C46" ]
null
null
{"bots": ["cubic"], "dataset_refs": ["R17"], "references": ["src/others/xml/parsers/lv_xml_spangroup_parser.c:101-101:7e0a918c5f48"], "hunt": true, "note": "Not scored. The cited AACR reference is a reworded review-bot comment from the original PR; the defect itself was checked against the code."}
lvgl/lvgl
e526b2a1faa4672eeb3610b466ecc25b1abb220b
lvgl__lvgl@e526b2a
rest145
2
D9
New label doc notes wrongly say the fmt setters ignore LV_USE_ARABIC_PERSIAN_CHARS
The PR adds `@note It ignores LV_USE_ARABIC_PERSIAN_CHARS` to lv_label_set_text_fmt/vfmt (lv_label.h:100, 117), but both go through lv_text_set_text_vfmt, which runs lv_text_ap_proc when the option is enabled (lv_text.c:493-510). The new docs are false.
maintainability
low
[ { "path": "src/widgets/label/lv_label.h", "from_line": 100, "to_line": 100, "role": "cause" }, { "path": "src/widgets/label/lv_label.h", "from_line": 117, "to_line": 117, "role": "cause" } ]
lv_text.c:493 #if LV_USE_ARABIC_PERSIAN_CHARS ... lv_text_ap_proc(raw_txt, text);
The note on lv_label_set_text_static (line 126) is correct; only the fmt/vfmt notes count.
true
[]
[ "R23" ]
[]
null
null
{"bots": ["cubic"], "dataset_refs": ["R23"], "references": ["src/widgets/label/lv_label.h:100-100:deea0d65f93d"], "hunt": true, "note": "Not scored. The cited AACR reference is a reworded review-bot comment from the original PR; the defect itself was checked against the code."}
lvgl/lvgl
e526b2a1faa4672eeb3610b466ecc25b1abb220b
lvgl__lvgl@e526b2a
rest145
2
D10
lv_spangroup_bind_span_text declared under LV_USE_LABEL but defined under LV_USE_SPAN
lv_observer.h:548-564 wraps the declaration in #if LV_USE_LABEL while lv_observer.c defines it under #if LV_USE_SPAN. With LV_USE_SPAN=1 and LV_USE_LABEL=0, lv_xml_spangroup_parser.c:102 calls an undeclared function (build error under strict C / -Werror); with LV_USE_LABEL=1, LV_USE_SPAN=0 the API is declared but not d...
build
low
[ { "path": "src/others/observer/lv_observer.h", "from_line": 548, "to_line": 564, "role": "cause" } ]
lv_observer.h:548 #if LV_USE_LABEL ... lv_observer_t * lv_spangroup_bind_span_text(...); lv_observer.c:795 #if LV_USE_SPAN.
Must name the wrong preprocessor guard. A comment only saying the doc text says Label (R6/C26) is D14, not this.
true
[]
[]
[ "C14", "C17", "C60", "N5", "N15", "N19" ]
null
null
null
lvgl/lvgl
e526b2a1faa4672eeb3610b466ecc25b1abb220b
lvgl__lvgl@e526b2a
rest145
2
D11
Named-style grid branch matches the prefixed names, so the schema's grid_*_dsc_array style props are ignored
lv_xml_style_register matches unprefixed property names (SET_STYLE_IF uses #prop, lv_xml_style.c:45) and globals.xml:315-316 declares `grid_column_dsc_array`/`grid_row_dsc_array` for styles, but the new branch (lv_xml_style.c:284-285) only accepts `style_grid_column_dsc_array`/`style_grid_row_dsc_array`. A <style> usin...
bug
medium
[ { "path": "src/others/xml/lv_xml_style.c", "from_line": 284, "to_line": 285, "role": "cause" }, { "path": "xmls/globals.xml", "from_line": 315, "to_line": 316, "role": "other-site" } ]
lv_xml_style.c:45 #define SET_STYLE_IF(prop, value) if(lv_streq(name, #prop)) ...; :284 else if(lv_streq(name, "style_grid_column_dsc_array") || lv_streq(name, "style_grid_row_dsc_array")); globals.xml adds <prop name="grid_column_dsc_array" .../>. Compare the obj parser whose macro prefixes "style_" (lv_xml_obj_parser...
Must say the named-style parser checks the style_-prefixed name while styles (and the schema) use unprefixed names, so the feature does not work in named styles.
false
[]
[]
[ "C8", "C59", "N14", "N23" ]
null
null
null
lvgl/lvgl
e526b2a1faa4672eeb3610b466ecc25b1abb220b
lvgl__lvgl@e526b2a
rest145
2
D12
grid_update early return also skips the size refresh and LAYOUT_CHANGED for an empty grid
calc() returns LV_RESULT_INVALID (after zeroing the result) when the container has no children (lv_grid.c:233-236). Previously grid_update carried on, refreshed a content-sized container (lv_obj_refr_size) and sent LV_EVENT_LAYOUT_CHANGED; the new `if(res != LV_RESULT_OK) return;` (lv_grid.c:194) skips both, so a LV_SI...
bug
medium
[ { "path": "src/layouts/grid/lv_grid.c", "from_line": 192, "to_line": 194, "role": "cause" }, { "path": "src/layouts/grid/lv_grid.c", "from_line": 213, "to_line": 219, "role": "symptom" } ]
calc: if(lv_obj_get_child(cont, 0) == NULL) { lv_memzero(calc_out, ...); return LV_RESULT_INVALID; } (same at base); grid_update tail: if(w_set == LV_SIZE_CONTENT || h_set == LV_SIZE_CONTENT) lv_obj_refr_size(cont); lv_obj_send_event(cont, LV_EVENT_LAYOUT_CHANGED, NULL); now unreachable when res != OK.
Must say the early return also bypasses the empty-grid size refresh / LAYOUT_CHANGED. A comment only about leaking calc arrays is D6.
false
[]
[]
[ "C25", "N19" ]
null
null
null
lvgl/lvgl
e526b2a1faa4672eeb3610b466ecc25b1abb220b
lvgl__lvgl@e526b2a
rest145
2
D13
Named-style grid descriptor arrays are never freed
The named-style branch lv_mallocs dsc_array and stores only the pointer in the style (lv_xml_style.c:311-316). Scope teardown calls lv_style_reset (lv_xml_component.c:294), which frees the style's property storage, not the pointed-to array, and nothing else owns it, so every registered grid style leaks its arrays (unli...
resource
low
[ { "path": "src/others/xml/lv_xml_style.c", "from_line": 311, "to_line": 316, "role": "cause" } ]
lv_style_set_grid_column_dsc_array(style, dsc_array); no free anywhere; lv_xml_component.c:294 lv_style_reset(&style->style); obj parser path adds lv_obj_add_event_cb(obj, lv_event_free_user_data_cb, LV_EVENT_DELETE, dsc_array).
Must say the array is never released (on style reset/replacement/teardown). Freeing it immediately after setting (R12's suggested fix) would be a use-after-free, but R12 does identify the leak at this site.
false
[]
[ "R12" ]
[ "C2", "C36", "C52", "N13", "N21" ]
null
null
null
lvgl/lvgl
e526b2a1faa4672eeb3610b466ecc25b1abb220b
lvgl__lvgl@e526b2a
rest145
2
D14
lv_spangroup_bind_span_text doc copied from the label binding is wrong
The new declaration's doc (lv_observer.h:550-559) says it binds a Subject 'to a Label' and that `fmt == NULL` can only be used with string/pointer subjects, but the function binds a spangroup's span and, like the implementation shows (lv_observer.c:802-812), defaults to "%d"/"%0.1f" for int/float subjects when fmt is N...
maintainability
low
[ { "path": "src/others/observer/lv_observer.h", "from_line": 550, "to_line": 559, "role": "cause" } ]
lv_observer.h: "Bind an integer, string, or pointer Subject to a Label." / "@note fmt == NULL can be used only with string and pointer Subjects."; lv_observer.c: if(fmt == NULL) { if(subject->type == LV_SUBJECT_TYPE_INT) fmt = "%d"; ... }
Either the 'Label' mistake or the wrong NULL-fmt note counts. A comment about the #if guard is D10.
false
[]
[ "R6" ]
[ "C26", "C58" ]
null
null
{"bots": ["cubic"], "dataset_refs": ["R6"], "references": ["src/others/observer/lv_observer.h:551-551:1c267c7ee314"], "hunt": false, "note": "Not scored. The cited AACR reference is a reworded review-bot comment from the original PR; the defect itself was checked against the code."}
lvgl/lvgl
e526b2a1faa4672eeb3610b466ecc25b1abb220b
lvgl__lvgl@a0067e3
rest145
2
D1
Not advancing the index at '\0' makes length-bounded scans that include the terminator loop forever (e.g. tapping the last line of a centred/right-aligned label or roller)
lv_text_utf8_next now returns without incrementing *i when txt[*i] == '\0' (lv_text.c:653); before, NUL took the ASCII branch and advanced *i. Loops that iterate `while(i < length)` calling lv_text_encoded_letter_next_2 — lv_text_get_width (lv_text.c:399-402) and lv_text_get_width_with_flags (:432-435) — therefore make...
bug
high
[ { "path": "src/misc/lv_text.c", "from_line": 652, "to_line": 653, "role": "cause" }, { "path": "src/misc/lv_text.c", "from_line": 432, "to_line": 435, "role": "symptom" }, { "path": "src/misc/lv_text.c", "from_line": 399, "to_line": 402, "role": "symptom" },...
lv_text.c:653 `if(txt == NULL || txt[*i] == '\0') return result;`; lv_text.c:540-541 letter_next_2 = `*letter = lv_text_encoded_next(txt, ofs); *letter_next = *letter != '\0' ? ... : 0;` (ofs unchanged at NUL); lv_text.c:432-435 `while(i < length) { ... lv_text_encoded_letter_next_2(txt, &letter, &letter_next, &i);`; l...
Must say the early return at NUL leaves *i unadvanced so a caller looping on a byte length / index that reaches or passes the terminator never terminates (hang / infinite loop). Naming lv_text_get_width(_with_flags), lv_label_get_letter_on or get_char_id as the stuck caller all count. A vague 'callers might expect *i t...
false
[]
[ "R2" ]
[ "C2", "C3", "C5", "N2", "N3" ]
null
null
null
lvgl/lvgl
a0067e3984cc95bb3ed0dce9abb664ee6a01a199
cline__cline@419534c
rest145
2
D1
Floating commit() promise has no rejection handler: a failed checkpoint commit becomes an unhandled rejection and leaves a hash-less checkpoint row in the chat
CheckpointTracker.commit() rethrows every failure (CheckpointTracker.ts:189-195 `throw new Error("Failed to create checkpoint: ...")`). At src/core/task/index.ts:1322 the promise is started with `.then(async ...)` and neither awaited nor given a `.catch`, so any git failure (lock contention, add/commit error, shadow re...
bug
medium
[ { "path": "src/core/task/index.ts", "from_line": 1321, "to_line": 1334, "role": "cause" }, { "path": "src/integrations/checkpoints/CheckpointTracker.ts", "from_line": 189, "to_line": 195, "role": "other-site" } ]
index.ts:1321 `await this.say("checkpoint_created")`; 1322 `this.checkpointTracker.commit().then(async (commitHash) => {` ... 1334 `})` with no catch. CheckpointTracker.ts:189 `} catch (error) {` ... `throw new Error(`Failed to create checkpoint: ...`)`. Base side awaited commit() and only said checkpoint_created `if (...
Must say the background commit promise is unhandled (no catch / not awaited) so failures become unhandled rejections and/or leave a checkpoint message with no hash. A generic 'consider error handling' without tying it to the floating promise is borderline.
true
[]
[ "R2" ]
[ "C4", "C10", "C11", "N1", "N8", "N11", "N12" ]
null
null
{"bots": ["GitHub Copilot"], "dataset_refs": ["R2"], "references": ["src/core/task/index.ts:1322-1322:4bc9d4c81547"], "hunt": true, "note": "Not scored. The cited AACR reference is a reworded review-bot comment from the original PR; the defect itself was checked against the code."}
cline/cline
419534ccd4241fc11827741eb0d76ba0c9d21277
cline__cline@419534c
rest145
2
D2
Background commit races with later work: hash can land on the wrong checkpoint message and the snapshot can include later edits or collide with the next commit
Because saveCheckpoint now returns before the git commit finishes (index.ts:1322), the task proceeds to the next API request/tool while `git add`/`git commit` is still running on the shadow repo. (a) When the commit resolves, the hash is written to `findLastIndex(... m.say === "checkpoint_created")` evaluated at comple...
concurrency
medium
[ { "path": "src/core/task/index.ts", "from_line": 1321, "to_line": 1334, "role": "cause" }, { "path": "src/core/task/index.ts", "from_line": 1363, "to_line": 1363, "role": "other-site" } ]
index.ts:1324 `const lastCheckpointMessageIndex = findLastIndex(this.messageStateHandler.getClineMessages(), (m) => m.say === "checkpoint_created")` inside the .then callback; saveCheckpoint is called from ~30 sites in ToolExecutor.ts (233, 247, 458, ...), each after which execution continues immediately; the comment a...
Count if the comment identifies that the async commit is not tied to its own message (index captured at resolve time) OR that it races with subsequent checkpoint/commits/file edits. Should capture the index before the commit or serialize commits.
true
[]
[]
[ "C2", "C3", "C5", "C6", "C8", "C12", "N1", "N2", "N3", "N4", "N5", "N6", "N7", "N10" ]
null
null
null
cline/cline
419534ccd4241fc11827741eb0d76ba0c9d21277
cline__cline@419534c
rest145
2
D3
Checkpoint row is shown (with Restore/Compare) before its hash exists; Restore in that window silently resets to an older checkpoint
saveCheckpoint now says 'checkpoint_created' (index.ts:1321) before commit() has produced a hash, and the webview renders its checkpoint controls immediately. While the background commit is running (seconds on large shadow repos, per the PR's own comment at 1319) the row has no lastCheckpointHash: Compare logs 'No chec...
bug
low
[ { "path": "src/core/task/index.ts", "from_line": 1321, "to_line": 1321, "role": "cause" }, { "path": "src/core/task/index.ts", "from_line": 429, "to_line": 433, "role": "symptom" } ]
index.ts:1321 `await this.say("checkpoint_created")` before 1322 `this.checkpointTracker.commit().then(...)`; index.ts:429-431 `} else if (!offset && lastMessageWithHash.lastCheckpointHash && this.checkpointTracker) { // Fallback: restore to most recent checkpoint when target message has no checkpoint hash`; index.ts:5...
Must say the checkpoint UI/actions are available before the hash exists (pending window), leading to a wrong/older restore or a no-op compare. The permanent hashless row after a FAILED commit belongs to D1; the hash being written to the wrong (newer) row belongs to D2.
false
[]
[]
[ "C1", "C9" ]
null
null
null
cline/cline
419534ccd4241fc11827741eb0d76ba0c9d21277
cline__cline@f098af0
rest145
2
D1
Every superseded command_output ask is logged as a STREAM_TIMEOUT terminal hang
flushBuffer's `this.ask("command_output", chunk)` (src/core/task/index.ts:1518) waits until the user answers or lastMessageTs changes; ask() then throws "Current ask promise was ignored" (index.ts:845-846), which its own comment names as the expected outcome for command_output. Because flushBuffer returns early while c...
bug
medium
[ { "path": "src/core/task/index.ts", "from_line": 1531, "to_line": 1533, "role": "cause" }, { "path": "src/core/task/index.ts", "from_line": 842, "to_line": 847, "role": "other-site" } ]
index.ts:842-846 `await pWaitFor(() => this.taskState.askResponse !== undefined || this.taskState.lastMessageTs !== askTs ...); if (this.taskState.lastMessageTs !== askTs) { throw new Error("Current ask promise was ignored") // could happen if we send multiple asks in a row i.e. with command_output`; index.ts:1531-1533...
Must say the catch labels an ordinary ask rejection (superseded/ignored ask or abort) as STREAM_TIMEOUT, i.e. false hang telemetry on the normal path. Timer-leak comments (R2/R4) do not count; the BUFFER_STUCK user-wait issue is D2.
true
[]
[]
[ "C1", "C21", "C24", "N6" ]
null
null
null
cline/cline
f098af0f52bf1cdb7eb561c380caef5746b58d40
cline__cline@f098af0
rest145
2
D2
BUFFER_STUCK timer clocks the pending user prompt, so any command-output ask open for 30s is reported as a stuck buffer
The 30s bufferStuckTimer (index.ts:1511-1515) is started after outputBuffer has already been drained (index.ts:1505-1508) and spans `await this.ask("command_output", chunk)`, which waits for the user (or supersession). As the first ask normally stays open for the whole command run, any command that streams output for m...
bug
low
[ { "path": "src/core/task/index.ts", "from_line": 1510, "to_line": 1518, "role": "cause" } ]
index.ts:1505-1507 `const chunk = outputBuffer.join("\n"); outputBuffer = []; outputBufferSize = 0`; 1511-1514 `bufferStuckTimer = setTimeout(() => { telemetryService.captureTerminalHang(TerminalHangStage.BUFFER_STUCK) ...}, BUFFER_STUCK_TIMEOUT_MS)`; 1518 `await this.ask("command_output", chunk)`; timer cleared only i...
Must say the BUFFER_STUCK timer covers the time spent waiting on the ask/user response (or a healthy long run), producing false stuck-buffer events.
true
[]
[]
[ "C20", "C31", "C33", "N1", "N2", "N7", "N6" ]
null
null
null
cline/cline
f098af0f52bf1cdb7eb561c380caef5746b58d40
cline__cline@f098af0
rest145
2
D3
WAITING_FOR_COMPLETION hang is emitted for every command that legitimately runs longer than 60s
completionTimer (index.ts:1577-1582) fires `captureTerminalHang(WAITING_FOR_COMPLETION)` if 'completed' has not arrived 60s after the command started, with no notion of progress. Builds, test suites, installs and dev servers that are running normally (and producing output) are all counted as terminal hangs, so the hang...
bug
low
[ { "path": "src/core/task/index.ts", "from_line": 1573, "to_line": 1582, "role": "cause" } ]
index.ts:1575 `const COMPLETION_TIMEOUT_MS = 60000`; 1578-1581 `completionTimer = setTimeout(() => { if (!completed) { telemetryService.captureTerminalHang(TerminalHangStage.WAITING_FOR_COMPLETION) ...`; only cleared on 'completed' or after `await process`.
Must say the 60s completion timer flags normal long-running commands as hangs (elapsed time rather than lack of progress).
false
[]
[]
[ "C5", "C13" ]
null
null
null
cline/cline
f098af0f52bf1cdb7eb561c380caef5746b58d40
cline__cline@f098af0
rest145
2
D4
Unguarded second getLatestTerminalOutput() call can reject and leave the command (and task) waiting forever
returnCurrentTerminalContents wraps getLatestTerminalOutput in try/catch (TerminalProcess.ts:30-40). The PR adds a second, unguarded `await getLatestTerminalOutput()` for telemetry (TerminalProcess.ts:198 in the empty-output shell-integration path, :229 in the no-shell-integration path). getLatestTerminalOutput reads/w...
bug
medium
[ { "path": "src/integrations/terminal/TerminalProcess.ts", "from_line": 198, "to_line": 198, "role": "cause" }, { "path": "src/integrations/terminal/TerminalProcess.ts", "from_line": 229, "to_line": 229, "role": "cause" }, { "path": "src/integrations/terminal/TerminalManag...
TerminalProcess.ts:31-39 `try { const terminalSnapshot = await getLatestTerminalOutput() ... } catch (error) { console.error(...) }`; :198 and :229 `const terminalSnapshot = await getLatestTerminalOutput()` with no try; :216-217 / :237-239 emit completed/continue only afterwards; TerminalManager.ts:181-188 `new Promise...
Must say the new second capture is not error-guarded so a rejection skips completed/continue and strands the command. Merely noting the call is duplicated/slow (D5) does not count.
false
[]
[]
[ "C9", "C12", "C15", "C19", "C27", "C28", "N3", "N4", "N10", "N6" ]
null
null
null
cline/cline
f098af0f52bf1cdb7eb561c380caef5746b58d40
cline__cline@f098af0
rest145
2
D5
Telemetry re-runs the clipboard/select-all terminal capture and classifies a different snapshot than the one delivered
returnCurrentTerminalContents() already calls getLatestTerminalOutput(), which saves the clipboard, runs terminal selectAll/copySelection/clearSelection and restores the clipboard. Purely to choose a telemetry event, the PR calls getLatestTerminalOutput() again (TerminalProcess.ts:198 for empty shell-integration output...
performance
low
[ { "path": "src/integrations/terminal/TerminalProcess.ts", "from_line": 196, "to_line": 203, "role": "cause" }, { "path": "src/integrations/terminal/TerminalProcess.ts", "from_line": 227, "to_line": 234, "role": "cause" }, { "path": "src/integrations/terminal/TerminalProce...
TerminalProcess.ts:32 `const terminalSnapshot = await getLatestTerminalOutput()` inside returnCurrentTerminalContents; :196-198 `await returnCurrentTerminalContents()` then `const terminalSnapshot = await getLatestTerminalOutput()`; same at :227-229. get-latest-output.ts: readTextFromClipboard, executeCommand('workbenc...
Must identify the duplicate capture (second clipboard/select-all) or that success is classified from a second snapshot rather than the delivered one. The unguarded-rejection hang is D4.
true
[]
[]
[ "C22", "C23", "C26", "C30", "N6" ]
null
null
null
cline/cline
f098af0f52bf1cdb7eb561c380caef5746b58d40
cline__cline@f098af0
rest145
2
D6
Empty shell-integration output is reported with failure reason TIMEOUT
TerminalProcess.ts:193-195 records `TerminalOutputFailureReason.TIMEOUT` whenever the shell-integration stream finished with empty/whitespace output. That branch is reached only after `for await (let data of stream)` ended normally; nothing timed out, and silent successful commands (e.g. `true`, `mkdir`) land here, ske...
bug
low
[ { "path": "src/integrations/terminal/TerminalProcess.ts", "from_line": 193, "to_line": 195, "role": "cause" } ]
TerminalProcess.ts:193 `if (!this.fullOutput.trim()) {` 195 `telemetryService.captureTerminalOutputFailure(TerminalOutputFailureReason.TIMEOUT)`, after the stream loop ends.
Comment must say TIMEOUT is the wrong/misleading reason for empty output (including silent commands).
true
[]
[ "R5" ]
[ "C10", "C17", "C35", "N5", "N9" ]
null
null
null
cline/cline
f098af0f52bf1cdb7eb561c380caef5746b58d40
cline__cline@f098af0
rest145
2
D7
'Proceed while running' clicks that carry typed feedback are not counted as interventions
The intervention event is recorded only when `response === "yesButtonClicked"` (index.ts:1519-1521). The webview's 'proceed' handler sends yesButtonClicked only when the input is empty; with text/images/files it calls handleSendMessage, which answers the ask as a messageResponse (useMessageHandlers.ts:170-180). Those P...
incomplete-fix
low
[ { "path": "src/core/task/index.ts", "from_line": 1519, "to_line": 1521, "role": "cause" }, { "path": "webview-ui/src/components/chat/chat-view/hooks/useMessageHandlers.ts", "from_line": 170, "to_line": 180, "role": "other-site" } ]
index.ts:1519-1521 `if (response === "yesButtonClicked") { telemetryService.captureTerminalUserIntervention(TerminalUserInterventionAction.PROCESS_WHILE_RUNNING)`; useMessageHandlers.ts `case "proceed": if (hasContent) { await handleSendMessage(trimmedInput || "", images || [], files || []) } else { ... responseType: "...
Must say Proceed-with-content (messageResponse) clicks are missed by the intervention telemetry.
false
[]
[]
[ "C16" ]
null
null
null
cline/cline
f098af0f52bf1cdb7eb561c380caef5746b58d40
cline__cline@d0a8db8
rest145
2
D1
Unconditional [PERF] debug console.log left in hot production paths (getAllExtensionState runs on every state post)
The PR ships development timing instrumentation as unconditional console.log calls with no debug flag: getAllExtensionState (state.ts:79-80, 230-231, 235-236, 302-303, 341-345) logs ~7 lines per call and is called from Controller state-to-webview paths (controller/index.ts:142, 261, 835 etc.) that run on almost every U...
maintainability
low
[ { "path": "src/core/storage/state.ts", "from_line": 79, "to_line": 80, "role": "cause" }, { "path": "src/core/storage/state.ts", "from_line": 230, "to_line": 231, "role": "other-site" }, { "path": "src/core/storage/state.ts", "from_line": 302, "to_line": 303, ...
state.ts:80 `console.log("[PERF] getAllExtensionState: Starting state retrieval")`; state.ts:626 `console.log(`[PERF] OPTIMIZED updateApiConfiguration took: ${totalTime}ms (was ~535ms, now should be <50ms)`)`; getAllExtensionState callers at src/core/controller/index.ts:142, 261, 391, 476, 835, 1006 and browser handler...
Counts if a comment says the [PERF] console logging is debug instrumentation to remove or gate behind a flag/logger (any logging site). Pure refactor suggestions (timing helper, log-prefix constant) and log-wording nits do not count.
true
[]
[ "R1", "R4", "R5", "R6", "R7", "R8", "R10", "R14", "R15" ]
[ "C4", "N4" ]
null
null
{"bots": ["GitHub Copilot"], "dataset_refs": ["R14"], "references": ["webview-ui/src/components/settings/utils/useApiConfigurationHandlers.ts:22-22:c44b98524269"], "hunt": true, "note": "Not scored. The cited AACR reference is a reworded review-bot comment from the original PR; the defect itself was checked against the...
cline/cline
d0a8db831cbe657faf792f00c0e3325de0b75fb4
cline__cline@d0a8db8
rest145
2
D2
New comments/log text misstate the batching: still one storage call per key, and the hard-coded counts are wrong
The new comments say updates are batched 'into 2 operations instead of 47' (state.ts:538) and secrets 'into 1 operation instead of 23' (state.ts:584), but updateGlobalStateBatch/updateSecretsBatch still issue one globalState.update / storeSecret per key via Promise.all (state.ts:36, 47) - only the scheduling changes. T...
maintainability
low
[ { "path": "src/core/storage/state.ts", "from_line": 538, "to_line": 584, "role": "cause" }, { "path": "src/core/storage/state.ts", "from_line": 32, "to_line": 51, "role": "other-site" }, { "path": "src/core/storage/state.ts", "from_line": 231, "to_line": 231, ...
state.ts `// OPTIMIZED: Batch all global state updates into 2 operations instead of 47`, `// Global state updates (27 keys)` followed by 29 keys; `// OPTIMIZED: Batch all secret updates into 1 operation instead of 23` followed by 24 keys; helper `await Promise.all(Object.entries(updates).map(([key, value]) => context.g...
Counts if a comment says the 'batched into N operations' comments are misleading (still per-key calls), or that the hard-coded key/read counts or the '<50ms' prediction are wrong. A comment only asking to remove the logs belongs to D1.
false
[]
[]
[ "C3", "C6", "C9", "C10", "C11", "N4" ]
null
null
null
cline/cline
d0a8db831cbe657faf792f00c0e3325de0b75fb4
cline__cline@ca7f02b
rest145
2
D1
Proto conversions use a `ulid` field that the proto schema/generated types do not have (still task_id/taskId): type-check fails and the id is dropped
proto/cline/state.proto:133 and proto/cline/models.proto:178 still declare `optional string task_id = 3;` and were not changed, so the ts-proto generated ApiConfiguration / ModelsApiConfiguration expose `taskId`, not `ulid`. settings-conversion.ts:12 passes `ulid: config.ulid` to ProtoApiConfiguration.create and :139 r...
build
high
[ { "path": "src/shared/proto-conversions/state/settings-conversion.ts", "from_line": 12, "to_line": 12, "role": "cause" }, { "path": "src/shared/proto-conversions/state/settings-conversion.ts", "from_line": 139, "to_line": 139, "role": "cause" }, { "path": "src/shared/prot...
`git grep task_id <head> -- proto/` -> state.proto:133 and models.proto:178 `optional string task_id = 3;`; no proto file in the diff. settings-conversion.ts:12 `ulid: config.ulid,`, :139 `ulid: protoConfig.ulid,`; api-configuration-conversion.ts:332 `ulid: config.ulid,`, :464 `ulid: protoConfig.ulid,`.
Must say the conversion's `ulid` does not match the proto schema / generated type (field still task_id/taskId) -> type error or the value is lost. A comment framed only as backward compatibility of previously persisted settings, without the schema mismatch, is a near-miss.
true
[]
[ "R7", "R8" ]
[ "C2", "C3", "C7", "C8", "C11", "C12", "N1", "N2", "N3", "N5" ]
null
null
null
cline/cline
ca7f02b8cf8cd36d832a63e1c9ad892356c7df66
cline__cline@ca7f02b
rest145
2
D2
captureCheckpointUsage now labels its id `ulid` but all checkpoint callers still pass the disk taskId
TelemetryService.captureCheckpointUsage (TelemetryService.ts:336-349) now takes and emits `ulid`, but CheckpointTracker.ts:127,187,263,341,370 and CheckpointGitOperations.ts:103 still pass the timestamp taskId. The checkpoint telemetry migration is incomplete: a taskId would be reported under the `ulid` key and could n...
incomplete-fix
low
[ { "path": "src/services/posthog/telemetry/TelemetryService.ts", "from_line": 336, "to_line": 349, "role": "cause" }, { "path": "src/integrations/checkpoints/CheckpointTracker.ts", "from_line": 187, "to_line": 187, "role": "symptom" }, { "path": "src/integrations/checkpoin...
TelemetryService.ts:336 `public captureCheckpointUsage(ulid: string, ...` and :348 `ulid,`; CheckpointTracker.ts:187 `telemetryService.captureCheckpointUsage(this.taskId, "commit_created", durationMs)`; CheckpointGitOperations.ts:103 `captureCheckpointUsage(taskId, ...)`.
Must point out that checkpoint telemetry callers still pass taskId while the property is now named ulid (checkpoint call sites not migrated).
true
[]
[]
[ "C1", "C4", "N1", "N4", "N6" ]
null
null
null
cline/cline
ca7f02b8cf8cd36d832a63e1c9ad892356c7df66
cline__cline@ca7f02b
rest145
2
D3
New option-selected event in ask_followup_question hard-codes mode "act", mislabelling plan-mode follow-up selections
The PR adds `telemetryService.captureOptionSelected(this.ulid, options.length, "act")` in the ask_followup_question handler (ToolExecutor.ts:1719). ask_followup_question is also used in PLAN MODE (system prompt: 'When starting in PLAN MODE ... You may also ask the user clarifying questions with ask_followup_question'),...
data
low
[ { "path": "src/core/task/ToolExecutor.ts", "from_line": 1719, "to_line": 1719, "role": "cause" } ]
ToolExecutor.ts:1719 `telemetryService.captureOptionSelected(this.ulid, options.length, "act")` (new line in diff); TelemetryService.ts:479 `captureOptionSelected(ulid: string, qty: number, mode: Mode)`; system.ts ~573 permits ask_followup_question in plan mode.
Must say the new option-selected telemetry records a fixed "act" mode even when the follow-up question is asked in plan mode.
false
[]
[]
[ "C16" ]
null
null
null
cline/cline
ca7f02b8cf8cd36d832a63e1c9ad892356c7df66
cline__cline@cb4d5c9
rest145
2
D1
Client selection keys on the substring 'deepseek' in the base URL: Azure OpenAI URLs containing 'deepseek' lose the AzureOpenAI client, and Azure DeepSeek endpoints without it still get AzureOpenAI
openai.ts:17 picks the plain OpenAI client whenever openAiBaseUrl contains 'deepseek', before the azure.com check at :22, without looking at the endpoint type or model. (a) An Azure OpenAI URL that happens to contain 'deepseek' (resource or deployment name, e.g. https://x.openai.azure.com/openai/deployments/deepseek-r1...
incomplete-fix
medium
[ { "path": "src/api/providers/openai.ts", "from_line": 17, "to_line": 27, "role": "cause" } ]
openai.ts:17-21 `if (this.options.openAiBaseUrl?.toLowerCase().includes("deepseek")) { this.client = new OpenAI({ baseURL, apiKey }) } else if (this.options.openAiBaseUrl?.toLowerCase().includes("azure.com")) { this.client = new AzureOpenAI({ baseURL, apiKey, apiVersion: this.options.azureApiVersion || azureOpenAiDefau...
Must criticise the base-URL 'deepseek' substring as the client-selection criterion (misroutes Azure URLs containing deepseek / precedes the Azure check / misses Azure DeepSeek URLs without the substring). Comments only about the model-id includes() checks or duplication do not count.
true
[]
[ "R1" ]
[ "C2", "C3", "C4", "C10", "N1", "N5", "N6" ]
null
null
null
cline/cline
cb4d5c90460885942cbbae0298b95f4ee5682086
browser-use__browser-use@0b21e50
rest145
2
D1
chrome_remote_debugging_port is typed int | None but None is never handled: builtin launch crashes with TypeError and URLs become localhost:None
BrowserConfig declares `chrome_remote_debugging_port: int | None = CHROME_DEBUG_PORT` (browser.py:111), so pydantic accepts an explicit None (e.g. a user trying to disable the debugging port). No code path handles None: _setup_builtin_browser formats '--remote-debugging-port=None' (:277) and then calls `s.connect_ex(('...
contract
low
[ { "path": "browser_use/browser/browser.py", "from_line": 111, "to_line": 111, "role": "cause" }, { "path": "browser_use/browser/browser.py", "from_line": 290, "to_line": 292, "role": "symptom" }, { "path": "browser_use/browser/browser.py", "from_line": 200, "to_li...
browser.py:111 `chrome_remote_debugging_port: int | None = CHROME_DEBUG_PORT`; :277 `CHROME_DEBUGGING_ARG % {'chrome_remote_debugging_port': self.config.chrome_remote_debugging_port}`; :291 `if s.connect_ex(('localhost', self.config.chrome_remote_debugging_port)) == 0:`; chrome.py:97 `CHROME_DEBUGGING_ARG = '--remote-d...
Must say that the Optional/None port is not handled (TypeError in connect_ex or a 'None' port in URLs/args), or that the field should be a plain int. R2 counts. Comments that only ask for range validation (out-of-range ints) without the None case are near-misses; C16 counts because it names None -> TypeError.
true
[]
[ "R2" ]
[ "C4", "C16", "C18", "N1", "N2", "N6", "N11" ]
null
null
null
browser-use/browser-use
0b21e50ca640581ecd46990475c8b223eaa05045
browser-use__browser-use@0b21e50
rest145
2
D2
New custom-port test mocks requests.get, which the code never uses, so it depends on the host's real port 9223 and may skip the launch it claims to verify
test_user_provided_browser_launch_on_custom_chrome_remote_debugging_port (tests/test_browser.py:160-233) monkeypatches requests.get (:173-180), but _setup_user_provided_browser probes with httpx.AsyncClient.get (browser.py:199-213, :238-247). The mock is dead: on a machine where nothing listens on 9223 the real pre-pro...
maintainability
low
[ { "path": "tests/test_browser.py", "from_line": 173, "to_line": 180, "role": "cause" }, { "path": "tests/test_browser.py", "from_line": 190, "to_line": 196, "role": "symptom" }, { "path": "browser_use/browser/browser.py", "from_line": 199, "to_line": 213, "rol...
tests/test_browser.py:180 `monkeypatch.setattr(requests, 'get', dummy_get)`; browser.py:200-203 `async with httpx.AsyncClient() as client: response = await client.get(f'http://localhost:{self.config.chrome_remote_debugging_port}/json/version', timeout=2)`; :238-247 ten-attempt httpx loop with `await asyncio.sleep(1)`; ...
Must say the test patches requests.get while the code uses httpx (so the mock is ineffective / the test depends on the real port), or that the launch assertion may never run because nothing checks the subprocess mock was called. Generic 'add more tests' does not count.
false
[]
[]
[ "C2", "C12", "C17", "C5", "N5", "N6", "N7", "N10" ]
null
null
null
browser-use/browser-use
0b21e50ca640581ecd46990475c8b223eaa05045
browser-use__browser-use@0b21e50
rest145
2
D3
Documented 'launch another Chrome without closing open ones' does not work: a different port alone does not give the new process its own profile
The new BrowserConfig doc (browser.py:82-86) and the PR promise that a non-default chrome_remote_debugging_port lets users launch the user-provided Chrome without closing already-open instances and run several with the same binary. The launch (browser.py:217-235) passes no --user-data-dir (it is commented out in CHROME...
incomplete-fix
low
[ { "path": "browser_use/browser/browser.py", "from_line": 217, "to_line": 235, "role": "cause" }, { "path": "browser_use/browser/browser.py", "from_line": 82, "to_line": 86, "role": "other-site" }, { "path": "browser_use/browser/chrome.py", "from_line": 100, "to_li...
browser.py:84-85 `Also, makes it possible to launch new user provided chrome browser without closing already opened chrome instances, by providing non-default chrome debugging port.`; chrome.py:102 `# f'--user-data-dir={CHROME_PROFILE_PATH}', # managed by playwright arg instead`; launch args at browser.py:217-227 c...
Must say that a separate port without a separate user-data-dir/profile does not let a second Chrome start alongside a running one (the invocation is forwarded to the existing process), so the promised concurrent launch fails. Comments that only ask for docs updates (C7) or error-message changes (C8/C13) do not count.
false
[]
[]
[ "C3", "C9", "N4", "N8" ]
null
null
null
browser-use/browser-use
0b21e50ca640581ecd46990475c8b223eaa05045
browser-use__browser-use@72f1585
rest145
2
D1
thinking_budget hardcoded to -1: the caller's configured budget is ignored
ainvoke checks `if self.thinking_budget is not None` but then always sends `{'thinking_budget': -1}` (chat.py:201-203); the base sent `self.thinking_budget`. A caller who sets thinking_budget=0 to disable thinking, or a positive token cap, now silently gets dynamic (unbounded) thinking, increasing latency and token cos...
contract
high
[ { "path": "browser_use/llm/google/chat.py", "from_line": 201, "to_line": 203, "role": "cause" } ]
chat.py:202 `thinking_config_dict: types.ThinkingConfigDict = {'thinking_budget': -1}`; diff: `-{'thinking_budget': self.thinking_budget}` -> `+{'thinking_budget': -1}`.
Must say the configured thinking_budget value is ignored/overridden by the hardcoded -1. Comments only about the default changing to 0 and older models receiving a thinking config belong to D3.
true
[]
[ "R1" ]
[ "C7", "C8", "C12", "N2", "N4", "N8", "N3" ]
null
null
{"bots": ["Cursor Bugbot"], "dataset_refs": ["R1"], "references": ["browser_use/llm/google/chat.py:202-202:01aa119c67ea"], "hunt": true, "note": "Not scored. The cited AACR reference is a reworded review-bot comment from the original PR; the defect itself was checked against the code."}
browser-use/browser-use
72f1585f9add5b72e829eaee3b5bff684e0b08d3
browser-use__browser-use@72f1585
rest145
2
D2
Retry/backoff removed on the false premise that the genai client retries
The 10-attempt retry loop with exponential backoff for rate-limit/5xx/connection errors was deleted and replaced by one `_make_api_call()` (chat.py:381-384) with the comment 'Let Google client handle retries internally'. get_client() builds genai.Client from only the user's params (chat.py:102-127) with no retry_option...
bug
medium
[ { "path": "browser_use/llm/google/chat.py", "from_line": 381, "to_line": 384, "role": "cause" }, { "path": "browser_use/llm/google/chat.py", "from_line": 102, "to_line": 127, "role": "other-site" } ]
Diff removes `for attempt in range(10)`, `_is_retryable_error`, `await asyncio.sleep(delay)`; head 382-384 `# Let Google client handle retries internally ... return await _make_api_call()`; _get_client_params passes api_key/vertexai/credentials/project/location/http_options only.
Must say removing the retry loop drops resilience to rate limits/transient errors because the client is not configured to retry.
true
[]
[ "R2" ]
[ "N6" ]
null
null
null
browser-use/browser-use
72f1585f9add5b72e829eaee3b5bff684e0b08d3
browser-use__browser-use@72f1585
rest145
2
D3
Default thinking_budget=0 makes every request carry thinking_config, including non-thinking models
Changing the default from None to 0 (chat.py:78) makes the `is not None` guard (201) always true, so every default request now includes thinking_config (with -1), including requests to the listed Gemini 2.0 and Gemma models (chat.py:24-37) that do not support thinking; previously default requests sent no thinking confi...
compat
medium
[ { "path": "browser_use/llm/google/chat.py", "from_line": 78, "to_line": 78, "role": "cause" }, { "path": "browser_use/llm/google/chat.py", "from_line": 201, "to_line": 203, "role": "symptom" } ]
diff `-thinking_budget: int | None = None` / `+thinking_budget: int | None = 0`; 201 `if self.thinking_budget is not None:`; VerifiedGeminiModels includes 'gemini-2.0-flash', 'gemma-3-27b-it' etc.; callers ChatGoogle(model='gemini-2.0-flash-exp') in examples/apps and browser_use/llm/tests.
Must say the new non-None default sends a thinking config on every request, including to models without thinking support. Saying only that the user's value is overridden by -1 is D1.
false
[]
[]
[ "C4", "C10", "C11", "N1", "N5", "N7" ]
null
null
null
browser-use/browser-use
72f1585f9add5b72e829eaee3b5bff684e0b08d3
electron__electron@6084595
rest145
2
D1
New class comment says ClearDataTask's lifetime is managed through CleanedUpAtExit, but it actually deletes itself on completion
The rewritten header comment (electron_api_session.cc:202-203) states the type 'manages its own lifetime through gin_helper::CleanedUpAtExit, ensuring it's destroyed before the node environment shuts down'. The normal destruction path is the `delete this` at the end of OnTaskFinished (:358); CleanedUpAtExit only delete...
maintainability
low
[ { "path": "shell/browser/api/electron_api_session.cc", "from_line": 200, "to_line": 204, "role": "cause" }, { "path": "shell/browser/api/electron_api_session.cc", "from_line": 358, "to_line": 358, "role": "other-site" } ]
head :202 `// This type manages its own lifetime through gin_helper::CleanedUpAtExit,` ; :358 `delete this;` in OnTaskFinished; base comment was `This type manages its own lifetime, deleting itself once the task finishes completely.` cleaned_up_at_exit.cc: DoCleanup deletes remaining registrants only at teardown.
Must say the new ClearDataTask comment is inaccurate/incomplete because the task self-deletes on completion (CleanedUpAtExit only covers shutdown). Suggestions to replace `delete this` with CleanedUpAtExit (R6) do not count.
true
[]
[ "R1" ]
[]
null
null
null
electron/electron
6084595c5608226e961d251bfb5ec138de8022ca
electron__electron@100ad24
rest145
2
D1
Mis-indented edited block is not clang-format clean and fails Electron's C++ lint step
In GetFilterInfo the lambda continuation line uses a 6-space indent (file_dialog_linux.cc:48; Chromium style needs the 4-space continuation, 8 columns here, as before the PR) and `if (has_all_files_wildcard) {` is indented 6 spaces instead of 4 (line 50), so it no longer lines up with its own `} else {` (line 52). Elec...
build
high
[ { "path": "shell/browser/ui/file_dialog_linux.cc", "from_line": 47, "to_line": 52, "role": "cause" } ]
head file_dialog_linux.cc:47-52 ` const bool has_all_files_wildcard = std::ranges::any_of(` / ` extension_group, [](const auto& ext) { return ext == "*"; });` / (blank) / ` if (has_all_files_wildcard) {` / ` file_type_info.include_all_files = true;` / ` } else {`. script/lint.js:102-110 cpp linter ...
Counts if the comment flags the wrong indentation of the `if` or of the any_of continuation line, whether it cites clang-format/lint or only readability. Comments only about the dropped label for the '*' filter do not count.
true
[]
[ "R1", "R2" ]
[ "C1", "N1", "N2" ]
null
null
null
electron/electron
100ad244b742d221ad129e96bef934e8128403a9
electron__electron@2cc5656
rest145
2
D1
Adapter power-on re-runs OnGetDevices, re-emitting select-serial-port for an already-emitted (or already-resolved) request
AdapterPoweredChanged(powered=true) (serial_chooser_controller.cc:165-170) calls GetDevices -> OnGetDevices (221-244), which unconditionally clears/replaces ports_ and emits 'select-serial-port' again with a fresh OnDeviceChosen callback, with no check that this is the first enumeration or that callback_ is still pendi...
bug
medium
[ { "path": "shell/browser/serial/serial_chooser_controller.cc", "from_line": 165, "to_line": 170, "role": "cause" }, { "path": "shell/browser/serial/serial_chooser_controller.cc", "from_line": 228, "to_line": 243, "role": "symptom" }, { "path": "shell/browser/serial/serial...
cc:167-168 `if (powered) { GetDevices(); }`; cc:236-239 `prevent_default = session->Emit("select-serial-port", ports_, web_contents_.get(), base::BindRepeating(&SerialChooserController::OnDeviceChosen, ...))` with no guard; cc:213 `chooser_context_->GrantPortPermission(origin_, *it->get(), rfh);`; cc:273 `adapter_obser...
Must say the Bluetooth power-on refresh re-enters OnGetDevices and re-emits select-serial-port (duplicate selection event / second prompt), or that the refresh silently replaces the port list without added/removed events for an open picker. Generic observer-lifetime or 'refresh on power-off too' (R3) remarks do not cou...
true
[]
[]
[ "C6", "C9", "C10", "C5", "C15", "N2", "N4", "N8" ]
null
null
null
electron/electron
2cc56562e22cd36c70f0b632c3297d62c3c58b06
nodejs__node@e8b6c18
rest145
2
D1
Preview test assumes previews are available; fails under TERM=dumb and on --without-inspector builds
The 'does show previews if `preview` is set to `true`' test (test/parallel/test-repl-custom-eval.js:95-109) asserts the `// 'Hello custom eval World!'` preview line, but setupPreview returns no-op preview handlers when process.env.TERM === 'dumb' (lib/internal/repl/utils.js:141-144) and showPreview returns immediately ...
build
medium
[ { "path": "test/parallel/test-repl-custom-eval.js", "from_line": 95, "to_line": 109, "role": "cause" }, { "path": "test/parallel/test-repl-custom-eval.js", "from_line": 1, "to_line": 8, "role": "other-site" } ]
utils.js:141-144 `if (process.env.TERM === 'dumb' || !active) { return { showPreview() {}, clearPreview() {} }; }`; utils.js:365 `if (inputPreview !== null || !repl.isCompletionEnabled || !process.features.inspector) { return; }`; test-repl-preview.js: `common.skipIfInspectorDisabled();` and `process.env.TERM = '';`; m...
Must say the preview assertion fails when previews are unavailable (TERM=dumb and/or no inspector) and needs a skip/guard. Comments only about eval() usage or global cleanup do not count.
false
[]
[]
[ "C1", "C4", "N1", "N3", "N4" ]
null
null
null
nodejs/node
e8b6c183d46c41b2992c4f5cafceb7f9c6f8710d
sveltejs__svelte@44bec4c
rest145
2
D1
`Map.keys().some()` needs Iterator helpers: compiling any non-runes component throws on Node 18/20 (supported, and in CI)
analyze_component (packages/svelte/src/compiler/phases/2-analyze/index.js:441) evaluates `module.scope.references.keys().some(...)` whenever `!runes && options.runes !== false`. Map.prototype.keys() returns an iterator; Iterator.prototype.some only exists from Node 22 (V8 12.x). packages/svelte/package.json declares en...
compat
high
[ { "path": "packages/svelte/src/compiler/phases/2-analyze/index.js", "from_line": 441, "to_line": 441, "role": "cause" } ]
index.js:441 `!module.scope.references.keys().some((name) => ['$$props', '$$restProps'].includes(name)) &&`; index.js:409 `const runes = options.runes ?? Array.from(module.scope.references.keys()).some(is_rune);`; package.json `"engines": { "node": ">=18" }`; .github/workflows/ci.yml matrix node-version 18 (windows/mac...
Must say `.some` is called on a Map iterator, which is unavailable on supported Node versions / needs Array.from — i.e. compilation throws. Generic remarks about the condition's logic do not count.
true
[]
[]
[ "C10", "C13", "N2", "N4", "N6" ]
null
null
null
sveltejs/svelte
44bec4c8b172a47ff300f754463555bbb694bb05
sveltejs__svelte@44bec4c
rest145
2
D2
Legacy-prop detection misses `export var` / `var x; export { x }` (a second copy of the prop rule that already drifted), so such legacy components lose coarse-grained template tracking
maybe_runes (index.js:442-452) treats a component as explicitly legacy only if it exports a `let` declaration or an export specifier whose binding's declaration_kind is 'let'. The existing export analysis (index.js:514-526 marks every non-const exported VariableDeclaration as bindable_prop; 538-541 accepts declaration_...
incomplete-fix
low
[ { "path": "packages/svelte/src/compiler/phases/2-analyze/index.js", "from_line": 442, "to_line": 452, "role": "cause" }, { "path": "packages/svelte/src/compiler/phases/2-analyze/index.js", "from_line": 514, "to_line": 545, "role": "other-site" }, { "path": "packages/svelt...
index.js:447 `node.declaration.kind === 'let'` and 451 `?.declaration_kind === 'let'` vs 522-526 (non-const → `binding.kind = 'bindable_prop'`) and 538-541 `(binding.declaration_kind === 'var' || binding.declaration_kind === 'let')`; utils.js:390-398 deep_read_state for bindable_prop, skipped when maybe_runes.
Must name `var`-declared exported props (export var / var + export {}) as a missed legacy signal, or say the maybe_runes export scan duplicates/diverges from the existing prop classification. A generic 'other legacy signals such as $: are missed' (R1) does not count.
true
[]
[]
[ "C3", "C4", "C9", "C11", "C8", "N4", "N7", "N8" ]
null
null
null
sveltejs/svelte
44bec4c8b172a47ff300f754463555bbb694bb05
sveltejs__svelte@44bec4c
rest145
2
D3
The new regression samples run under runtime-runes' forced `runes: true`, so they never evaluate maybe_runes and pass without the fix
All four samples live in tests/runtime-runes, whose suite is `runtime_suite(true)` (tests/runtime-runes/test.ts:4); common_setup (tests/runtime-legacy/shared.ts:~150-162) spreads config.compileOptions and then sets `runes` last, so every sample compiles with runes: true and `!runes` short-circuits maybe_runes (index.js...
maintainability
low
[ { "path": "packages/svelte/tests/runtime-runes/samples/legacy-runes-ambiguous/_config.js", "from_line": 4, "to_line": 13, "role": "cause" }, { "path": "packages/svelte/tests/runtime-runes/samples/legacy-runes-ambiguous-export-let/_config.js", "from_line": 13, "to_line": 13, "role...
tests/runtime-runes/test.ts `const { test, run } = runtime_suite(true);`; shared.ts common_setup `const compileOptions = { ..., ...config.compileOptions, immutable: ..., accessors: ..., runes }`; index.js:437 `maybe_runes: !runes && ...`.
Must say the new tests run with runes forced on (runtime-runes suite) so they never reach the maybe_runes path / pass without the fix (or that the export-let fixture's expectation reflects forced-runes behaviour). A mere 'add more tests' request, or the btn?.click optional-chaining nit (C1), does not count.
false
[]
[]
[ "C5", "C7", "C12", "N4", "N5" ]
null
null
null
sveltejs/svelte
44bec4c8b172a47ff300f754463555bbb694bb05
alibaba__spring-ai-alibaba@3555a95
rest145
2
D1
Omitting the optional sourceLanguage makes apply() return null instead of defaulting to zh
The new Request component sourceLanguage is declared optional (@JsonProperty(required = false)) and described to the model as 'default is zh' (AliTranslateService.java:141-142), but apply() now returns null whenever sourceLanguage is blank (AliTranslateService.java:84-87). Tool-call JSON is deserialised through the rec...
bug
medium
[ { "path": "community/tool-calls/spring-ai-alibaba-starter-tool-calling-alitranslate/src/main/java/com/alibaba/cloud/ai/toolcalling/alitranslate/AliTranslateService.java", "from_line": 84, "to_line": 87, "role": "cause" }, { "path": "community/tool-calls/spring-ai-alibaba-starter-tool-calling...
AliTranslateService.java:84-86 `if (request == null || !StringUtils.hasText(request.text) || !StringUtils.hasText(request.sourceLanguage) || !StringUtils.hasText(request.targetLanguage)) { return null; }`; :141-142 `@JsonProperty(required = false, value = "sourceLanguage") @JsonPropertyDescription("Source language of t...
Must say an omitted optional sourceLanguage (or languages generally) is not defaulted and the request returns null, contradicting required=false / the documented default.
true
[]
[ "R4" ]
[ "C1", "C3", "C8", "N1", "N2", "N5", "N7" ]
null
null
null
alibaba/spring-ai-alibaba
3555a95e7b888335d9f72e432eb4f9fb9640e8cd
alibaba__spring-ai-alibaba@3555a95
rest145
2
D2
Adding the sourceLanguage record component removes the public two-argument Request(text, targetLanguage) constructor
AliTranslateService.Request is a public record; before the PR its canonical constructor was Request(String text, String targetLanguage). Inserting sourceLanguage as the middle component (AliTranslateService.java:137-145) replaces it with a 3-arg canonical constructor, and the only other constructor takes just text (:14...
contract
low
[ { "path": "community/tool-calls/spring-ai-alibaba-starter-tool-calling-alitranslate/src/main/java/com/alibaba/cloud/ai/toolcalling/alitranslate/AliTranslateService.java", "from_line": 137, "to_line": 149, "role": "cause" } ]
Base: `public record Request(String text, String targetLanguage) { public Request(String text) { this(text, "en"); } }`; head :137-149 `public record Request(String text, String sourceLanguage, String targetLanguage) { public Request(String text) { this(text, LANGUAGE_CODE_ZH, LANGUAGE_CODE_EN); } }`.
Must point out that the previous public 2-arg Request constructor is gone, breaking source compatibility for callers.
false
[]
[]
[ "C2", "C11", "N3", "N4" ]
null
null
null
alibaba/spring-ai-alibaba
3555a95e7b888335d9f72e432eb4f9fb9640e8cd
alibaba__spring-ai-alibaba@3555a95
rest145
2
D3
InterruptedException from response.get() is swallowed without restoring the interrupt flag
apply() now catches every Exception from response.get() and returns null after logging (AliTranslateService.java:99-107). When the calling thread is interrupted, InterruptedException is caught here and the interrupt status (cleared by the throw) is not restored, so cancellation/shutdown of the caller is silently lost; ...
concurrency
low
[ { "path": "community/tool-calls/spring-ai-alibaba-starter-tool-calling-alitranslate/src/main/java/com/alibaba/cloud/ai/toolcalling/alitranslate/AliTranslateService.java", "from_line": 99, "to_line": 107, "role": "cause" } ]
AliTranslateService.java:99-107 `try { TranslateGeneralResponse resp = response.get(); ... } catch (Exception e) { logger.error("Failed to invoke alitranslate caused by:{}", e.getMessage()); return null; }` — no Thread.currentThread().interrupt().
Must mention the lost interrupt status. Merely objecting that failures now return null instead of throwing is a design complaint and does not count.
false
[]
[]
[ "C12", "C7", "N5", "N6" ]
null
null
null
alibaba/spring-ai-alibaba
3555a95e7b888335d9f72e432eb4f9fb9640e8cd
google-gemini__gemini-cli@77ea28a
rest145
2
D1
Prompt text is JSON.stringify'd before submission, so Gemini receives a quoted, escaped string literal instead of the prompt
The prompt action returns `{ type: 'submit_prompt', content: JSON.stringify(result.messages[0].content.text) }` (promptCommands.ts:144-147). content.text is already a string; JSON.stringify wraps it in double quotes and escapes newlines, quotes and backslashes, so every invoked MCP prompt is sent to the model as e.g. `...
bug
medium
[ { "path": "packages/cli/src/ui/commands/promptCommands.ts", "from_line": 144, "to_line": 147, "role": "cause" } ]
promptCommands.ts:146 `content: JSON.stringify(result.messages[0].content.text),`; line 135 already requires `.text` to be truthy (a string per MCP TextContent).
Must identify that JSON.stringify on the already-string text wraps/escapes it (quotes, \n) in the submitted prompt.
true
[]
[ "R14" ]
[ "C1", "C7", "C12", "N1", "N3", "N15", "N21" ]
null
null
null
google-gemini/gemini-cli
77ea28a234023019ddda3f4a5f7a81b3514d3eb8
google-gemini__gemini-cli@77ea28a
rest145
2
D2
MCP prompt slash commands are named by bare prompt name and appended after built-ins, so they silently override built-in commands and each other
createPromptCommands names each command `${prompt.name}` (promptCommands.ts:28) and BuiltinCommandLoader appends them after all built-ins (BuiltinCommandLoader.ts:70). CommandService.create de-duplicates with a Map where the last command with a given name wins (CommandService.ts: `commandMap.set(cmd.name, cmd)`). So an...
bug
medium
[ { "path": "packages/cli/src/ui/commands/promptCommands.ts", "from_line": 28, "to_line": 28, "role": "cause" }, { "path": "packages/cli/src/services/BuiltinCommandLoader.ts", "from_line": 70, "to_line": 70, "role": "cause" }, { "path": "packages/cli/src/services/CommandSer...
promptCommands.ts:28 `const commandName = `${prompt.name}`;`; BuiltinCommandLoader.ts:70 `...createPromptCommands(this.config),` after `toolsCommand`; CommandService.create: `for (const cmd of allCommands) { commandMap.set(cmd.name, cmd); }` ('The last one found with a given name wins').
Count a comment that prompt command names can collide with built-in commands or across MCP servers (no namespacing / no conflict handling). Generic 'naming' remarks without the collision consequence do not count.
true
[]
[ "R7" ]
[ "C17", "C20", "C26", "C36", "N1", "N5", "N7", "N8", "N13", "N23" ]
null
null
null
google-gemini/gemini-cli
77ea28a234023019ddda3f4a5f7a81b3514d3eb8
google-gemini__gemini-cli@77ea28a
rest145
2
D3
/mcp no longer shows the '/mcp auth <server>' hint for a disconnected OAuth server that has no tools and no prompts
The listing's footer was restructured (mcpCommand.ts:270-281). When serverTools and serverPrompts are both empty it prints only ' No tools or prompts available' and never checks `status === DISCONNECTED && needsAuthHint`. That is exactly the state of an unauthenticated OAuth server (it fails to connect, so it has no t...
bug
low
[ { "path": "packages/cli/src/ui/commands/mcpCommand.ts", "from_line": 270, "to_line": 281, "role": "cause" } ]
mcpCommand.ts:270-271 `if (serverTools.length === 0 && serverPrompts.length === 0) { message += ' No tools or prompts available\n'; } else if (serverTools.length === 0) { ... needsAuthHint ... }`; base mcpCommand.ts:225-229 printed the hint whenever tools were empty and the server was disconnected with needsAuthHint.
Must name the both-empty case (no tools and no prompts) losing the auth hint. R5's claim (hint missing when there are only prompts) is wrong — that case still shows the hint — and does not count.
true
[]
[]
[ "C11", "C13", "N2" ]
null
null
null
google-gemini/gemini-cli
77ea28a234023019ddda3f4a5f7a81b3514d3eb8
google-gemini__gemini-cli@77ea28a
rest145
2
D4
Prompt-only MCP servers (no tools capability) still fail discovery: tools/list errors, the client is closed and the server is marked DISCONNECTED while its prompts stay registered
connectAndDiscover calls discoverPrompts and then discoverTools (mcp-client.ts:424-432). discoverTools calls mcpToTool(mcpClient).tool(), i.e. tools/list, and rethrows any error as 'Error discovering tools' (mcp-client.ts:465-492). A server that only offers prompts answers tools/list with 'Method not found', so the cat...
incomplete-fix
low
[ { "path": "packages/core/src/tools/mcp-client.ts", "from_line": 424, "to_line": 437, "role": "cause" }, { "path": "packages/core/src/tools/mcp-client.ts", "from_line": 465, "to_line": 493, "role": "other-site" } ]
mcp-client.ts:424 `await discoverPrompts(mcpServerName, mcpClient);` 426 `const tools = await discoverTools(...)`; 434-437 `} catch (error) { mcpClient.close(); throw error; }`; discoverTools 490-492 `} catch (error) { throw new Error(`Error discovering tools: ${error}`); }` — no Method-not-found tolerance, unlike disc...
Must say a server without tools (tools/list unsupported) still errors/disconnects even though prompts were discovered; mentioning only the removed 'No enabled tools' check without this consequence is a near-miss.
true
[]
[]
[ "C18", "N1", "N17", "N18" ]
null
null
null
google-gemini/gemini-cli
77ea28a234023019ddda3f4a5f7a81b3514d3eb8
google-gemini__gemini-cli@77ea28a
rest145
2
D5
mcp-client JSDoc describes behaviour the code does not have: 'throws if no enabled tools', 'cleans up if no tools found', and discoverPrompts 'logs their names'
The PR removed the `if (discoveredTools.length === 0) throw Error('No enabled tools found')` check, so a server with zero enabled tools now stays connected with its client open. The JSDoc of discoverTools (mcp-client.ts:457) and of connectAndDiscover (mcp-client.ts:380-382, '...and cleaning up resources if no tools are...
maintainability
low
[ { "path": "packages/core/src/tools/mcp-client.ts", "from_line": 457, "to_line": 457, "role": "cause" }, { "path": "packages/core/src/tools/mcp-client.ts", "from_line": 380, "to_line": 382, "role": "other-site" }, { "path": "packages/core/src/tools/mcp-client.ts", "fro...
mcp-client.ts:457 ` * @throws An error if no enabled tools are found or if the server provides invalid function declarations.`; 382 ` * and cleaning up resources if no tools are found.`; the throw was deleted in this diff (base ~462-464).
Count a comment pointing out any of the inaccurate JSDoc: discoverTools '@throws if no enabled tools', connectAndDiscover 'cleaning up resources if no tools are found', or discoverPrompts 'logs their names' (it caches, never logs).
true
[]
[]
[ "C21" ]
null
null
null
google-gemini/gemini-cli
77ea28a234023019ddda3f4a5f7a81b3514d3eb8
google-gemini__gemini-cli@77ea28a
rest145
2
D6
Invoking a prompt submits only the first message's text; multi-message results are truncated and a non-text first message is rejected
The action checks `result.messages?.[0]?.content?.text` and submits only `result.messages[0].content.text` (promptCommands.ts:135-147). MCP prompts/get returns an array of messages (user/assistant turns, text/image/resource content); every message after the first is silently dropped, and a valid prompt whose first mess...
bug
low
[ { "path": "packages/cli/src/ui/commands/promptCommands.ts", "from_line": 135, "to_line": 147, "role": "cause" } ]
promptCommands.ts:135 `if (!result.messages?.[0]?.content?.text) {` ... 146 `content: JSON.stringify(result.messages[0].content.text)`; GetPromptResultSchema has `messages: z.array(PromptMessageSchema)`.
Must say that messages beyond the first are dropped (or non-text first message rejected). A pure 'check content.type' null-safety remark (R13) does not count: the optional chain already guards the access.
false
[]
[]
[ "C2", "C3", "C34", "N3", "N21", "N22" ]
null
null
null
google-gemini/gemini-cli
77ea28a234023019ddda3f4a5f7a81b3514d3eb8
google-gemini__gemini-cli@77ea28a
rest145
2
D7
Prompt discovery reads only the first page of prompts/list and ignores nextCursor
discoverPrompts sends one `prompts/list` request with empty params and caches `response.prompts` (mcp-client.ts:508-514). ListPromptsResult is paginated (`nextCursor`); on a server that paginates, every prompt after the first page never appears in /mcp and never becomes a slash command.
bug
low
[ { "path": "packages/core/src/tools/mcp-client.ts", "from_line": 508, "to_line": 514, "role": "cause" } ]
mcp-client.ts:508-514 `mcpClient.request({ method: 'prompts/list', params: {} }, ListPromptsResultSchema); const prompts = response.prompts; mcpServerPromptsInternal.set(...)`; no cursor loop.
Must mention pagination / nextCursor being ignored. R20 (normalise undefined prompts to []) does not count.
false
[]
[]
[ "C6", "C10", "C30", "N4", "N11" ]
null
null
null
google-gemini/gemini-cli
77ea28a234023019ddda3f4a5f7a81b3514d3eb8
google-gemini__gemini-cli@77ea28a
rest145
2
D8
Prompt slash commands are snapshotted once at command load; prompts discovered by /mcp refresh or /mcp auth never become commands
BuiltinCommandLoader calls createPromptCommands(this.config) (BuiltinCommandLoader.ts:70), which reads the prompt cache at that moment. slashCommandProcessor rebuilds commands only when `config` changes (useEffect deps `[config]`). `/mcp auth` and `/mcp refresh` re-run discovery (mcpCommand.ts ~403-409, 503) without ch...
bug
low
[ { "path": "packages/cli/src/services/BuiltinCommandLoader.ts", "from_line": 70, "to_line": 70, "role": "cause" }, { "path": "packages/cli/src/ui/hooks/slashCommandProcessor.ts", "from_line": 163, "to_line": 182, "role": "other-site" } ]
BuiltinCommandLoader.ts:70 `...createPromptCommands(this.config),`; slashCommandProcessor.ts useEffect `load()` with `}, [config]);`; mcpCommand.ts:503 `await toolRegistry.discoverMcpTools();` on refresh.
Must say prompt commands are not rebuilt after re-discovery (refresh/auth), so newly discovered prompts are missing as commands.
false
[]
[]
[ "C5", "C22", "C23", "C25", "N6", "N12", "N19" ]
null
null
null
google-gemini/gemini-cli
77ea28a234023019ddda3f4a5f7a81b3514d3eb8
google-gemini__gemini-cli@77ea28a
rest145
2
D9
Cached prompts are not cleared when connectAndDiscover fails, so a server that failed to (re)connect keeps advertising stale prompts
The prompt cache is cleared only in mcpClient.onerror (mcp-client.ts:408) and when prompts/list itself fails (515). The outer failure path of connectAndDiscover (mcp-client.ts:437-445) marks the server DISCONNECTED but leaves mcpServerPromptsInternal untouched, so after a failed reconnect (/mcp refresh) or a tool-disco...
bug
low
[ { "path": "packages/core/src/tools/mcp-client.ts", "from_line": 437, "to_line": 445, "role": "cause" } ]
mcp-client.ts:437-445 outer catch: console.error + `updateMCPServerStatus(mcpServerName, MCPServerStatus.DISCONNECTED);` with no `mcpServerPromptsInternal.delete`; contrast 408 and 515.
Must say the prompt cache is not invalidated on connection/discovery failure (stale prompts shown/offered).
false
[]
[]
[ "C9", "C15", "C28" ]
null
null
null
google-gemini/gemini-cli
77ea28a234023019ddda3f4a5f7a81b3514d3eb8
google-gemini__gemini-cli@77ea28a
rest145
2
D10
Prompt argument completion produces invalid input for a partially typed option and never runs after the first argument
The completion callback returns `${partialArg}--${arg.name}=""` (promptCommands.ts:170). useCompletion replaces the last partial token with the suggestion, so for `/prompt --fi` the suggestion `--fi--field=""` yields `/prompt --fi--field=""`. And once one argument is typed followed by a space, useCompletion's command-t...
bug
low
[ { "path": "packages/cli/src/ui/commands/promptCommands.ts", "from_line": 158, "to_line": 175, "role": "cause" } ]
promptCommands.ts:170 `suggestions.push(`${partialArg}--${arg.name}=""`)`; useCompletion.ts argument branch passes `rawParts.slice(depth).join(' ')`; InputPrompt.tsx `basePath = ... parts.slice(0, -1); newValue = `/${[...basePath, suggestion].join(' ')}``.
Must identify that completion concatenates onto the partial token (producing e.g. `--fi--field=""`) or does not work past the first argument. R15 (substring(2) with multiple dashes) does not count.
false
[]
[]
[ "C24" ]
null
null
null
google-gemini/gemini-cli
77ea28a234023019ddda3f4a5f7a81b3514d3eb8
google-gemini__gemini-cli@d64b61e
rest145
2
D1
`--scope system|systemdefaults` now passes validation and silently acts at user scope
The new `.check` in disable.ts:47-63 and enable.ts accepts any lowercased `Object.values(SettingScope)`, which includes 'system' and 'systemdefaults', and even lists them as valid in its error message. handleDisable/handleEnable (disable.ts:17-23, enable.ts:17-23) then map anything other than 'workspace' to SettingScop...
bug
medium
[ { "path": "packages/cli/src/commands/extensions/disable.ts", "from_line": 47, "to_line": 63, "role": "cause" }, { "path": "packages/cli/src/commands/extensions/disable.ts", "from_line": 17, "to_line": 23, "role": "cause" }, { "path": "packages/cli/src/commands/extensions/...
disable.ts:49-52 `argv.scope && !Object.values(SettingScope).map((s) => s.toLowerCase()).includes((argv.scope as string).toLowerCase())`; SettingScope has User, Workspace, System, SystemDefaults; disable.ts:19-22 `if (args.scope?.toLowerCase() === 'workspace') {...} else { disableExtension(args.name, SettingScope.User)...
Must say that unsupported scopes (System/SystemDefaults) are accepted by validation and silently applied at user scope (or reported as success for a scope not changed). Comments only about duplicated scope parsing (R1, R3, C6) or about an explicitly empty `--scope=` (C3, C8) do not count.
true
[]
[]
[ "C9", "C12", "C14", "C15", "C21", "C22", "N1", "N3", "N14", "N12" ]
null
null
null
google-gemini/gemini-cli
d64b61ef89f01ecdc0e095a995d47522245a0065
google-gemini__gemini-cli@d64b61e
rest145
2
D2
Previously saved Windows rules (backslash paths) stop matching because only the looked-up path is slash-normalized
isEnabled now normalizes the current path with ensureLeadingAndTrailingSlash (extensionEnablement.ts:132), which converts backslashes to '/' and prepends '/', so on Windows `C:\Users\me\proj` becomes `/C:/Users/me/proj/`. Rules already persisted by the previous version were written from the raw path (`!C:\Users\me*`), ...
compat
low
[ { "path": "packages/cli/src/config/extensions/extensionEnablement.ts", "from_line": 130, "to_line": 135, "role": "cause" }, { "path": "packages/cli/src/config/extensions/extensionEnablement.ts", "from_line": 32, "to_line": 40, "role": "cause" }, { "path": "packages/cli/sr...
head :82 `let result = dirPath.replace(/\\/g, '/');` :83-85 prepend '/'; :132 `override.matchesPath(ensureLeadingAndTrailingSlash(currentPath))`; :32-39 fromFileRule only strips '!' and '*'. Base isEnabled tested the raw currentPath against the raw rule, and base enable/disable wrote `${scopePath}*` from the raw os.hom...
Must say persisted (pre-upgrade) rules are not normalized while the looked-up path now is, specifically for Windows backslash / drive paths, so saved disables stop applying. The POSIX exact-path variant (legacy `!/home/user/project` with no `*`) does not count on its own: production code never wrote such rules. C16 cou...
false
[]
[]
[ "C20", "C16", "N7", "N12" ]
null
null
null
google-gemini/gemini-cli
d64b61ef89f01ecdc0e095a995d47522245a0065
google-gemini__gemini-cli@d64b61e
rest145
2
D3
Docs still say a user-level disable disables the extension everywhere, contradicting the new workspace-enable guidance
docs/extension.md:39 (edited by this PR) still says `gemini extensions disable extension-name` 'will disable the extension at the user level, so it will be disabled everywhere', while the new text at 43-45 (and the new engine) lets `enable --scope=workspace` re-enable it in a workspace despite the user-level disable. T...
maintainability
low
[ { "path": "docs/extension.md", "from_line": 39, "to_line": 45, "role": "cause" } ]
docs/extension.md:39 `... will disable the extension at the user level, so it will be disabled everywhere.`; :43 `You can also enable an extension for a specific workspace using ... --scope=workspace`; :45 `This is useful if you have an extension disabled at the top-level and only enabled in specific places.`; base had...
Must point at the 'disabled everywhere' wording being contradicted by the workspace-enable override.
false
[]
[]
[ "C5", "C13" ]
null
null
null
google-gemini/gemini-cli
d64b61ef89f01ecdc0e095a995d47522245a0065
google-gemini__gemini-cli@e7ed0a4
rest145
2
D1
glob.test.ts reassigns the shared tempRootDir to its 'sub' child, so afterEach deletes only the child and leaks the mkdtemp'd root on every run
To give GlobTool a deeper root now that it reads config.getTargetDir(), the test at packages/core/src/tools/glob.test.ts:228 does `tempRootDir = path.join(tempRootDir, 'sub')` instead of using a separate config/local. afterEach (glob.test.ts:57-60) then runs `fs.rm(tempRootDir, ...)` on the mutated value, removing only...
resource
low
[ { "path": "packages/core/src/tools/glob.test.ts", "from_line": 228, "to_line": 229, "role": "cause" }, { "path": "packages/core/src/tools/glob.test.ts", "from_line": 57, "to_line": 60, "role": "symptom" } ]
glob.test.ts:228 `tempRootDir = path.join(tempRootDir, 'sub');`; glob.test.ts:59 `await fs.rm(tempRootDir, { recursive: true, force: true });`; beforeEach glob.test.ts:30 `tempRootDir = await fs.mkdtemp(...)`. Base: `const deeperRootDir = path.join(tempRootDir, 'sub'); new GlobTool(deeperRootDir, mockConfig)`.
Must say that mutating tempRootDir breaks cleanup (leaks the temp dir/fixtures). Disliking the reassignment for style alone does not count.
true
[]
[]
[ "C1", "C7", "N1", "N2", "N3", "N4" ]
null
null
null
google-gemini/gemini-cli
e7ed0a410ae510cda8b53ea20f3d758bd90a0f00
google-gemini__gemini-cli@6fd8269
rest145
2
D1
Tool instances are sent to the model as raw FunctionDeclarations, so the planner's tool declarations are malformed
ToolConfig.tools now accepts tool instances, but runNonInteractive still pushes every non-string entry straight into toolsList (subagent.ts:379-383), which is sent as `tools: [{ functionDeclarations: toolsList }]` (subagent.ts:418). A tool instance is not a FunctionDeclaration: its declaration is `tool.schema` (paramet...
bug
high
[ { "path": "packages/core/src/core/subagent.ts", "from_line": 379, "to_line": 383, "role": "cause" }, { "path": "packages/core/src/core/subagent.ts", "from_line": 418, "to_line": 418, "role": "symptom" }, { "path": "packages/core/src/tools/planning-tool.ts", "from_line...
subagent.ts:379-383 if (typeof tool === 'string') { toolsToLoad.push(tool); } else { toolsList.push(tool); } with toolsList: FunctionDeclaration[] (compiles because FunctionDeclaration's fields are all optional); tools.ts DeclarativeTool: get schema(): FunctionDeclaration { return { name, description, parameters: this....
Must say tool instances are pushed into the function-declaration list instead of their schema / names. Comments only about unknown string tool names being skipped (R3) are a near-miss; the instanceof/registration failure is D2.
true
[]
[ "R4" ]
[ "C4", "C20", "C26", "C28", "N2", "N8", "N12" ]
null
null
null
google-gemini/gemini-cli
6fd82699700fc19ea30a7b29a059f392ccfbb2cc
google-gemini__gemini-cli@6fd8269
rest145
2
D2
ReadFile/Grep/Glob are BaseDeclarativeTool, fail `instanceof BaseTool`, and are never registered in the sub-agent registry
SubAgentScope.create registers non-string tools only if `tool instanceof BaseTool` (subagent.ts:308). ReadFileTool, GrepTool and GlobTool extend BaseDeclarativeTool, not BaseTool (read-file.ts:165, grep.ts:539, glob.ts:244), so three of the planner's five tools fall into the 'FunctionDeclaration' branch and are never r...
bug
medium
[ { "path": "packages/core/src/core/subagent.ts", "from_line": 308, "to_line": 313, "role": "cause" }, { "path": "packages/core/src/tools/planning-tool.ts", "from_line": 188, "to_line": 193, "role": "other-site" } ]
subagent.ts:308 } else if (tool instanceof BaseTool) { subagentToolRegistry.registerTool(tool); } else { // FunctionDeclaration ... }; read-file.ts:165 export class ReadFileTool extends BaseDeclarativeTool<...>; tools.ts: BaseDeclarativeTool extends DeclarativeTool, BaseTool extends DeclarativeTool (siblings).
Must say the declarative tools are not BaseTool instances, so they are not registered/executable in the child registry. A claim that this breaks TypeScript compilation (C12) is wrong: the instances are assignable to the all-optional FunctionDeclaration member of the union.
false
[]
[]
[ "C5", "N2", "N19" ]
null
null
null
google-gemini/gemini-cli
6fd82699700fc19ea30a7b29a059f392ccfbb2cc
google-gemini__gemini-cli@6fd8269
rest145
2
D3
Planning tool ignores the abort signal: cancelling leaves a 10-minute, 100-turn sub-agent running
PlanningTool.execute receives `signal` (planning-tool.ts:127-132) but never uses it; runNonInteractive creates its own never-triggered AbortController (subagent.ts:372). Cancelling the tool call leaves the gemini-2.5-pro sub-agent issuing model requests and file reads until it finishes or hits max_time_minutes 10 / max...
resource
medium
[ { "path": "packages/core/src/tools/planning-tool.ts", "from_line": 127, "to_line": 132, "role": "cause" }, { "path": "packages/core/src/core/subagent.ts", "from_line": 372, "to_line": 372, "role": "other-site" } ]
async execute(params, signal: AbortSignal, updateOutput?) { const plan = await this.createPlan(params.user_request, updateOutput); ... subagent.ts:372 const abortController = new AbortController();
Must say the AbortSignal is not propagated so cancellation does not stop the sub-agent.
true
[]
[ "R11" ]
[ "C6", "C10", "C16", "N2", "N9", "N13" ]
null
null
null
google-gemini/gemini-cli
6fd82699700fc19ea30a7b29a059f392ccfbb2cc
google-gemini__gemini-cli@6fd8269
rest145
2
D4
Running the planner permanently switches the parent session's model to gemini-2.5-pro
SubAgentScope.createChatObject calls `this.runtimeContext.setModel(this.modelConfig.model)` (subagent.ts:629), and Config.setModel mutates the shared contentGeneratorConfig.model (config.ts:418-421). The planning tool hands the main session's Config to the sub-agent (planning-tool.ts:196-202) and is the first productio...
bug
medium
[ { "path": "packages/core/src/tools/planning-tool.ts", "from_line": 196, "to_line": 202, "role": "cause" }, { "path": "packages/core/src/core/subagent.ts", "from_line": 629, "to_line": 629, "role": "other-site" } ]
subagent.ts:629 this.runtimeContext.setModel(this.modelConfig.model); config.ts:418 setModel(newModel) { if (this.contentGeneratorConfig) this.contentGeneratorConfig.model = newModel; }; planning-tool.ts modelConfig.model = 'gemini-2.5-pro'; grep shows planning-tool.ts is the only non-test SubAgentScope caller.
Must say the sub-agent's setModel on the shared Config changes the parent session's model after planning.
false
[]
[]
[ "C3", "C8", "N2", "N6", "N15" ]
null
null
null
google-gemini/gemini-cli
6fd82699700fc19ea30a7b29a059f392ccfbb2cc
google-gemini__gemini-cli@6fd8269
rest145
2
D5
planning_tool registration (and its child tools) bypass coreTools / excludeTools
Every built-in tool is registered through registerCoreTool, which honours the coreTools allowlist and excludeTools (config.ts:724-754), but the planning tool is registered directly with `registry.registerTool(getPlanningTool(this))` when usePlanningTool is on (config.ts:767-770). Excluding planning_tool (or restricting...
contract
low
[ { "path": "packages/core/src/config/config.ts", "from_line": 767, "to_line": 770, "role": "cause" }, { "path": "packages/core/src/tools/planning-tool.ts", "from_line": 187, "to_line": 195, "role": "other-site" } ]
config.ts:767-770 // Manually register the planning tool ... if (this.getUsePlanningTool()) { registry.registerTool(getPlanningTool(this)); } vs registerCoreTool's excludeTools?.includes(className) checks.
Must say the planning tool (or its sub-tools) ignore the coreTools/excludeTools restrictions.
false
[]
[]
[ "C1", "C11", "C19", "C17", "N7" ]
null
null
null
google-gemini/gemini-cli
6fd82699700fc19ea30a7b29a059f392ccfbb2cc
google-gemini__gemini-cli@0fa1bd7
rest145
2
D1
Merge-only save never deletes keys: removed MCP servers (and replaced fields) persist on disk
applyUpdates (commentJson.ts:52-80) starts from the parsed file and only adds/overwrites keys present in the in-memory settings, recursing into nested objects; keys deleted in memory are never removed from the file. `gemini mcp remove` does `delete mcpServers[name]; settings.setValue(scope, 'mcpServers', mcpServers)` (...
bug
high
[ { "path": "packages/cli/src/utils/commentJson.ts", "from_line": 52, "to_line": 80, "role": "cause" }, { "path": "packages/cli/src/config/settings.ts", "from_line": 738, "to_line": 742, "role": "other-site" }, { "path": "packages/cli/src/commands/mcp/remove.ts", "from_...
commentJson.ts:56 `const result = current;` then :58-77 loop over `Object.entries(updates)` assigning `result[key] = ...`; nothing deletes keys absent from updates. remove.ts: `delete mcpServers[name]; settings.setValue(settingsScope, 'mcpServers', mcpServers);`. Base saveSettings wrote `JSON.stringify(settingsToSave, ...
Must say the new save merges and never removes keys that were deleted in memory (mcp remove / replaced nested objects). R11 (arrays replaced wholesale) and R9 (mutating the parsed object) do not count.
true
[]
[]
[ "C1", "C15", "C20", "C28", "C29", "N2", "N7", "N11", "N17" ]
null
null
null
google-gemini/gemini-cli
0fa1bd7ac417366f321ed2554caeaef550321959
google-gemini__gemini-cli@0fa1bd7
rest145
2
D2
Env references embedded in a larger string ("Bearer $TOKEN") are not tracked and are written back resolved
resolveEnvVarsInString (utils/envVarResolver.ts:20-28) substitutes $VAR/${VAR} anywhere inside a string, but trackEnvVarMappings records a mapping only when the whole original string matches the anchored /^\$(?:(\w+)|{([^}]+)})$/ (commentJson.ts:152). A value like an MCP header "Authorization": "Bearer $API_TOKEN" or "...
incomplete-fix
medium
[ { "path": "packages/cli/src/utils/commentJson.ts", "from_line": 151, "to_line": 161, "role": "cause" }, { "path": "packages/cli/src/config/settings.ts", "from_line": 671, "to_line": 683, "role": "other-site" }, { "path": "packages/cli/src/utils/commentJson.ts", "from_...
commentJson.ts:152 `const envVarPattern = /^\$(?:(\w+)|{([^}]+)})$/;` vs envVarResolver.ts `const envVarRegex = /\$(?:(\w+)|{([^}]+)})/g;` used with value.replace, doc example `resolveEnvVarsInString("Token: $API_KEY")`. saveSettings passes the resolved settingsFile.settings as updates.
Must say partial/embedded references are resolved but not tracked/restored, so they are saved in plaintext. R13 (support default-value/nested syntax) does not count. Graded medium, not high: before the PR every value (whole or embedded reference) was written back resolved, so the embedded case is a gap in the fix, not ...
true
[]
[]
[ "C2", "C8", "C10", "C16", "C18", "N1", "N14", "N17" ]
null
null
null
google-gemini/gemini-cli
0fa1bd7ac417366f321ed2554caeaef550321959
google-gemini__gemini-cli@0fa1bd7
rest145
2
D3
Env references inside arrays (e.g. MCP args) are tracked but never restored, so they are saved resolved
trackEnvVarMappings recurses into arrays (for...in yields index keys, commentJson.ts:146,162-168) and resolveEnvVarsInObject resolves array items, but restoreEnvVarsRecursive only descends into non-array objects (commentJson.ts:117-123) and applyUpdates replaces arrays wholesale with the resolved in-memory array (:76)....
incomplete-fix
medium
[ { "path": "packages/cli/src/utils/commentJson.ts", "from_line": 115, "to_line": 123, "role": "cause" }, { "path": "packages/cli/src/utils/commentJson.ts", "from_line": 162, "to_line": 168, "role": "other-site" } ]
commentJson.ts:117-121 `} else if (typeof value === 'object' && value !== null && !Array.isArray(value)) { restoreEnvVarsRecursive(...) }`; :162 `else if (typeof value === 'object' && value !== null)` includes arrays when tracking; envVarResolver.ts maps arrays item by item.
Must say env references inside arrays are not restored (leak). C16 also mentions arrays but is filed under D2 (its lead point). R11 on array merge granularity does not count.
true
[]
[]
[ "C14", "C22", "C26", "N6", "N17" ]
null
null
null
google-gemini/gemini-cli
0fa1bd7ac417366f321ed2554caeaef550321959
google-gemini__gemini-cli@0fa1bd7
rest145
2
D4
Env mappings are recorded on V2 paths but the saved object is converted to V1, so references for migrated keys leak
loadAndMigrate migrates V1 files to V2 in memory (settings.ts:576-600) before the mappings are captured on the V2 object (:663-683). With MIGRATE_V2_OVERWRITE = false (:60), saveSettings always runs migrateSettingsToV1 (:731-735) before calling the updater, so every key in MIGRATION_MAP is written under its V1 name whi...
incomplete-fix
medium
[ { "path": "packages/cli/src/config/settings.ts", "from_line": 731, "to_line": 742, "role": "cause" }, { "path": "packages/cli/src/config/settings.ts", "from_line": 663, "to_line": 683, "role": "other-site" }, { "path": "packages/cli/src/utils/commentJson.ts", "from_li...
settings.ts:60 `const MIGRATE_V2_OVERWRITE = false;`; :731-735 `if (!MIGRATE_V2_OVERWRITE) { settingsToSave = migrateSettingsToV1(...) }`; MIGRATION_MAP :117 `toolDiscoveryCommand: 'tools.discoveryCommand'`; mappings built from the migrated objects at :663-683; commentJson.ts:112-115 looks up `fullPath.join('.')` of th...
Must say the mapping paths (V2) do not match the V1-converted structure written by saveSettings, so env references for non-mcpServers keys are lost/leaked.
false
[]
[]
[ "C9", "C13", "C30", "N5", "N9", "N15", "N17" ]
null
null
null
google-gemini/gemini-cli
0fa1bd7ac417366f321ed2554caeaef550321959
google-gemini__gemini-cli@0fa1bd7
rest145
2
D5
Saving into a V2-format file adds V1 keys beside the old nested values, and the old value wins on reload
saveSettings converts to V1 (settings.ts:731-735) and the updater now MERGES into the parsed file instead of replacing it. For a hand-written V2 file with {"ui": {"theme": "A"}}, changing the theme writes a top-level "theme": "B" but leaves ui.theme = "A". On reload needsMigration sees the V1 key, migrateSettingsToV2 s...
bug
medium
[ { "path": "packages/cli/src/config/settings.ts", "from_line": 731, "to_line": 742, "role": "cause" }, { "path": "packages/cli/src/config/settings.ts", "from_line": 251, "to_line": 254, "role": "symptom" }, { "path": "packages/cli/src/utils/commentJson.ts", "from_line"...
migrateSettingsToV2: `for (const [oldKey, newPath] of Object.entries(MIGRATION_MAP)) { if (flatKeys.has(oldKey)) { setNestedProperty(v2Settings, newPath, ...); flatKeys.delete(oldKey); } }` then `for (const remainingKey of flatKeys) { v2Settings[remainingKey] = flatSettings[remainingKey]; }` - `ui` remains in flatKeys ...
Must say V1-converted save merged into a V2 file leaves the old nested value, which overrides the edit on next load (or duplicates V1/V2 keys with the stale one winning). Plain 'keys are not deleted' (D1) is a different defect.
false
[]
[]
[ "C11", "N12", "N13", "N17" ]
null
null
null
google-gemini/gemini-cli
0fa1bd7ac417366f321ed2554caeaef550321959
google-gemini__gemini-cli@0fa1bd7
rest145
2
D6
A deliberately changed value at an env-backed path is silently reverted to the $VAR reference on save
restoreEnvVarsRecursive (commentJson.ts:114-116) restores the recorded reference whenever the path matches and the current value is any string, never comparing with mapping.resolvedValue (recorded at :159, read nowhere), and the mappings captured at load are reused by every setValue (settings.ts:421-422). If a user rep...
bug
low
[ { "path": "packages/cli/src/utils/commentJson.ts", "from_line": 114, "to_line": 116, "role": "cause" }, { "path": "packages/cli/src/config/settings.ts", "from_line": 421, "to_line": 422, "role": "other-site" } ]
commentJson.ts:115 `if (envVarReference && typeof value === 'string') { (obj as Record<string, unknown>)[key] = envVarReference; }`; EnvVarMapping.resolvedValue set at :159 and unused.
Must say restoration ignores whether the value was changed (resolvedValue unused / stale mappings). R3 (non-string resolved values) does not count.
true
[]
[]
[ "C6", "C17", "C31", "C32", "N3", "N8", "N10", "N17" ]
null
null
null
google-gemini/gemini-cli
0fa1bd7ac417366f321ed2554caeaef550321959
google-gemini__gemini-cli@0fa1bd7
rest145
2
D7
Comments inside arrays are still dropped on every save
applyUpdates replaces every array in the parsed file with the plain in-memory array (commentJson.ts:63-76, arrays take the `result[key] = value` branch). comment-json stores comments on array items as symbol properties of the parsed CommentArray, so any comment inside an array (e.g. a commented-out arg or excluded tool...
incomplete-fix
low
[ { "path": "packages/cli/src/utils/commentJson.ts", "from_line": 63, "to_line": 77, "role": "cause" } ]
commentJson.ts:66 `!Array.isArray(value)` excludes arrays from the merge branch; :76 `result[key] = value;` assigns the plain resolved array from settingsFile.settings (built via JSON.parse(stripJsonComments(...)) and resolveEnvVarsInObject, so it carries no comment metadata).
Must say comments attached to array elements are lost because arrays are replaced wholesale. R11 (arrays replaced instead of element-wise merge, no mention of comments) does not count.
false
[]
[]
[ "C4" ]
null
null
null
google-gemini/gemini-cli
0fa1bd7ac417366f321ed2554caeaef550321959
infiniflow__ragflow@f189316
rest145
2
D1
Infinity update(): the string 'remove' branch leaves the 'remove' key in newValue and writes '' to integer columns, so resetting a KB's pagerank fails
In InfinityConnection.update the `elif k == "remove":` branch (infinity_conn.py:574-584) handles the string form (`{"remove": PAGERANK_FLD}`, sent by kb_app.py:122 when pagerank is set back to 0) by writing `newValue[v] = de` but never runs `del newValue[k]`. The base code deleted it. So `table_instance.update(filter, ...
bug
high
[ { "path": "rag/utils/infinity_conn.py", "from_line": 574, "to_line": 580, "role": "cause" }, { "path": "rag/utils/infinity_conn.py", "from_line": 609, "to_line": 609, "role": "symptom" }, { "path": "api/apps/kb_app.py", "from_line": 122, "to_line": 123, "role"...
infinity_conn.py:575-580 `if isinstance(v, str): ty, de = clmns[v]; if ty.lower().find("cha"): if not de: de = ""; newValue[v] = de`. There is no `del newValue[k]` on this path; only the dict branch at :584 deletes it. Base: `del newValue[k]; if v in [PAGERANK_FLD]: newValue[v] = 0`. The caller is kb_app.py:122 `settin...
The comment must say that the 'remove' key is not deleted on the string path, or that pagerank_fea gets '' instead of 0 (the find('cha') truthiness or the integer default). Either one counts. The same find('cha') idiom in exists() is pre-existing and does not count.
true
[]
[ "R7" ]
[ "C2", "C5", "C21", "N6", "N7", "N8", "N9" ]
null
null
null
infiniflow/ragflow
f189316eae1c199a5891f7a8bc47d53bb1b5c818
infiniflow__ragflow@f189316
rest145
2
D2
rename_tag on Infinity now loses the tag: the new remove updates commit before the main update, which then fails on the unsupported 'add' key
The new dict-'remove' support runs per-row `table_instance.update(...)` calls (infinity_conn.py:605-607) that strip the old value from the list, and only then runs the main `table_instance.update(filter, newValue)` (:609). rename_tags (kb_app.py:281-282) sends `{"remove": {"tag_kwd": from}, "add": {"tag_kwd": to}}`. up...
data
medium
[ { "path": "rag/utils/infinity_conn.py", "from_line": 588, "to_line": 609, "role": "cause" }, { "path": "rag/utils/infinity_conn.py", "from_line": 585, "to_line": 586, "role": "other-site" }, { "path": "api/apps/kb_app.py", "from_line": 281, "to_line": 283, "ro...
kb_app.py:281-282 `settings.docStoreConn.update({"tag_kwd": req["from_tag"], ...}, {"remove": {"tag_kwd": req["from_tag"].strip()}, "add": {"tag_kwd": req["to_tag"]}}, ...)`. infinity_conn.py:605-607 performs the remove updates first, then :609 `table_instance.update(filter, newValue)` with newValue still containing 'a...
The comment must connect the new remove-first sequencing to the unhandled 'add' key or to rename_tag, as a partial/non-atomic update that loses data. Just saying 'add is not supported on Infinity' without the new partial-write consequence is a near-miss (that part is pre-existing). A comment that ties the unhandled 'ad...
true
[]
[]
[ "C4", "N1" ]
null
null
null
infiniflow/ragflow
f189316eae1c199a5891f7a8bc47d53bb1b5c818
infiniflow__ragflow@f189316
rest145
2
D3
Keyword-field conditions become full-text token matches, so deletes and updates by entity/tag name hit non-identical values
equivalent_condition_to_str now turns every condition on a keyword field (field_keyword: source_id and *_kwd except docnm_kwd/knowledge_graph_kwd) into `filter_fulltext('<k>', '<v>')` (infinity_conn.py:72-84). Before, it was an exact `k IN (...)` or `k='v'`. These columns use the `whitespace-#` analyzer (conf/infinity_...
data
medium
[ { "path": "rag/utils/infinity_conn.py", "from_line": 72, "to_line": 84, "role": "cause" }, { "path": "rag/utils/infinity_conn.py", "from_line": 624, "to_line": 626, "role": "symptom" }, { "path": "graphrag/utils.py", "from_line": 436, "to_line": 441, "role": "...
infinity_conn.py:78 `inCond.append(f"filter_fulltext('{k}', '{item}')")` and :84 `cond.append(f"filter_fulltext('{k}', '{v}')")` replace the base `k IN (...)` / `k='v'` for keyword fields. conf/infinity_mapping.json:37 `"entity_kwd": {..., "analyzer": "whitespace-#"}`. Entity names are multi-word upper-cased strings (g...
The comment must say that filter_fulltext is a token/full-text match rather than exact membership, so conditions on keyword fields (entity, tag, source_id) can select rows with a different value. Comments only about quote escaping in these filters do not count.
false
[]
[]
[ "C1", "C11", "N2", "N9" ]
null
null
null
infiniflow/ragflow
f189316eae1c199a5891f7a8bc47d53bb1b5c818
infiniflow__ragflow@a63caa1
rest145
2
D1
Entity resolution still crashes: change.removed_nodes is a set but _merge_graph_nodes calls .extend on it
With the connected-components fix, every selected merge group now reaches Extractor._merge_graph_nodes, whose first real statement after the length check is `change.removed_nodes.extend(nodes[1:])` (graphrag/general/extractor.py:196). GraphChange.removed_nodes is declared as a set (graphrag/utils.py:41, default_factory...
incomplete-fix
high
[ { "path": "graphrag/general/extractor.py", "from_line": 196, "to_line": 196, "role": "cause" }, { "path": "graphrag/utils.py", "from_line": 41, "to_line": 41, "role": "other-site" }, { "path": "graphrag/entity_resolution.py", "from_line": 113, "to_line": 115, ...
extractor.py:196 `change.removed_nodes.extend(nodes[1:])`; utils.py:41 `removed_nodes: Set[str] = dataclasses.field(default_factory=set)`; entity_resolution.py:114-115 now passes `list(sub_connect_graph)` to `_merge_graph_nodes`, the only caller.
Must say removed_nodes is a set and .extend fails (should be update), so resolution still crashes. Comments about edge bookkeeping in the else branch (C1/C7) or attribute overwrite (C3/C5) are different.
false
[]
[]
[ "C2", "N7" ]
null
null
null
infiniflow/ragflow
a63caa1087852ada98964678be26b7c4d8363af6