agentscope-ai / agentscope-ai/QwenPaw

[Bug] Agent response truncated - NoneType subscriptable error

オープン
#3,085 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
35k
フォーク
3.1k
平均マージ
1日 13時間
マージ済み PR(30日)
228

説明

## Bug Description

### Problem
The AI agent's response is frequently being truncated mid-sentence, with the error message:
```
[Compactor] failed: 'NoneType' object is not subscriptable
```

This happens consistently when generating longer responses (typically after 400-600 lines of content).

### Frequency
- Occurs in approximately 30-50% of longer responses
- More frequent when writing files, running shell commands, or content exceeds ~500 lines

### Impact
- User workflow is frequently interrupted
- Cannot complete complex documentation tasks
- Wastes token quota on repeated attempts

## Environment
- OS: Darwin 25.3.0 (macOS)
- CoPaw Version: 1.0.1

## Error Details
```
[Compactor] failed: 'NoneType' object is not subscriptable
```

## Expected Behavior
1. Agent should generate long responses without truncation
2. If truncation is necessary, complete current thought first
3. Compactor should handle None values gracefully

## Suggested Fix
Check the Compactor code path for subscript operations without None checks, response buffer management, and token counting logic.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。