Repository navigation
Replies: 1 comment
|
Bug 6 first, because the arithmetic is checkable and the answer changes what to do about it — then the sandbox items as one class, since they look like five symptoms of two causes. Bug 6: on a 32.8K window the pressure trigger is not "not reached yet", it is unreachable by constructionYour outline reads the formula as
const messageBudgetTokens = contextWindow - reservedCompletionTokens
const pressureBudgetTokens = messageBudgetTokens - policy.headroomTokens
if (pressureBudgetTokens <= 0) throw new TargetPressureConfigError(...) // line 182
const thresholdTokens = Math.floor(Math.min(
contextWindow * policy.thresholdRatio, // the W × 0.8 term
pressureBudgetTokens, // the W − O − headroom term
))With
So the reason compaction never fired is that the feature has no budget left to act in. The Three things follow, all of them configuration rather than a bug in the formula:
One practical note for the workflow you were probably in: the pressure trigger runs at the step boundary, so it needs a step to end before it can look. A single very long tool-heavy step can pass the threshold and keep going until that step completes. The sandbox items (1-5, plus the shell asymmetry) are one class we have been collecting for a whileYour five observations are the discriminators, not five separate bugs, and they have quite different remedies:
This is the family we ship
It is a diagnostic tool, not a sandbox patch: it changes no permission and no sandbox behaviour. If you can attach the denial text you actually got (the |
Uh oh!
There was an error while loading. Please reload this page.
正文结构:
环境:Windows + DSH v0.2 + Ollama 0.34.4 + 本地 Qwen3.5-9B(32k ctx,workspace-write 模式)
Bug 1-5:逐条写“现象 → 复现步骤 → 期望行为”,今天每条都有现成的复现过程
Bug 6(最硬的一条):32.8K 窗口下自动压缩公式 min(W×0.8, W−O−65536) 算出负触发点,实测会话跑到 99.1%(32.5K/32.8K,剩余 314 token)压缩从未发生,最终上下文窒息导致模型幻觉和停摆——附上统计面板数据
结尾附一句 Git Bash 能读 E 盘 142 个文件而 PowerShell 工具返回空的对照证据
AI叫我发的,我小白,仅供参考
All reactions