同一项目多个会话似乎存在上下文膨胀问题,导致新会话很容易中断

Open
#632 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Domain
desktop

Research direction

The issue names no files, tests, or entry points. Start by tracing how session context is assembled and compressed, then reproduce the reported behavior with several long sessions in one project. Done means new sessions do not inherit unintended context and context usage remains stable across replies.

Written by the indexing model from the issue text.

Description

P1-context

版本:0.55.2
现象:
我在一个项目开发过程中,会产生很多会话,而且每个会话内容都很多。当产生几个聊过很多内容的会话后,如果新开会话,基本上只能聊一个回合就会出现上下文超过100%的现象。如果继续聊几个回合,API响应就会频繁中断,也就是刚回复一点东西,很快就结束了。我认为这跟上下文压缩方式有关,很有可能多个会话的上下文一直在积累,导致新会话被注入了过多的上下文,所以聊不了几个回合就上下文爆炸了。

还有一个问题是压缩机制好像不稳定,上下文有时候会从百分之两百多跳到百分之二十多,然后只要一次回复又会跳到百分之一百多。还有些时候是稳定在百分之五六百长时间不压缩。

总结来说可能问题有两点:一是上下文可能串会话;二是上下文压缩不稳定

Dominant language
TypeScript
Stars
6.5k
Forks
697
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from op7418/CodePilot

All issues in op7418/CodePilot

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.