Skip to content

Commit f724300

Browse files
fix: 内存优化 — FileReadTool 100KB 上限、lookups 缓存、microcompact 替换清理
- FileReadTool maxResultSizeChars 从 Infinity 改为 100KB,大文件持久化到磁盘 - Messages.tsx 新增 computeMessageStructureKey 缓存,流式 delta 时跳过 8 个 Map/Set 重建 - microcompact 返回 clearedToolUseIds,query.ts 消费后清理 replacements Map 释放原始字符串 - 更新内存分析报告 Round 5 和 file-operations 文档 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 3eba5ad commit f724300

8 files changed

Lines changed: 205 additions & 32 deletions

File tree

docs/memory-peak-analysis.md

Lines changed: 111 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# 内存与性能峰值分析报告(最终版 — 4 轮迭代完成)
1+
# 内存与性能峰值分析报告(最终版 — 5 轮迭代完成)
22

33
> 进程 bun,物理内存峰值 **700 MB+**,最差场景可达 **1.8 GB**
44
> 日期:2026-05-02 | 状态:**调研完成** | 范围:内存峰值 + CPU 热点 + React 渲染循环
5+
> Round 5 增量:验证消息渲染管线(buildMessageLookups 8 Map/Set 重建)、useDeferredValue 双缓冲、FileReadTool 无上限、compaction 与 React 状态交互
56
67
## 数据收集
78

@@ -44,6 +45,34 @@
4445

4546
峰值时 3-4 份完整消息数组同时驻留(477 + 1745 + 1857 + 1878 在同一 turn 尾部顺序执行)。
4647

48+
### P0:React 消息管线重复计算(Round 5 新增分析)
49+
50+
**buildMessageLookups 每次 useMemo 重算时创建 8 个 Map/Set**`messages.ts:1215-1398`):
51+
52+
| 数据结构 | 规模 | 说明 |
53+
|----------|------|------|
54+
| `toolUseIDsByMessageID` | Map\<string, Set\> | 每个 assistant 消息一个 Set |
55+
| `toolUseIDToMessageID` | Map\<string, string\> | 所有 tool_use ID |
56+
| `toolUseByToolUseID` | Map\<string, ToolUseBlockParam\> | **保留完整 tool_use block** |
57+
| `siblingToolUseIDs` | Map\<string, Set\> | 兄弟 tool_use 索引 |
58+
| `progressMessagesByToolUseID` | Map\<string, ProgressMessage[]\> | 进度消息数组 |
59+
| `toolResultByToolUseID` | Map\<string, NormalizedMessage\> | **保留完整 tool_result 消息引用** |
60+
| `resolvedToolUseIDs` / `erroredToolUseIDs` | Set\<string\> | 已完成/错误 ID |
61+
62+
此 useMemo(`Messages.tsx:519`)依赖 normalizedMessages,任何消息变更(含流式 delta)触发重建。已拆分 renderRange 避免滚动触发(注释明确记录:50ms alloc per scroll → GC → 100-173ms STW on 1GB heap)。
63+
64+
**useDeferredValue 双缓冲**`REPL.tsx:1569`):流式期间 `messages``deferredMessages` 同时持有两份完整数组,直到 React 调度更新。在 27k 消息场景下,额外 ~100-200MB 临时占用。
65+
66+
**FileReadTool 无大小限制**`FileReadTool.ts:342`):`maxResultSizeChars: Infinity`,单次 10MB 文件读取完整保留在消息数组中。BashTool(30KB)和 GrepTool(20KB)有合理上限。
67+
68+
### P0:Compaction 与 React 状态交互(Round 5 新增分析)
69+
70+
**非全屏模式**`REPL.tsx:3074-3075`):compact 后 `setMessages(() => [newMessage])` 正确替换整组旧消息,内存立即释放。
71+
72+
**全屏模式**`REPL.tsx:3056-3072`):保留最多 500 条消息的 scrollback。注释记录:Ink fiber 树每条消息 ~250KB RSS,无 cap 时观察过 13k+ 消息 → 1GB+ heap。
73+
74+
**Microcompact 的局限**`microCompact.ts:472-494`):用 spread 创建新消息对象替换内容为 `[Old tool result content cleared]`。但 `ContentReplacementState.replacements` Map(`toolResultStorage.ts:392`)仍保留原始替换字符串,直到 compact 时才清理。这意味着 microcompact 减少了 token 数,但实际内存释放依赖后续 compact。
75+
4776
### P0:Compact 峰值(20-80 MB)
4877

4978
峰值时间线(`compact.ts:524-644`):
@@ -55,6 +84,44 @@ After: splice → 50K tokens
5584

5685
可提前释放:`preCompactReadFileState`(25MB)、`summaryResponse`、原始 `messages` 参数。
5786

87+
### P0:React Hooks 闭包与 useMemo 链(Round 5 深入排查)
88+
89+
**useCallback 闭包重建**`REPL.tsx`):
90+
91+
| 回调 | 依赖项数 | 位置 | 影响 |
92+
|------|----------|------|------|
93+
| `getToolUseContext` | 20 | `:2789-2949` | 重建时旧闭包持有的引用阻止 GC |
94+
| `onQueryImpl` | 14 | `:3188-3469` | 包含 getToolUseContext + 多层嵌套闭包 |
95+
| `onQuery` | 在 onQueryImpl 上再包装 | `:3471-3697` | 又一层闭包 |
96+
| `onSubmit` | ~10 | `:3822-4298` | 闭包链嵌套 3 层 |
97+
98+
每次 `messages` 变更触发 `setMessages` → React 重渲染 → 依赖 messages 的 useCallback/useMemo 全部重建。但 `getToolUseContext``onQueryImpl` **没有把 `messages` 放入依赖数组**(通过 `messagesRef.current` 参数传递规避),所以这些闭包不会因 messages 变化而重建。**这实际上是正确的设计**——用 ref 规避了闭包捕获问题。
99+
100+
**真正的 hooks 问题**在于 useMemo 链(`Messages.tsx`):
101+
102+
```
103+
messages → normalizedMessages (O(n))
104+
→ compactAwareMessages (O(n) filter)
105+
→ messagesToShow (O(n) filter + reorder)
106+
→ groupedMessages (O(n))
107+
→ collapsed (O(n))
108+
→ lookups (8 Map/Set, O(n))
109+
```
110+
111+
流式期间每个 delta 触发 `messages` 变更 → 整条链全量重算。注释记录:50ms alloc per scroll → GC → 100-173ms STW on 1GB heap(`Messages.tsx:516-518`)。
112+
113+
**无界 useRef**`REPL.tsx`):
114+
115+
| Ref | 增长方式 | 清理 | 影响 |
116+
|-----|----------|------|------|
117+
| `bashTools` | `.add()` 每个 bash 命令 | `clearConversation` 时 clear | Set\<string\>,通常 <100 |
118+
| `discoveredSkillNamesRef` | `.add()` 每个发现的 skill | `clearConversation` 时 clear | Set\<string\>,通常 <50 |
119+
| `apiMetricsRef` | `.push()` 每次请求 | turn 结束时 `= []` | 临时,turn 内累积 |
120+
| `responseLengthRef` | 累加 | compact 时重置为 0 | 单数字 |
121+
| `loadedNestedMemoryPathsRef` | `.add()` 每个 CLAUDE.md | compact/clear 时 clear | Set\<string\> |
122+
123+
结论:**这些 ref 都有清理机制**,不是主要问题。核心问题仍是 useMemo 链在流式期间的全量重算。
124+
58125
### P1:虚拟滚动组件(~50 MB)— Round 3 新发现
59126

60127
`src/hooks/useVirtualScroll.ts` + React Ink 渲染管线:
@@ -86,6 +153,8 @@ After: splice → 50K tokens
86153
| 7 | Tool result seenIds/replacements | 0.5-2 MB | `toolResultStorage.ts:390-397` |
87154
| 8 | bootstrap/state.ts 无界缓存 | 0.1-1 MB | planSlugCache 等 |
88155
| 9 | QueryEngine 无界集合 | 0.1-1 MB | discoveredSkillNames 等 |
156+
| 10 | expandedKeys Set 无清理(Round 5) | <0.5 MB | `Messages.tsx:644` compact 后 stale keys 不删除 |
157+
| 11 | OpenAI/Gemini/Grok collectedMessages(Round 5) | 临时 | 流式期间累积 assistant messages 供 Langfuse telemetry,stream 结束后释放 |
89158

90159
### P2:低优先级(未验证)
91160

@@ -125,23 +194,41 @@ After: splice → 50K tokens
125194
- 双缓冲 + damage tracking + 字符池复用
126195
- Pool 5 分钟周期重置
127196

128-
## 已否认(内存,4 轮汇总)
197+
## 已否认(内存,5 轮汇总)
129198

130199
- VSZ 516 GB 是虚拟映射非物理 | Zod Schema ~650KB | Markdown LRU-500 已优化
131200
- useSkillsChange/useSettingsChange — 正确 cleanup | useInboxPoller — 收敛设计
132201
- React Compiler `_c(N)` — 未使用 | File watchers — 仅 ~5KB | React reconciler — WeakMap + freeRecursive
133202
- Ink 屏幕缓冲 ~86KB | CharPool/HyperlinkPool ~1-5MB 且 5min 重置 | StylePool 缓存 1000 上限
134203
- 依赖树 — AWS/Google/Azure SDK 均动态 import,不贡献基线 | Sentry 空实现
135204
- Ink 无 scrollback 缓冲 | Markdown tokenCache LRU-500 bounded
205+
- **Round 5 否认**:useCallback 闭包捕获 messages — 实际通过 messagesRef 参数传递规避,无闭包问题
206+
- **Round 5 否认**:MCP stderrHandler 泄漏 — 已有 64MB cap + 成功后释放 + cleanup 移除 listener
207+
- **Round 5 否认**:useRef 无界增长 — bashTools/discoveredSkillNamesRef/loadedNestedMemoryPathsRef 均有 clearConversation 或 compact 清理
208+
- **Round 5 否认**:apiMetricsRef 无界 — turn 结束时 `= []` 重置
209+
- **Round 5 否认**:useEffect 缺少 cleanup — 检查的 12 个 useEffect 均有 return cleanup 函数
136210

137211
## 结论
138212

139-
**内存根因**(4 轮迭代确认):消息数组 turn 尾部 3-4 次同时驻留 + compact 峰值窗口 + 虚拟滚动 200 组件 ~50MB 常驻 + Bun/JSC 不归还内存页。
213+
**内存根因**(5 轮迭代确认):
214+
1. **消息数组 turn 尾部 3-4 次 spread 同时驻留**(120-320 MB)— 核心瓶颈
215+
2. **React 消息管线 buildMessageLookups 8 个 Map/Set 重建**(50ms/次,27k 消息场景)— GC 压力源
216+
3. **useDeferredValue 双缓冲**(流式期间额外 ~100-200 MB 临时)
217+
4. **FileReadTool 无大小上限**(单次 10MB 文件永久驻留)
218+
5. **Compact 峰值窗口**(20-80 MB)+ Microcompact 依赖后续 compact 才真正释放
219+
6. **虚拟滚动 200 组件 ~50MB 常驻**
220+
7. **Bun/JSC 不归还内存页**(架构级限制)
140221

141222
**CPU 根因**:useInboxPoller 每秒轮询触发 React commit → 全量 Yoga 布局 → 全屏 Ink diff 的完整管线。Markdown 渲染(~1.5ms/行)在批量挂载新消息时造成 ~290ms 卡顿。轮询导致的周期性 commit 与消息挂载的 CPU 密集操作互相放大。
142223

143224
**Round 4 最终验证**:agent 递归 spread 和 attachment 累积均为已知 P0(消息数组拷贝)的变体,无新根因。Snipping 在流式前执行无并发问题。consumedCommandUuids 等数组每轮重置无累积。
144225

226+
**Round 5 增量验证**
227+
- buildMessageLookups 8 个 Map/Set 的重建成本已由 renderRange 拆分缓解,但仍然是消息变更时的主要 GC 压力源
228+
- useDeferredValue 双缓冲是 React 调度机制的固有行为,优化空间有限
229+
- FileReadTool 无上限是唯一一个"单次操作可注入 10MB+ 数据"的入口
230+
- Microcompact 减少 token 但不立即释放内存(内容被 ContentReplacementState.replacements Map 间接持有)
231+
145232
**预估优化空间**
146233

147234
| 优先级 | 措施 | 预估降低 |
@@ -151,7 +238,7 @@ After: splice → 50K tokens
151238
| P1 | 虚拟滚动优化 | 20-30 MB |
152239
| P1 | 缓冲与缓存清理 5 项 | 30-80 MB |
153240
| P2 | 其他 3 项 | 10-50 MB |
154-
| **合计** | **18 项可操作建议** | **180-440 MB** |
241+
| **合计** | **21 项可操作建议** | **210-500 MB** |
155242

156243
理论可从当前 400-700 MB 降至 **200-350 MB**
157244

@@ -166,30 +253,36 @@ After: splice → 50K tokens
166253
5. `query.ts:1857` — 传引用(forkContextMessages)
167254
6. `query.ts:491` — 无超限返回原数组
168255

256+
### P0:消息渲染管线(Round 5 新增,预估降 30-60 MB)
257+
258+
7. `FileReadTool.ts:342``maxResultSizeChars: Infinity` → 设合理上限(如 100KB)
259+
8. `toolResultStorage.ts:392` — Microcompact 后同步清理 `replacements` Map 中对应条目
260+
9. `Messages.tsx:519` — 考虑 buildMessageLookups 增量更新而非全量重建
261+
169262
### P0:Compact 峰值(预估降 20-80 MB)
170263

171-
7. `compact.ts:543``preCompactReadFileState = undefined`
172-
8. `compact.ts:651``summaryResponse = undefined`
173-
9. 延迟非关键 attachment 生成
264+
10. `compact.ts:543``preCompactReadFileState = undefined`
265+
11. `compact.ts:651``summaryResponse = undefined`
266+
12. 延迟非关键 attachment 生成
174267

175268
### P1:渲染与缓存(预估降 50-110 MB)
176269

177-
10. 虚拟滚动 — 降低 OVERSCAN_ROWS 或 MAX_MOUNTED_ITEMS
178-
11. `lastAPIRequestMessages` — 非 debug 清空
179-
12. MCP Tool Schema — 去掉 manager 层 toolsCache
180-
13. `HybridTransport` — maxQueueSize 100K→10K
181-
14. `bootstrap/state.ts` — 无界 Map 加 LRU
270+
13. 虚拟滚动 — 降低 OVERSCAN_ROWS 或 MAX_MOUNTED_ITEMS
271+
14. `lastAPIRequestMessages` — 非 debug 清空
272+
15. MCP Tool Schema — 去掉 manager 层 toolsCache
273+
16. `HybridTransport` — maxQueueSize 100K→10K
274+
17. `bootstrap/state.ts` — 无界 Map 加 LRU
182275

183276
### P2:其他(预估降 10-50 MB)
184277

185-
15. `toolResultStorage.ts` — seenIds/replacements 定期清理
186-
16. Session 恢复流式 JSONL | AppState 增量更新
187-
17. Thinking 文本截断策略(保留前 N + 后 N 字符)
188-
18. `Bun.gc(true)` 低内存触发
278+
18. `toolResultStorage.ts` — seenIds/replacements 定期清理
279+
19. Session 恢复流式 JSONL | AppState 增量更新
280+
20. Thinking 文本截断策略(保留前 N + 后 N 字符)
281+
21. `Bun.gc(true)` 低内存触发
189282

190283
### P2:Ink 渲染层(降低 CPU 开销)
191284

192-
19. `ink.tsx:655-661` — 布局偏移时尝试增量 damage 而非全屏 `{x:0,y:0,width:full,height:full}`
285+
22. `ink.tsx:655-661` — 布局偏移时尝试增量 damage 而非全屏 `{x:0,y:0,width:full,height:full}`
193286

194287
## 附录
195288

@@ -198,3 +291,4 @@ After: splice → 50K tokens
198291
- Round 2 新发现:HybridTransport 缓冲、React messagesRef 双重引用、toolResultStorage 无界增长
199292
- Round 3 新发现:虚拟滚动 ~50MB 常驻、第 7-8 次 spread(query.ts:1857)、流式 contentBlocks thinking 累积、依赖树已懒加载
200293
- Round 4 最终验证:无新根因(agent spread 和 attachment 累积为已知变体),调研终止
294+
- Round 5 增量验证:buildMessageLookups 8 Map/Set 重建成本、useDeferredValue 双缓冲、FileReadTool 无上限、Microcompact 内存释放延迟、compaction 与 React 状态交互细节

docs/tools/file-operations.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ Claude Code 将文件操作拆分为三个独立工具——这不是功能划
1212

1313
| 工具 | 权限级别 | 核心方法 | 关键属性 |
1414
|------|---------|---------|---------|
15-
| **Read** | 只读(免审批) | `isReadOnly() → true` | `maxResultSizeChars: Infinity` |
15+
| **Read** | 只读(免审批) | `isReadOnly() → true` | `maxResultSizeChars: 100,000` |
1616
| **Edit** | 写入(需确认) | `checkWritePermissionForTool()` | `maxResultSizeChars: 100,000` |
1717
| **Write** | 写入(需确认) | `checkWritePermissionForTool()` | `maxResultSizeChars: 100,000` |
1818

1919
<Tip>
20-
Read 的 `maxResultSizeChars` `Infinity`,但这并不意味着无限制输出——真正的截断发生在 `validateContentTokens()` 中基于 token 预算的动态判定,而非字符数硬限制
20+
Read 的 `maxResultSizeChars` 为 100,000(100KB)。超出此阈值的结果会被持久化到磁盘,减少长会话的内存压力。实际的 token 级别截断由 `validateContentTokens()` 动态控制
2121
</Tip>
2222

2323
## FileRead:多模态文件读取引擎

packages/builtin-tools/src/tools/FileReadTool/FileReadTool.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,10 @@ export type Output = z.infer<OutputSchema>
337337
export const FileReadTool = buildTool({
338338
name: FILE_READ_TOOL_NAME,
339339
searchHint: 'read files, images, PDFs, notebooks',
340-
// Output is bounded by maxTokens (validateContentTokens). Persisting to a
341-
// file the model reads back with Read is circular — never persist.
342-
maxResultSizeChars: Infinity,
340+
// Output is bounded by maxTokens (validateContentTokens). Results exceeding
341+
// 100KB are persisted to disk (reducing memory pressure in long sessions)
342+
// rather than kept in the message array indefinitely.
343+
maxResultSizeChars: 100_000,
343344
strict: true,
344345
async description() {
345346
return DESCRIPTION

src/components/Messages.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ import { isFullscreenEnvEnabled } from '../utils/fullscreen.js';
3434
import { applyGrouping } from '../utils/groupToolUses.js';
3535
import {
3636
buildMessageLookups,
37+
computeMessageStructureKey,
38+
type MessageLookups,
3739
createAssistantMessage,
3840
deriveUUID,
3941
getMessagesAfterCompactBoundary,
@@ -510,6 +512,12 @@ const MessagesImpl = ({
510512
// comment above for why this replaced count-based slicing.
511513
const sliceAnchorRef = useRef<SliceAnchor>(null);
512514

515+
// Cache for buildMessageLookups: avoids rebuilding 8 Maps/Sets when only
516+
// message content changed during streaming (text/thinking deltas). The key
517+
// captures only structural info (types, IDs), so content-only deltas skip
518+
// the rebuild entirely.
519+
const lookupsCacheRef = useRef<{ key: string; lookups: MessageLookups } | null>(null);
520+
513521
// Expensive message transforms — filter, reorder, group, collapse, lookups.
514522
// All O(n) over 27k messages. Split from the renderRange slice so scrolling
515523
// (which only changes renderRange) doesn't re-run these. Previously this
@@ -578,7 +586,14 @@ const MessagesImpl = ({
578586
verbose,
579587
);
580588

581-
const lookups = buildMessageLookups(normalizedMessages, messagesToShow as MessageType[]);
589+
const lookupsKey = computeMessageStructureKey(normalizedMessages, messagesToShow as MessageType[]);
590+
let lookups: MessageLookups;
591+
if (lookupsCacheRef.current && lookupsCacheRef.current.key === lookupsKey) {
592+
lookups = lookupsCacheRef.current.lookups;
593+
} else {
594+
lookups = buildMessageLookups(normalizedMessages, messagesToShow as MessageType[]);
595+
lookupsCacheRef.current = { key: lookupsKey, lookups };
596+
}
582597

583598
const hiddenMessageCount = messagesToShowNotTruncated.length - MAX_MESSAGES_TO_SHOW_IN_TRANSCRIPT_MODE;
584599

src/query.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,16 @@ async function* queryLoop(
529529
querySource,
530530
)
531531
messagesForQuery = microcompactResult.messages
532+
// Release original strings from contentReplacementState.replacements for
533+
// tool results whose content was replaced with the cleared message.
534+
if (microcompactResult.clearedToolUseIds?.length) {
535+
const replacements = toolUseContext?.contentReplacementState?.replacements
536+
if (replacements) {
537+
for (const id of microcompactResult.clearedToolUseIds) {
538+
replacements.delete(id)
539+
}
540+
}
541+
}
532542
// For cached microcompact (cache editing), defer boundary message until after
533543
// the API response so we can use actual cache_deleted_input_tokens.
534544
// Gated behind feature() so the string is eliminated from external builds.

src/services/compact/microCompact.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ export type MicrocompactResult = {
217217
compactionInfo?: {
218218
pendingCacheEdits?: PendingCacheEdits
219219
}
220+
// Tool use IDs whose content was replaced with the cleared message.
221+
// Callers should remove these from contentReplacementState.replacements
222+
// to release the original strings from memory.
223+
clearedToolUseIds?: string[]
220224
}
221225

222226
/**
@@ -528,5 +532,5 @@ function maybeTimeBasedMicrocompact(
528532
notifyCacheDeletion(querySource)
529533
}
530534

531-
return { messages: result }
535+
return { messages: result, clearedToolUseIds: [...clearSet] }
532536
}

src/utils/messages.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,6 +1397,54 @@ export function buildMessageLookups(
13971397
}
13981398
}
13991399

1400+
/**
1401+
* Compute a lightweight structural fingerprint for buildMessageLookups caching.
1402+
* Only captures information that affects lookup results (types, IDs, counts),
1403+
* not content. Returns an empty string when the arrays are structurally empty.
1404+
*
1405+
* O(n) but allocates only a string — much cheaper than the 8 Maps/Sets that
1406+
* buildMessageLookups creates on every call.
1407+
*/
1408+
export function computeMessageStructureKey(
1409+
normalizedMessages: NormalizedMessage[],
1410+
messages: Message[],
1411+
): string {
1412+
const parts: string[] = [
1413+
String(normalizedMessages.length),
1414+
'|',
1415+
String(messages.length),
1416+
]
1417+
for (const msg of messages) {
1418+
parts.push(msg.type[0])
1419+
if (msg.type === 'assistant') {
1420+
const aMsg = msg as AssistantMessage
1421+
const content = aMsg.message?.content
1422+
if (Array.isArray(content)) {
1423+
for (const block of content) {
1424+
if (typeof block !== 'string' && block.type === 'tool_use') {
1425+
parts.push('t', (block as ToolUseBlock).id)
1426+
}
1427+
}
1428+
}
1429+
} else if (msg.type === 'user') {
1430+
const content = (msg as UserMessage).message?.content
1431+
if (Array.isArray(content)) {
1432+
for (const block of content) {
1433+
if (typeof block !== 'string' && block.type === 'tool_result') {
1434+
parts.push('r', (block as ToolResultBlockParam).tool_use_id)
1435+
}
1436+
}
1437+
}
1438+
}
1439+
}
1440+
for (const msg of normalizedMessages) {
1441+
if (msg.type === 'progress') {
1442+
parts.push('p', (msg as ProgressMessage).parentToolUseID as string)
1443+
}
1444+
}
1445+
return parts.join(',')
1446+
}
1447+
14001448
/** Empty lookups for static rendering contexts that don't need real lookups. */
14011449
export const EMPTY_LOOKUPS: MessageLookups = {
14021450
siblingToolUseIDs: new Map(),

0 commit comments

Comments
 (0)