shuhuNB515
shuhuNB515
### Describe the bug In `src/lerobot/datasets/video_utils.py`, `StreamingVideoEncoder.finish_episode()` has two failure-path bugs: 1. **Infinite deadlock on dead encoder thread with a full queue:** `finish_episode()` sends the shutdown sentinel with an unbounded...
### 现象 `src/stream.js` DSML scrubber 的 `flush()` 逻辑上永远返回空串,closeAll 里为此准备的 spill 分支是死代码,**恰好落在回答末尾的良性 ``。而 `flush` 的丢弃条件恰好是这两个条件的并集——它能接收到的每一个值都必然命中丢弃分支,最后的 spill 不可达(逻辑上可证,实测亦确认)。 ### 复现(实测) ```js push('the answer is 5
### 现象 `src/recovery.js` 的 `checkpointFits`(约 88–100 行)把**字节**和 **token** 两种单位直接比较: ```js const checkpointBytes = Buffer.byteLength(checkpoint, 'utf8') if (checkpointBytes > Math.max(0, context - outputBudget) / 2) return false ... return textBytes +...
### 现象 `src/token-saver/compact/autodetect.js` 第 56 行的 buildOutput 信号带 `/i` 标志: ```js [/^(?:npm (?:warn|error|ERR!)|yarn (?:warn|error)|\s*Compiling\s+\S+|\s*Downloading\s+\S+|added \d+ package|\[ERROR\]|BUILD (?:SUCCESS|FAILED)|\s*Finished\s+|Successfully (?:installed|built)|ERROR:)/im, buildOutput], ``` `ERROR:` 因此**大小写不敏感**——任何工具输出里只要前 1KB 内有一行以 `Error:`/`error:` 开头(Node 异常首行恰好就是 `Error: ...`),整个 blob...
### 现象 `src/combos.js` 的 `normalizeCombos` 对 id 冲突的第二条 combo 是**无提示丢弃**(第 76 行): ```js if (id === '' || seen.has(id)) continue ``` 而 `comboId` 的归一化是多对一的:分隔符折叠 + 48 字符截断,且 hash 后缀只在名字含非 ASCII...
### 现象 `src/egress.js` 免费车道出口池的降级 walk(约 507–519 行)在 `attempt(exit)` 抛错时**无条件**先记账再判断异常类别: ```js try { response = await attempt(exit) } catch (error) { noteLaneExitResult(exit, undefined) // ← 先记 60 秒冷却 lastError = error...
### 现象 `src/local-optimize.js` 的 suggestion 探测器只看一个布尔值 `suggestionMarked`,而这个布尔值来自**历史中任意一条 user 消息**(`readFacts` 的扫描循环),置位后永不复位。于是多轮会话里,一条很久之前的 suggestion 标记会劫持当前的真实提问——当前请求被静默替换为空文本应答(`{ kind: 'suggestion', text: '' }`),模型不参与。 ### 复现(实测) ```js const request = { messages: [ { role: 'user', content:...
### Describe the bug There are several reproducible edge-case bugs in `plugins/stitch-design/skills/upload-to-stitch/scripts/upload_to_stitch.py`: 1. **Duplicated `projects/` prefix when passing a resource name to `--project-id`** - Stitch MCP `list_projects` returns resource names...
### Observed behavior On macOS arm64 / Python 3.13.18, the existing concurrent-request test for the local Grok audit fixture fails on unmodified main `3fd946546afddc2096ab955f3abb223ed59f52ce`: ```text TestHigh136GrokAuditOidcAuthMode.test_fixture_records_concurrent_requests_thread_safely AssertionError: assert not [URLError(ConnectionResetError(54,...
### Problem A `/last30days` research request that receives HTTP 429 with a valid HTTP-date `Retry-After` retries using the fallback delay instead of the server's requested wait. `lib.http.retry_delay_from_headers` only calls `float(raw)`,...