feat: 一大堆优化

This commit is contained in:
claude-code-best
2026-04-21 20:31:10 +08:00
parent b5525f63c6
commit f74492617b
8 changed files with 599 additions and 235 deletions

View File

@@ -3468,8 +3468,8 @@ export function REPL({
// 1. Collect tool names from this turn's messages
const _toolNames: string[] = [];
for (const _msg of messagesRef.current) {
if (_msg.role === 'assistant' && Array.isArray(_msg.content)) {
for (const _block of _msg.content) {
if (_msg.type === 'assistant' && Array.isArray((_msg as any).message?.content)) {
for (const _block of (_msg as any).message.content) {
if (_block.type === 'tool_use') _toolNames.push(_block.name);
}
}