makecindy / makecindy/cindy

Claude Code 使用折扣 Opus 5 时压缩持续提示 Prompt is too long,导致会话卡死

Open
#2,354 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
395
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: zym
**客户端版本**: 0.1.38

---

## 现象

在 Cindy 中使用 Claude Code,并选择折扣渠道的 Anthropic Claude Opus 5(高)时,会话上下文达到上限后无法完成压缩。无论等待自动压缩,还是手动触发压缩,都会持续提示:

- `Prompt is too long`
- `Compaction failed · conversation could not be reduced below the context limit`

错误会在会话中重复出现,输入和继续对话均无法恢复,最终只能放弃当前会话。

## 复现步骤

1. 在 Cindy 中新建或打开 Claude Code 会话。
2. 选择折扣渠道的 Anthropic Claude Opus 5,并使用“高”推理档位。
3. 持续对话,直到上下文使用率接近或达到 100%。
4. 等待系统自动压缩,观察压缩结果。
5. 在失败后手动触发压缩,再次观察结果。

## 期望行为

自动或手动压缩能够正常缩减上下文,并让用户继续当前会话。若当前会话确实无法压缩,也应提供可恢复的降级方案,例如清理部分历史内容、创建带摘要的新会话,或允许用户导出并续接上下文,避免整个会话进入不可操作状态。

## 实际行为

自动压缩和手动压缩均立即或反复返回 `Prompt is too long`,同时提示无法将会话缩减到上下文限制以内。错误持续重复,会话卡死,无法继续发送消息。

## 影响

长会话达到上下文上限后无法继续,已有对话上下文和任务进度难以复用。该问题在手动压缩与自动压缩两条路径均可出现。
---
**版本区域**: CN
**OS**: darwin arm64 (25.5.0)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is identified. Reproduce the failure with a Claude Code session using discounted Anthropic Claude Opus 5 at the high reasoning level, then trace both automatic and manual compaction paths; done means a full-context session can recover and continue, or receives a usable recovery path when compaction is impossible.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.